The default model for combo boxes.
The default model for combo boxes.
(->default-combo-box-model)
(->default-combo-box-model items)
Constructor.
Constructs a DefaultComboBoxModel object initialized with an array of objects.
items - an array of Object objects - E[]
Constructor. Constructs a DefaultComboBoxModel object initialized with an array of objects. items - an array of Object objects - `E[]`
(add-element this an-object)
Description copied from interface: MutableComboBoxModel
an-object - the item to be added - E
Description copied from interface: MutableComboBoxModel an-object - the item to be added - `E`
(get-element-at this index)
Description copied from interface: ListModel
index - the requested index - int
returns: the value at index - E
Description copied from interface: ListModel index - the requested index - `int` returns: the value at index - `E`
(get-index-of this an-object)
Returns the index-position of the specified object in the list.
an-object - java.lang.Object
returns: an int representing the index position, where 0 is
the first position - int
Returns the index-position of the specified object in the list. an-object - `java.lang.Object` returns: an int representing the index position, where 0 is the first position - `int`
(get-selected-item this)
Description copied from interface: ComboBoxModel
returns: The selected item or null if there is no selection - java.lang.Object
Description copied from interface: ComboBoxModel returns: The selected item or null if there is no selection - `java.lang.Object`
(get-size this)
Description copied from interface: ListModel
returns: the length of the list - int
Description copied from interface: ListModel returns: the length of the list - `int`
(insert-element-at this an-object index)
Description copied from interface: MutableComboBoxModel
an-object - the item to be added - E
index - location to add the object - int
Description copied from interface: MutableComboBoxModel an-object - the item to be added - `E` index - location to add the object - `int`
(remove-element this an-object)
Description copied from interface: MutableComboBoxModel
an-object - the Object to be removed - java.lang.Object
Description copied from interface: MutableComboBoxModel an-object - the Object to be removed - `java.lang.Object`
(remove-element-at this index)
Description copied from interface: MutableComboBoxModel
index - location of the item to be removed - int
Description copied from interface: MutableComboBoxModel index - location of the item to be removed - `int`
(set-selected-item this an-object)
Set the value of the selected item. The selected item may be null.
an-object - The combo box value or null for no selection. - java.lang.Object
Set the value of the selected item. The selected item may be null. an-object - The combo box value or null for no selection. - `java.lang.Object`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close