| javax.swing.SingleSelectionModel |
Known Indirect Subclasses
|
A model that supports at most one indexed selection.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds listener as a listener to changes in the model.
| |||||||||||
Clears the selection (to -1).
| |||||||||||
Returns the model's selection.
| |||||||||||
Returns true if the selection model currently has a selected value.
| |||||||||||
Removes listener as a listener to changes in the model.
| |||||||||||
Sets the model's selected index to index.
| |||||||||||
Adds listener as a listener to changes in the model.
| listener | the ChangeListener to add |
|---|
Clears the selection (to -1).
Returns the model's selection.
Returns true if the selection model currently has a selected value.
Removes listener as a listener to changes in the model.
| listener | the ChangeListener to remove |
|---|
Sets the model's selected index to index. Notifies any listeners if the model changes
| index | an int specifying the model selection |
|---|