| | |
| | | private JPasswordField passwordField;
|
| | |
|
| | | private JPasswordField confirmPasswordField;
|
| | | |
| | | private JTextField displayNameField;
|
| | | |
| | | private JTextField emailAddressField;
|
| | |
|
| | | private JCheckBox canAdminCheckbox;
|
| | |
|
| | |
| | | passwordField = new JPasswordField(anUser.password == null ? "" : anUser.password, 25);
|
| | | confirmPasswordField = new JPasswordField(anUser.password == null ? "" : anUser.password,
|
| | | 25);
|
| | | canAdminCheckbox = new JCheckBox(Translation.get("gb.canAdminDescription"), anUser.canAdmin);
|
| | | displayNameField = new JTextField(anUser.displayName == null ? "" : anUser.displayName, 25);
|
| | | emailAddressField = new JTextField(anUser.emailAddress == null ? "" : anUser.emailAddress, 25);
|
| | | canAdminCheckbox = new JCheckBox(Translation.get("gb.canAdminDescription"), anUser.canAdmin); |
| | | notFederatedCheckbox = new JCheckBox(
|
| | | Translation.get("gb.excludeFromFederationDescription"),
|
| | | anUser.excludeFromFederation);
|
| | |
| | | fieldsPanel.add(newFieldPanel(Translation.get("gb.username"), usernameField));
|
| | | fieldsPanel.add(newFieldPanel(Translation.get("gb.password"), passwordField));
|
| | | fieldsPanel.add(newFieldPanel(Translation.get("gb.confirmPassword"), confirmPasswordField));
|
| | | fieldsPanel.add(newFieldPanel(Translation.get("gb.displayName"), displayNameField));
|
| | | fieldsPanel.add(newFieldPanel(Translation.get("gb.emailAddress"), emailAddressField));
|
| | | fieldsPanel.add(newFieldPanel(Translation.get("gb.canAdmin"), canAdminCheckbox));
|
| | | fieldsPanel.add(newFieldPanel(Translation.get("gb.excludeFromFederation"),
|
| | | notFederatedCheckbox));
|
| | |
| | | // no change in password
|
| | | user.password = password;
|
| | | }
|
| | | |
| | | user.displayName = displayNameField.getText().trim();
|
| | | user.emailAddress = emailAddressField.getText().trim();
|
| | |
|
| | | user.canAdmin = canAdminCheckbox.isSelected();
|
| | | user.excludeFromFederation = notFederatedCheckbox.isSelected();
|