Liking cljdoc? Tell your friends :D

javax.swing.ListModel

This interface defines the methods components like JList use to get the value of each cell in a list and the length of the list. Logically the model is a vector, indices vary from 0 to ListDataModel.getSize() - 1. Any change to the contents or length of the data model must be reported to all of the ListDataListeners.

This interface defines the methods components like JList use
to get the value of each cell in a list and the length of the list.
Logically the model is a vector, indices vary from 0 to
ListDataModel.getSize() - 1.  Any change to the contents or
length of the data model must be reported to all of the
ListDataListeners.
raw docstring

add-list-data-listenerclj

(add-list-data-listener this l)

Adds a listener to the list that's notified each time a change to the data model occurs.

l - the ListDataListener to be added - javax.swing.event.ListDataListener

Adds a listener to the list that's notified each time a change
 to the data model occurs.

l - the ListDataListener to be added - `javax.swing.event.ListDataListener`
raw docstring

get-element-atclj

(get-element-at this index)

Returns the value at the specified index.

index - the requested index - int

returns: the value at index - E

Returns the value at the specified index.

index - the requested index - `int`

returns: the value at index - `E`
raw docstring

get-sizeclj

(get-size this)

Returns the length of the list.

returns: the length of the list - int

Returns the length of the list.

returns: the length of the list - `int`
raw docstring

remove-list-data-listenerclj

(remove-list-data-listener this l)

Removes a listener from the list that's notified each time a change to the data model occurs.

l - the ListDataListener to be removed - javax.swing.event.ListDataListener

Removes a listener from the list that's notified each time a
 change to the data model occurs.

l - the ListDataListener to be removed - `javax.swing.event.ListDataListener`
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close