uk.ac.starlink.topcat
Class ListModel2

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by uk.ac.starlink.topcat.ListModel2
All Implemented Interfaces:
Serializable, ListModel

public class ListModel2
extends AbstractListModel

ListModel implementation that represents the concatenation of two supplied constituent ListModels.

Since:
10 May 2018
Author:
Mark Taylor
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
ListModel2(ListModel model1, ListModel model2)
          Constructor.
 
Method Summary
 Object getElementAt(int ix)
           
 ListModel getModel1()
          Returns the model providing the first run of entries.
 ListModel getModel2()
          Returns the model providing the second run of entries.
 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

ListModel2

public ListModel2(ListModel model1,
                  ListModel model2)
Constructor.

Parameters:
model1 - first constituent model
model2 - second constituend model
Method Detail

getModel1

public ListModel getModel1()
Returns the model providing the first run of entries.

Returns:
model 1

getModel2

public ListModel getModel2()
Returns the model providing the second run of entries.

Returns:
model 2

getElementAt

public Object getElementAt(int ix)

getSize

public int getSize()


Copyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.