Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
public interface: SingleSelectionModel [javadoc | source]

All Known Implementing Classes:
    DefaultSingleSelectionModel

A model that supports at most one indexed selection.
Method from javax.swing.SingleSelectionModel Summary:
addChangeListener,   clearSelection,   getSelectedIndex,   isSelected,   removeChangeListener,   setSelectedIndex
Method from javax.swing.SingleSelectionModel Detail:
 public  void addChangeListener(ChangeListener listener)
    Adds listener as a listener to changes in the model.
 public  void clearSelection()
    Clears the selection (to -1).
 public int getSelectedIndex()
    Returns the model's selection.
 public boolean isSelected()
    Returns true if the selection model currently has a selected value.
 public  void removeChangeListener(ChangeListener listener)
    Removes listener as a listener to changes in the model.
 public  void setSelectedIndex(int index)
    Sets the model's selected index to index. Notifies any listeners if the model changes