public abstract class AbstractListModel extends java.lang.Object implements ListModel, java.io.Serializable
ListModel implementations may be
derived. This class provides event listener management facilities.| Constructor and Description |
|---|
AbstractListModel()
Creates a new AbstractListModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListDataListener(ListDataListener l)
Adds a
ListDataListener to the model. |
protected void |
fireContentsChanged(int index0,
int index1)
Notifies listeners that the contents of the list have changed.
|
protected void |
fireIntervalAdded(int index0,
int index1)
Notifies listeners that an interval of items was added.
|
protected void |
fireIntervalRemoved(int index0,
int index1)
Notifies listeners that an interval of items was removed.
|
protected EventListenerList |
getEventListenerList()
Returns the
EventListenerList being used to manage event
listeners. |
void |
removeListDataListener(ListDataListener l)
Removes a
ListDataListener from the model. |
public void addListDataListener(ListDataListener l)
ListModelListDataListener to the model.
ListDataListeners are notified whenever the model
changes.addListDataListener in interface ListModell - the ListDataListener to addListModel.addListDataListener(nextapp.echo.app.event.ListDataListener)protected EventListenerList getEventListenerList()
EventListenerList being used to manage event
listeners.protected void fireContentsChanged(int index0,
int index1)
index0 - the index of the first changed itemindex1 - the index of the last changed itemprotected void fireIntervalAdded(int index0,
int index1)
index0 - the index of the first added itemindex1 - the index of the last added itemprotected void fireIntervalRemoved(int index0,
int index1)
index0 - the index of the first removed indexindex1 - the index of the last removed indexpublic void removeListDataListener(ListDataListener l)
ListModelListDataListener from the model.
ListDataListener are notified whenever the model changes.removeListDataListener in interface ListModell - the ListDataListener to removeListModel.removeListDataListener(nextapp.echo.app.event.ListDataListener)