public class NodeRootModel
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel
Constructor and Description |
---|
NodeRootModel(DataNodeFactory factory) |
Modifier and Type | Method and 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) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public NodeRootModel(DataNodeFactory factory)
public int getSize()
getSize
in interface javax.swing.ListModel
public java.lang.Object getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
public void setSelectedItem(java.lang.Object item)
setSelectedItem
in interface javax.swing.ComboBoxModel
public DataNode getSelectedNode()
public void addChain(uk.ac.starlink.datanode.tree.select.NodeChain chain)
chain
- new chain to addpublic void removeAllElements()
public uk.ac.starlink.connect.ConnectorAction getConnectorAction()
Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.