|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel net.sourceforge.xwing.AggregatingListModel
A ListModel that acts as an aggregation of other ListModel instances. Access requests are translated into the corresponding access requests for the appripriate backingListModel, and change events from a backing ListModel are similarly translated and propagated to this model's listeners.
Field Summary |
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary | |
AggregatingListModel()
Make a new AggregatingListModel. |
Method Summary | |
void |
addElement(Object element)
Adds a single element to the end of our list of models. |
void |
addListModel(int index,
ListModel src)
Inserts the given ListModel into our list of models. |
void |
addListModel(ListModel src)
Appends the given ListModel onto the end of our list of models. |
void |
clear()
Remove all our contents. |
Object |
getElementAt(int index)
|
int |
getSize()
|
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AggregatingListModel()
Method Detail |
public int getSize()
public Object getElementAt(int index)
public void addListModel(ListModel src)
INTERVAL_ADDED
will
be broadcast to any active listeners.
src
- the model to addpublic void addListModel(int index, ListModel src)
INTERVAL_ADDED
will
be broadcast to any active listeners.
index
- Where in our list of models to insert the
model.src
- the model to addpublic void addElement(Object element)
public void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |