nextapp.echo
Class AbstractListModel

java.lang.Object
  extended by nextapp.echo.AbstractListModel
All Implemented Interfaces:
java.io.Serializable, ListModel
Direct Known Subclasses:
AbstractSelectFieldModel, DefaultListModel

public abstract class AbstractListModel
extends java.lang.Object
implements ListModel, java.io.Serializable

A base class from which ListModel implementations are derived. This class provides event handling functionality so that components may be redrawn when models change.

See Also:
Serialized Form

Field Summary
protected  EventListenerList listenerList
          A storage facility for EventListeners.
 
Constructor Summary
AbstractListModel()
          Creates a new AbstractListModel.
 
Method Summary
 void addListDataListener(ListDataListener l)
          Adds a ListDataListener to the model.
protected  void fireContentsChanged(java.lang.Object source, int index0, int index1)
          AbstractListModel subclasses must call this method after one or elements are changed.
protected  void fireIntervalAdded(java.lang.Object source, int index0, int index1)
          AbstractListModel subclasses must call this method after one or elements are added.
protected  void fireIntervalRemoved(java.lang.Object source, int index0, int index1)
          AbstractListModel subclasses must call this method after one or elements are removed.
 void removeListDataListener(ListDataListener l)
          Removes a ListDataListener from the model.
 
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
get, size
 

Field Detail

listenerList

protected EventListenerList listenerList
A storage facility for EventListeners.

Constructor Detail

AbstractListModel

public AbstractListModel()
Creates a new AbstractListModel.

Method Detail

addListDataListener

public void addListDataListener(ListDataListener l)
Description copied from interface: ListModel
Adds a ListDataListener to the model. ListDataListeners are notified whenever the model changes.

Specified by:
addListDataListener in interface ListModel
Parameters:
l - The ListDataListener to be added.
See Also:
ListModel.addListDataListener(ListDataListener)

fireContentsChanged

protected void fireContentsChanged(java.lang.Object source,
                                   int index0,
                                   int index1)
AbstractListModel subclasses must call this method after one or elements are changed.


fireIntervalAdded

protected void fireIntervalAdded(java.lang.Object source,
                                 int index0,
                                 int index1)
AbstractListModel subclasses must call this method after one or elements are added.


fireIntervalRemoved

protected void fireIntervalRemoved(java.lang.Object source,
                                   int index0,
                                   int index1)
AbstractListModel subclasses must call this method after one or elements are removed.


removeListDataListener

public void removeListDataListener(ListDataListener l)
Description copied from interface: ListModel
Removes a ListDataListener from the model. ListDataListeners are notified whenever the model changes.

Specified by:
removeListDataListener in interface ListModel
Parameters:
l - The ListDataListener to be removed.
See Also:
ListModel.removeListDataListener(ListDataListener)