Package uk.ac.starlink.topcat
Class ListModel2<E>
java.lang.Object
javax.swing.AbstractListModel<E>
uk.ac.starlink.topcat.ListModel2<E>
- All Implemented Interfaces:
Serializable
,ListModel<E>
ListModel implementation that represents the concatenation of
two supplied constituent ListModels.
- Since:
- 10 May 2018
- Author:
- Mark Taylor
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
Constructor Details
-
ListModel2
Constructor.- Parameters:
model1
- first constituent modelmodel2
- second constituend model
-
-
Method Details
-
getModel1
Returns the model providing the first run of entries.- Returns:
- model 1
-
getModel2
Returns the model providing the second run of entries.- Returns:
- model 2
-
getElementAt
-
getSize
public int getSize()
-