A model that supports at most one indexed selection.
A model that supports at most one indexed selection.
(add-change-listener this listener)
Adds listener as a listener to changes in the model.
listener - the ChangeListener to add - javax.swing.event.ChangeListener
Adds listener as a listener to changes in the model. listener - the ChangeListener to add - `javax.swing.event.ChangeListener`
(clear-selection this)
Clears the selection (to -1).
Clears the selection (to -1).
(get-selected-index this)
Returns the model's selection.
returns: the model's selection, or -1 if there is no selection - int
Returns the model's selection. returns: the model's selection, or -1 if there is no selection - `int`
(remove-change-listener this listener)
Removes listener as a listener to changes in the model.
listener - the ChangeListener to remove - javax.swing.event.ChangeListener
Removes listener as a listener to changes in the model. listener - the ChangeListener to remove - `javax.swing.event.ChangeListener`
(selected? this)
Returns true if the selection model currently has a selected value.
returns: true if a value is currently selected - boolean
Returns true if the selection model currently has a selected value. returns: true if a value is currently selected - `boolean`
(set-selected-index this index)
Sets the model's selected index to index.
Notifies any listeners if the model changes
index - an int specifying the model selection - int
Sets the model's selected index to index. Notifies any listeners if the model changes index - an int specifying the model selection - `int`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close