if (!allowDeselection) {
return;
}
clickedRadioButton.deactivate();
nifty.publishEvent(getElement().getId(), new RadioButtonGroupStateChangedEvent(null, activeButton));
activeButton = null;
return;
}
if (activeButton != null) {
activeButton.deactivate();
}
clickedRadioButton.activate();
nifty.publishEvent(getElement().getId(), new RadioButtonGroupStateChangedEvent(clickedRadioButton, activeButton));
activeButton = clickedRadioButton;
}