A model that supports at most one indexed selection.
@version
1.19 12/19/03
@author
Dave Moore
Adds listener as a listener to changes in the model.
Parameters
listenerthe ChangeListener to add
Clears the selection (to -1).
Returns the model's selection.
Return
the model's selection, or -1 if there is no selection
Returns true if the selection model currently has a selected value.
Return
true if a value is currently selected
Removes listener as a listener to changes in the model.
Parameters
listenerthe ChangeListener to remove
Sets the model's selected index to index. Notifies any listeners if the model changes
Parameters
indexan int specifying the model selection