Liking cljdoc? Tell your friends :D

javax.swing.SingleSelectionModel

A model that supports at most one indexed selection.

A model that supports at most one indexed selection.
raw docstring

add-change-listenerclj

(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`
raw docstring

clear-selectionclj

(clear-selection this)

Clears the selection (to -1).

Clears the selection (to -1).
raw docstring

get-selected-indexclj

(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`
raw docstring

remove-change-listenerclj

(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`
raw docstring

selected?clj

(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`
raw docstring

set-selected-indexclj

(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`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close