Package uk.ac.starlink.topcat
Class ListModel2<E>
- java.lang.Object
-
- javax.swing.AbstractListModel<E>
-
- uk.ac.starlink.topcat.ListModel2<E>
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.ListModel<E>
public class ListModel2<E> extends javax.swing.AbstractListModel<E>
ListModel implementation that represents the concatenation of two supplied constituent ListModels.- Since:
- 10 May 2018
- Author:
- Mark Taylor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListModel2(javax.swing.ListModel<E> model1, javax.swing.ListModel<E> model2)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getElementAt(int ix)
javax.swing.ListModel<E>
getModel1()
Returns the model providing the first run of entries.javax.swing.ListModel<E>
getModel2()
Returns the model providing the second run of entries.int
getSize()
-
-
-
Method Detail
-
getModel1
public javax.swing.ListModel<E> getModel1()
Returns the model providing the first run of entries.- Returns:
- model 1
-
getModel2
public javax.swing.ListModel<E> getModel2()
Returns the model providing the second run of entries.- Returns:
- model 2
-
getElementAt
public E getElementAt(int ix)
-
getSize
public int getSize()
-
-