List
with its contents.Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans
package.
Please see java.
.
Modifier and Type | Field and Description |
---|---|
protected EventListenerList | listenerList
The listener list. |
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public void | addListDataListener(ListDataListener
the l)ListDataListener to be addedImplements javax. |
protected void | fireContentsChanged(Object
the source, int ListModel that changed, typically "this"one end of the new interval index0, int the other end of the new interval index1)
|
protected void | fireIntervalAdded(Object
the source, int ListModel that changed, typically "this"one end of the new interval index0, int the other end of the new interval index1)
|
protected void | fireIntervalRemoved(Object
the source, int ListModel that changed, typically "this"one end of the removed interval,
including index0, int index0 the other end of the removed interval,
including index1)index1
|
public ListDataListener[] | Returns: all of this model'sListDataListener s,
or an empty array if no list data listeners
are currently registeredReturns an array of all the list data listeners
registered on this |
public < the type of T extends EventListener> T[]EventListener class being requested | Returns: an array of all objects registered asFooListener s
on this model,
or an empty array if no such
listeners have been addedthe type of listeners requested;
this parameter should specify an interface
that descends from listenerType)java.util.EventListener Returns an array of all the objects currently registered as
|
public void | removeListDataListener(ListDataListener
the l)ListDataListener to be removedImplements javax. |
listenerList | back to summary |
---|---|
protected EventListenerList listenerList The listener list. |
AbstractListModel | back to summary |
---|---|
protected AbstractListModel() Constructor for subclasses to call. |
addListDataListener | back to summary |
---|---|
public void addListDataListener(ListDataListener l) Implements javax. Adds a listener to the list that's notified each time a change to the data model occurs.
|
fireContentsChanged | back to summary |
---|---|
protected void fireContentsChanged(Object source, int index0, int index1)
|
fireIntervalAdded | back to summary |
---|---|
protected void fireIntervalAdded(Object source, int index0, int index1)
|
fireIntervalRemoved | back to summary |
---|---|
protected void fireIntervalRemoved(Object source, int index0, int index1)
|
getListDataListeners | back to summary |
---|---|
public ListDataListener[] getListDataListeners() Returns an array of all the list data listeners
registered on this
|
getListeners | back to summary |
---|---|
public <T extends EventListener> T[] getListeners(Class<T> listenerType) Returns an array of all the objects currently registered as
You can specify the ListDataListener[] ldls = (ListDataListener[])(m.getListeners(ListDataListener.class));If no such listeners exist, this method returns an empty array.
|
removeListDataListener | back to summary |
---|---|
public void removeListDataListener(ListDataListener l) Implements javax. Removes a listener from the list that's notified each time a change to the data model occurs.
|