Ejemplo n.º 1
0
 /**
  * Toggle the selection. If the new selection is different to the old selection an {@link
  * ItemEvent} is raised.
  */
 public void setSelected(boolean selected) {
   if (model.isSelected() != selected) {
     model.setSelected(selected);
     fireStateChanged();
     reload();
   }
 }
Ejemplo n.º 2
0
 public boolean isSelected() {
   return model.isSelected();
 }
Ejemplo n.º 3
0
 /** Returns the selected items or null if no items are selected. */
 public Object[] getSelectedObjects() {
   return model.isSelected() ? new Object[] {this} : null;
 }