Class NodeRootModel
- java.lang.Object
-
- javax.swing.AbstractListModel
-
- uk.ac.starlink.datanode.tree.select.NodeRootModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.ComboBoxModel
,javax.swing.ListModel
public class NodeRootModel extends javax.swing.AbstractListModel implements javax.swing.ComboBoxModel
Model for a NodeRootComboBox.- Since:
- 10 Mar 2005
- Author:
- Mark Taylor (Starlink)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeRootModel(DataNodeFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChain(uk.ac.starlink.datanode.tree.select.NodeChain chain)
Adds a new node chain to this model.uk.ac.starlink.connect.ConnectorAction
getConnectorAction()
java.lang.Object
getElementAt(int index)
java.lang.Object
getSelectedItem()
DataNode
getSelectedNode()
int
getSize()
void
removeAllElements()
void
setSelectedItem(java.lang.Object item)
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
NodeRootModel
public NodeRootModel(DataNodeFactory factory)
-
-
Method Detail
-
getSize
public int getSize()
- Specified by:
getSize
in interfacejavax.swing.ListModel
-
getElementAt
public java.lang.Object getElementAt(int index)
- Specified by:
getElementAt
in interfacejavax.swing.ListModel
-
getSelectedItem
public java.lang.Object getSelectedItem()
- Specified by:
getSelectedItem
in interfacejavax.swing.ComboBoxModel
-
setSelectedItem
public void setSelectedItem(java.lang.Object item)
- Specified by:
setSelectedItem
in interfacejavax.swing.ComboBoxModel
-
getSelectedNode
public DataNode 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()
-
-