public class IndentifierListModel
extends javax.swing.DefaultListModel<java.lang.String>
Identifier
,
Serialized FormConstructor and Description |
---|
IndentifierListModel()
Constructs a new identifier list model.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(Identifier identifier,
java.lang.String text)
Adds the specified text to the end of this list.
|
Identifier |
getIdentifier(int listIndex)
Returns the identifier of the specified item.
|
void |
removeAllElements() |
void |
removeElementAt(int index) |
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeElement, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
public IndentifierListModel()
public void addElement(Identifier identifier, java.lang.String text)
identifier
- the identifier of the added texttext
- the text to be addedVector.addElement(Object)
public void removeAllElements()
removeAllElements
in class javax.swing.DefaultListModel<java.lang.String>
public void removeElementAt(int index)
removeElementAt
in class javax.swing.DefaultListModel<java.lang.String>
public Identifier getIdentifier(int listIndex)
listIndex
- the index of the itemCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de