Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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. `ListDataListener`s 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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD