nextapp.echo
Interface ListModel

All Known Subinterfaces:
SelectFieldModel
All Known Implementing Classes:
AbstractListModel, AbstractSelectFieldModel, BoundListModel, DefaultListModel, DefaultSelectFieldModel

public interface ListModel

A data model for list type components (SelectFields and ListBoxes).


Method Summary
 void addListDataListener(ListDataListener l)
          Adds a ListDataListener to the model.
 java.lang.Object get(int index)
          Returns the value at the specified position in the list.
 void removeListDataListener(ListDataListener l)
          Removes a ListDataListener from the model.
 int size()
          Returns the size of the list.
 

Method Detail

addListDataListener

void addListDataListener(ListDataListener l)
Adds a ListDataListener to the model. ListDataListeners are notified whenever the model changes.

Parameters:
l - The ListDataListener to be added.

get

java.lang.Object get(int index)
Returns the value at the specified position in the list.

Returns:
The value at the specified position in the list.

size

int size()
Returns the size of the list.

Returns:
The size of the list.

removeListDataListener

void removeListDataListener(ListDataListener l)
Removes a ListDataListener from the model. ListDataListeners are notified whenever the model changes.

Parameters:
l - The ListDataListener to be removed.