API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. SingleSelectionModel View Source
Author(s)
Dave Moore
Since
Version
1.20 11/17/05
Serial
Hierarchy
 SingleSelectionModel
Subinterfaces
Description
public interface SingleSelectionModel
A model that supports at most one indexed selection.
See also:   
Methods
Hide/Show inherited methods
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.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar