public abstract class AbstractListModel extends java.lang.Object implements ListModel
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList |
_listeners
A list of ListDataListeners registered for this object.
|
Constructor and Description |
---|
AbstractListModel() |
Modifier and Type | Method and Description |
---|---|
void |
addListDataListener(ListDataListener l_)
Register an ListDataListener object.
|
void |
fireContentsChanged(java.lang.Object source_,
int index0_,
int index1_)
Subclasses of AbstractListModel must call this method after the
contents of one or more elements of the list has changed.
|
void |
fireIntervalAdded(java.lang.Object source_,
int index0_,
int index1_)
Subclasses of AbstractListModel must call this method after
one or more elements of the list has been added to the model.
|
void |
fireIntervalRemoved(java.lang.Object source_,
int index0_,
int index1_)
Subclasses of AbstractListModel must call this method after
one or more elements of the list has been removed from the model.
|
void |
removeListDataListener(ListDataListener l_)
Remove the specified ListDataListener from the list of listeners
that will be notified.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementAt, getSize
protected java.util.ArrayList _listeners
public void addListDataListener(ListDataListener l_)
addListDataListener
in interface ListModel
public void removeListDataListener(ListDataListener l_)
removeListDataListener
in interface ListModel
public void fireContentsChanged(java.lang.Object source_, int index0_, int index1_)
public void fireIntervalRemoved(java.lang.Object source_, int index0_, int index1_)
public void fireIntervalAdded(java.lang.Object source_, int index0_, int index1_)