changeState(SELECTED, s);
if ((s && isSelected()) || (!s && !isSelected())) return;   if (s) stateMask = stateMask | SELECTED; else stateMask = stateMask & (~SELECTED);   fireStateChanged();   if (s) { fireItemStateChanged(new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED, null, ItemEvent.SELECTED)); if (group != null) group.setSelected(this, true); } else { fireItemStateChanged(new ItemEvent(this, ItemEvent.ITEM_STATE_CHANGED, null, ItemEvent.DESELECTED)); if (group != null) group.setSelected(this, false); }
  public void setSelected(boolean s)  {    changeState(SELECTED, s);  }