Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractListModel
The Abstract definition for the data model the provides a 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. A future release of Swing will provide support for long term persistence.
Field Summary | |
protected EventListenerList |
listenerList
|
Constructor Summary | |
AbstractListModel()
|
Method Summary | |
void |
addListDataListener(ListDataListener l)
Add a listener to the list that's notified each time a change to the data model occurs. |
protected void |
fireContentsChanged(Object source,
int index0,
int index1)
AbstractListModel subclasses must call this method after one or more elements of the list change. |
protected void |
fireIntervalAdded(Object source,
int index0,
int index1)
AbstractListModel subclasses must call this method after one or more elements are added to the model. |
protected void |
fireIntervalRemoved(Object source,
int index0,
int index1)
AbstractListModel subclasses must call this method after one or more elements are removed from the model. |
void |
removeListDataListener(ListDataListener l)
Remove a listener from the list that's notified each time a change to the data model occurs. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected EventListenerList listenerList
Constructor Detail |
public AbstractListModel()
Method Detail |
public void addListDataListener(ListDataListener l)
l
- the ListDataListenerpublic void removeListDataListener(ListDataListener l)
l
- the ListDataListenerprotected void fireContentsChanged(Object source, int index0, int index1)
source
- The ListModel that changed, typically "this".index0
- One end of the new interval.index1
- The other end of the new interval.EventListenerList
,
DefaultListModel
protected void fireIntervalAdded(Object source, int index0, int index1)
source
- The ListModel that changed, typically "this".index0
- One end of the new interval.index1
- The other end of the new interval.EventListenerList
,
DefaultListModel
protected void fireIntervalRemoved(Object source, int index0, int index1)
source
- The ListModel that changed, typically "this".index0
- One end of the new interval.index1
- The other end of the new interval.EventListenerList
,
DefaultListModel
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |