Package uk.ac.starlink.topcat
Class ListModel2
- java.lang.Object
-
- javax.swing.AbstractListModel
-
- uk.ac.starlink.topcat.ListModel2
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.ListModel
public class ListModel2 extends javax.swing.AbstractListModel
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 model1, javax.swing.ListModel model2)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getElementAt(int ix)
javax.swing.ListModel
getModel1()
Returns the model providing the first run of entries.javax.swing.ListModel
getModel2()
Returns the model providing the second run of entries.int
getSize()
-
-
-
Method Detail
-
getModel1
public javax.swing.ListModel getModel1()
Returns the model providing the first run of entries.- Returns:
- model 1
-
getModel2
public javax.swing.ListModel getModel2()
Returns the model providing the second run of entries.- Returns:
- model 2
-
getElementAt
public java.lang.Object getElementAt(int ix)
-
getSize
public int getSize()
-
-