Class NodeRootModel
java.lang.Object
javax.swing.AbstractListModel
uk.ac.starlink.datanode.tree.select.NodeRootModel
- All Implemented Interfaces:
Serializable,ComboBoxModel,ListModel
Model for a NodeRootComboBox.
- Since:
- 10 Mar 2005
- Author:
- Mark Taylor (Starlink)
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChain(uk.ac.starlink.datanode.tree.select.NodeChain chain) Adds a new node chain to this model.uk.ac.starlink.connect.ConnectorActiongetElementAt(int index) intgetSize()voidvoidsetSelectedItem(Object item) Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Constructor Details
-
NodeRootModel
-
-
Method Details
-
getSize
public int getSize() -
getElementAt
- Specified by:
getElementAtin interfaceListModel
-
getSelectedItem
- Specified by:
getSelectedItemin interfaceComboBoxModel
-
setSelectedItem
- Specified by:
setSelectedItemin interfaceComboBoxModel
-
getSelectedNode
-
addChain
public void addChain(uk.ac.starlink.datanode.tree.select.NodeChain chain) Adds a new node chain to this model.- Parameters:
chain- new chain to add
-
removeAllElements
public void removeAllElements() -
getConnectorAction
public uk.ac.starlink.connect.ConnectorAction getConnectorAction()
-