public class NodeRootModel extends AbstractListModel implements ComboBoxModel
listenerList
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.
|
ConnectorAction |
getConnectorAction() |
Object |
getElementAt(int index) |
Object |
getSelectedItem() |
DataNode |
getSelectedNode() |
int |
getSize() |
void |
removeAllElements() |
void |
setSelectedItem(Object item) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public NodeRootModel(DataNodeFactory factory)
public Object getElementAt(int index)
getElementAt
in interface ListModel
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public void setSelectedItem(Object item)
setSelectedItem
in interface ComboBoxModel
public DataNode getSelectedNode()
public void addChain(uk.ac.starlink.datanode.tree.select.NodeChain chain)
chain
- new chain to addpublic void removeAllElements()
public ConnectorAction getConnectorAction()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.