All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.AbstractListModel
java.lang.Object
|
+----com.sun.java.swing.AbstractListModel
- public abstract class AbstractListModel
- extends Object
- implements ListModel, Serializable
-
listenerList
-
-
AbstractListModel()
-
-
addListDataListener(ListDataListener)
- Add a listener to the list that's notified each time a change
to the data model occurs.
-
fireContentsChanged(Object, int, int)
- AbstractListModel subclasses must call this method after
one or more elements of the list change.
-
fireIntervalAdded(Object, int, int)
-
-
fireIntervalRemoved(Object, int, int)
-
-
getElementAt(int)
- Returns the value at the specified index.
-
getSize()
-
Returns the length of the list.
-
removeListDataListener(ListDataListener)
- Remove a listener from the list that's notified each time a
change to the data model occurs.
listenerList
protected EventListenerList listenerList
AbstractListModel
public AbstractListModel()
addListDataListener
public void addListDataListener(ListDataListener l)
- Add a listener to the list that's notified each time a change
to the data model occurs.
- Parameters:
- l - the ListDataListener
removeListDataListener
public void removeListDataListener(ListDataListener l)
- Remove a listener from the list that's notified each time a
change to the data model occurs.
- Parameters:
- l - the ListDataListener
fireContentsChanged
protected void fireContentsChanged(Object source,
int index0,
int index1)
- AbstractListModel subclasses must call this method after
one or more elements of the list change. The changed elements
are specified by a closed interval index0, index1, i.e. the
range that includes both index0 and index1. Note that
index0 need not be less than or equal to index1.
- Parameters:
- source - The ListModel that changed, typically "this".
- index0 - One end of the new interval.
- index1 - The other end of the new interval.
- See Also:
- EventListenerList, DefaultListModel
fireIntervalAdded
protected void fireIntervalAdded(Object source,
int index0,
int index1)
fireIntervalRemoved
protected void fireIntervalRemoved(Object source,
int index0,
int index1)
All Packages Class Hierarchy This Package Previous Next Index