private void updateGender() {
// Make sure we block out any events that happen because the elements
// in the combo box are being updated
setLocalChanges(true);
try {
GenderConfigElement gender =
(GenderConfigElement) currentParams.getElement(ConfigType.GENDER);
if (gender.getGender() == GenderConfigElement.MALE) {
maleRadioButton.setSelected(true);
femaleRadioButton.setSelected(false);
}
else {
maleRadioButton.setSelected(false);