public interface SingleSelectionModel
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ChangeListener
Adds
listener as a listener to changes in the model.
|
void |
clearSelection()
Clears the selection (to -1).
|
int |
getSelectedIndex()
Returns the model's selection.
|
boolean |
isSelected()
Returns true if the selection model currently has a selected value.
|
void |
removeChangeListener(ChangeListener
Removes
listener as a listener to changes in the model.
|
void |
setSelectedIndex(int index)
Sets the model's selected index to
index.
|
int getSelectedIndex()
setSelectedIndex(int)
void setSelectedIndex(int index)
index - an int specifying the model selection
getSelectedIndex(),
addChangeListener(javax.swing.event.ChangeListener)
void clearSelection()
boolean isSelected()
void addChangeListener(ChangeListenerlistener)
listener - the ChangeListener to add
void removeChangeListener(ChangeListenerlistener)
listener - the ChangeListener to remove