NextApp Echo2
v2.1.0

nextapp.echo2.app.list
Interface ListModel

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractListModel, DefaultListModel

public interface ListModel
extends java.io.Serializable

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 index 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 add

get

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

Parameters:
index - the index
Returns:
the value

size

int size()
Returns the size of the list.

Returns:
the size

removeListDataListener

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

Parameters:
l - the ListDataListener to remove

NextApp Echo2
v2.1.0