|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractListModel
nextapp.echo.AbstractSelectFieldModel
nextapp.echo.DefaultSelectFieldModel
public class DefaultSelectFieldModel
The default implementation of SelectFieldModel, the model used for SelectFields.
| Field Summary |
|---|
| Fields inherited from class nextapp.echo.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
DefaultSelectFieldModel()
Creates a empty new DefaultSelectFieldModel. |
|
DefaultSelectFieldModel(java.lang.Object[] itemArray)
Creates a new DefaultSelectFieldModel that contains an array of items. |
|
| 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. |
void |
clear()
Removes all items from the model. |
java.lang.Object |
get(int index)
Returns the element at the specified index. |
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 number of items in the model. |
| Methods inherited from class nextapp.echo.AbstractSelectFieldModel |
|---|
getSelectedItem, setSelectedItem |
| 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 DefaultSelectFieldModel()
public DefaultSelectFieldModel(java.lang.Object[] itemArray)
itemArray - An array of the initial items to be displayed in the
SelectField.| Method Detail |
|---|
public void add(java.lang.Object item)
item - The item to add.
public void add(int index,
java.lang.Object item)
index - The index at which to insert the item.item - The item to insert.public void clear()
public java.lang.Object get(int index)
index - The index of the element 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||