|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractListModel
nextapp.echo.DefaultListModel
public class DefaultListModel
The default implementation of a ListBox's data model.
| Field Summary |
|---|
| Fields inherited from class nextapp.echo.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
DefaultListModel()
Creates a new DefaultSelectListModel with the given content. |
|
DefaultListModel(java.lang.Object[] itemArray)
Creates a new DefaultSelectListModel containing the specified data. |
|
| Method Summary | |
|---|---|
void |
add(int index,
java.lang.Object item)
Inserts an item into the model 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 position in the list. |
int |
indexOf(java.lang.Object item)
Returns the index of the specified item within the model. |
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. |
int |
size()
Returns the length of the list. |
| Methods inherited from class nextapp.echo.AbstractListModel |
|---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, removeListDataListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nextapp.echo.ListModel |
|---|
addListDataListener, removeListDataListener |
| Constructor Detail |
|---|
public DefaultListModel()
public DefaultListModel(java.lang.Object[] itemArray)
itemArray - An array of the initial items to be displayed in the
ListBox.| Method Detail |
|---|
public void add(java.lang.Object item)
item - The item to add.
public void add(int index,
java.lang.Object item)
item - The item to insert.index - The index at which to insert the item.public java.lang.Object get(int index)
get in interface ListModelindex - The index of the item to return.
public int indexOf(java.lang.Object item)
item - An item in the model.
public void remove(int index)
index - The index of the item to remove.public void remove(java.lang.Object item)
item - The item to remove from the model.public int size()
size in interface ListModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||