wt.clients.widgets
Class AbstractLiteObjectListSelectorModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended bywt.clients.widgets.ListSelectorModel
          extended bywt.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
           
 
Fields inherited from class wt.clients.widgets.ListSelectorModel
delegate, listenersEnabled
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
AbstractLiteObjectListSelectorModel()
           
 
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
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

private static final boolean debug
Constructor Detail

AbstractLiteObjectListSelectorModel

public AbstractLiteObjectListSelectorModel()
Method Detail

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