Return type | Name and parameters |
---|---|
void
|
clear()
Removes all elements from the DefaultListModel. |
Iterator
|
iterator()
Returns an Iterator which traverses the DefaultListModel one element at a time. |
DefaultListModel
|
leftShift(Object e)
Overloads the left shift operator to provide an easy way to add elements to a DefaultListModel. |
void
|
putAt(int index, Object e)
Allow DefaultListModel to work with subscript operators. |
addShutdownHook
, any
, any
, asBoolean
, asType
, average
, collect
, collect
, collect
, contains
, count
, dump
, each
, eachWithIndex
, equals
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, flatten
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, groupBy
, groupBy
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, iterator
, join
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, size
, split
, sprintf
, sprintf
, stream
, sum
, sum
, tap
, toArrayString
, toSpreadMap
, toString
, use
, use
, use
, with
, with
, withTraits
Removes all elements from the DefaultListModel.
Returns an Iterator which traverses the DefaultListModel one element at a time.
Overloads the left shift operator to provide an easy way to add elements to a DefaultListModel.
e
- an element to be added to the listModel.Allow DefaultListModel to work with subscript operators.
WARNING: this operation does not replace the element at the specified index, rather it inserts the element at that index, thus increasing the size of of the model by 1.
index
- an indexe
- the element to insert at the given index