|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractListModel
javax.swing.DefaultListModel
tnt.gui.KeyButtonListModel
public class KeyButtonListModel
Provides additional functionality regarding the handling of
KeyButton
and ModelDefinition
objects.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
KeyButtonListModel()
|
Method Summary | |
---|---|
KeyButton[] |
getKeyButtonArray()
Returns an array of KeyButton objects, representing the
elements in this model. |
void |
loadFromArray(KeyButton[] array)
Loads objects from the passed KeyButton array into this
list model. |
ModelDefinition |
saveToModelDefinition(ModelDefinition md)
Saves key-button definitions and thumb assignments (including the SPACE-key policy) to the passed ModelDefinition
object and returns it. |
Methods inherited from class javax.swing.DefaultListModel |
---|
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize |
Methods inherited from class javax.swing.AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KeyButtonListModel()
Method Detail |
---|
public KeyButton[] getKeyButtonArray()
KeyButton
objects, representing the
elements in this model. If an element is not an instance of
KeyButtton
, the corresponding array entry is
null
.
KeyButtton
objects.public void loadFromArray(KeyButton[] array)
KeyButton
array into this
list model.
array
- the array from which to load the objects.public ModelDefinition saveToModelDefinition(ModelDefinition md)
ModelDefinition
object and returns it. If the passed reference is null
,
a new ModelDefinition
is used.
ModelDefinition
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |