- java.lang.Object
-
- javax.swing.AbstractListModel<T>
-
- com.iamsoft.util.ui.swing.CompositeListModel<T>
-
- Type Parameters:
T
- the type of the elements of this model
- All Implemented Interfaces:
Serializable
,ListModel<T>
public class CompositeListModel<T> extends AbstractListModel<T>
A list composed of zero to many child lists models. Events are automatically propagated from component lists.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description CompositeListModel(List<ListModel<? extends T>> pComponentLists)
CompositeListModel(ListModel<? extends T>... pComponentLists)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getElementAt(int pIdx)
List<ListModel<? extends T>>
getListModels()
int
getSize()
Sum of sizes of component list models.-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-