public static class TreeComboUtils.TreeModelToComboBoxModelAdapter extends AbstractListModel implements ComboBoxModel, TreeModelListener
listenerList
Constructor and Description |
---|
TreeModelToComboBoxModelAdapter(TreeModel aTreeModel) |
Modifier and Type | Method and Description |
---|---|
Object |
getElementAt(int index) |
DefaultMutableTreeNode |
getNode(int index) |
DefaultMutableTreeNode |
getNode(Object anObject) |
Object |
getSelectedItem() |
int |
getSize() |
void |
setSelectedItem(Object anObject) |
void |
treeNodesChanged(TreeModelEvent e) |
void |
treeNodesInserted(TreeModelEvent e) |
void |
treeNodesRemoved(TreeModelEvent e) |
void |
treeStructureChanged(TreeModelEvent e) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public TreeModelToComboBoxModelAdapter(TreeModel aTreeModel)
public void setSelectedItem(Object anObject)
setSelectedItem
in interface ComboBoxModel
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public Object getElementAt(int index)
getElementAt
in interface ListModel
public DefaultMutableTreeNode getNode(int index)
public DefaultMutableTreeNode getNode(Object anObject)
public void treeNodesChanged(TreeModelEvent e)
treeNodesChanged
in interface TreeModelListener
public void treeNodesInserted(TreeModelEvent e)
treeNodesInserted
in interface TreeModelListener
public void treeNodesRemoved(TreeModelEvent e)
treeNodesRemoved
in interface TreeModelListener
public void treeStructureChanged(TreeModelEvent e)
treeStructureChanged
in interface TreeModelListener