|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo2.app.list.AbstractListModel
nextapp.echo2.app.list.DefaultListModel
public class DefaultListModel
Default ListModel
implementation.
Constructor Summary | |
---|---|
DefaultListModel()
Creates a new DefaultSelectListModel with the given
content. |
|
DefaultListModel(java.lang.Object[] itemArray)
Creates a new DefaultSelectListModel containing the
specified items |
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object item)
Inserts an item at the specified index. |
void |
add(java.lang.Object item)
Adds an item at the end of the model. |
java.lang.Object |
get(int index)
Returns the item at the specified index in the list. |
int |
indexOf(java.lang.Object item)
Returns the index of the specified item. |
void |
remove(int index)
Removes the item at the specified index from the model. |
void |
remove(java.lang.Object item)
Removes the specified item from the model. |
void |
removeAll()
Removes all items from the model. |
int |
size()
Returns the length of the list. |
Methods inherited from class nextapp.echo2.app.list.AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getEventListenerList, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultListModel()
DefaultSelectListModel
with the given
content.
public DefaultListModel(java.lang.Object[] itemArray)
DefaultSelectListModel
containing the
specified items
itemArray
- the initial itemsMethod Detail |
---|
public void add(java.lang.Object item)
item
- the item to addpublic void add(int index, java.lang.Object item)
item
- the itemindex
- the indexpublic java.lang.Object get(int index)
index
-
public int indexOf(java.lang.Object item)
item
- the item
public void remove(int index)
index
- the indexpublic void remove(java.lang.Object item)
item
- the itempublic void removeAll()
public int size()
|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |