wt.clients.widgets
Class AbstractLiteObjectListSelectorModel
java.lang.Object
javax.swing.AbstractListModel
wt.clients.widgets.ListSelectorModel
wt.clients.widgets.AbstractLiteObjectListSelectorModel
- All Implemented Interfaces:
- ListModel, Serializable
- Direct Known Subclasses:
- AttrDefListSelectorModel
- public class AbstractLiteObjectListSelectorModel
- extends ListSelectorModel
This is the model for the listSelectorlist. This extends the
AbstractListModel and provides features like setListData,
add, remove, sorted data
- See Also:
- Serialized Form
Field Summary |
private static boolean |
debug
|
Method Summary |
void |
addElement(Object obj)
Adds the element into the list. |
boolean |
contains(Object elem)
Return true is the list already contains the element |
int |
indexOf(Object elem)
Return the location of the element |
int |
indexOf(Object elem,
int index)
Return the locatin of the elment from a given index |
Methods inherited from class wt.clients.widgets.ListSelectorModel |
capacity, clear, copyInto, elementAt, elements, ensureCapacity, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, firstElement, get, getAllValues, getElementAt, getListenersEnabled, getSize, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, setListData, setListData, setListenersEnabled, size, toArray, toString, trimToSize |
debug
private static final boolean debug
AbstractLiteObjectListSelectorModel
public AbstractLiteObjectListSelectorModel()
contains
public boolean contains(Object elem)
- Return true is the list already contains the element
- Overrides:
contains
in class ListSelectorModel
- Returns:
- true if the item is already added to the list
addElement
public void addElement(Object obj)
- Adds the element into the list. If it is a string, it is added
to the list in ascending order
- Overrides:
addElement
in class ListSelectorModel
indexOf
public int indexOf(Object elem)
- Return the location of the element
- Overrides:
indexOf
in class ListSelectorModel
- Returns:
- the location of the element
indexOf
public int indexOf(Object elem,
int index)
- Return the locatin of the elment from a given index
- Overrides:
indexOf
in class ListSelectorModel
- Returns:
- index is the start index