|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.list.AbstractListModel
yu.ac.bg.etf.javaqx.qswing.list.DefaultListModel
Default List Model.
Field Summary |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.list.AbstractListModel |
listenerList |
Constructor Summary | |
DefaultListModel()
Constructs new DefaultListModel object. |
Method Summary | |
void |
add(int index,
java.lang.Object element)
Inserts the specified element into the list. |
void |
add(java.lang.Object element)
Adds the specified element to the list. |
void |
clear()
Removes all elements. |
boolean |
contains(java.lang.Object elem)
Returns true if the model contains the specified element. |
java.lang.Object |
getElementAt(int index)
Returns the element at the specified index. |
int |
getSize()
Returns the size of the list. |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.list.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultListModel()
Method Detail |
public void add(java.lang.Object element)
element
- the elementpublic void add(int index, java.lang.Object element)
index
- the element positionelement
- the elementpublic void clear()
public boolean contains(java.lang.Object elem)
elem
- the element to search for.
public int getSize()
public java.lang.Object getElementAt(int index)
index
- the element index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |