if (this.selectedCheckbox != null) { if (this.selectedCheckbox.getCheckboxGroup() != this) return;  this.selectedCheckbox.setState(false); }  this.selectedCheckbox = selectedCheckbox; if (selectedCheckbox != null) selectedCheckbox.setState(true);
setCurrent (selectedCheckbox);
setSelectedCheckbox(Checkbox selectedCheckbox){  if (this.selectedCheckbox != null)    {      if (this.selectedCheckbox.getCheckboxGroup() != this)        return;      this.selectedCheckbox.setState(false);    }  this.selectedCheckbox = selectedCheckbox;  if (selectedCheckbox != null)    selectedCheckbox.setState(true);}