com.vividsolutions.jump.workbench.ui.addremove
Class TreeAddRemoveListModel
java.lang.Object
com.vividsolutions.jump.workbench.ui.addremove.TreeAddRemoveListModel
- All Implemented Interfaces:
- AddRemoveListModel
public class TreeAddRemoveListModel
- extends java.lang.Object
- implements AddRemoveListModel
A read-only tree appropriate for the left-hand panel of an AddRemovePanel.
Not for use as the right-hand panel because it is read-only -- it does not
have any logic for adding a node to the tree (or removing a node, for that
matter).
|
Method Summary |
void |
add(java.lang.Object item)
|
java.util.List |
getItems()
|
javax.swing.tree.TreeModel |
getTreeModel()
|
void |
remove(java.lang.Object item)
|
void |
setItems(java.util.Collection items)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeAddRemoveListModel
public TreeAddRemoveListModel(javax.swing.tree.TreeModel treeModel)
getTreeModel
public javax.swing.tree.TreeModel getTreeModel()
add
public void add(java.lang.Object item)
- Specified by:
add in interface AddRemoveListModel
setItems
public void setItems(java.util.Collection items)
- Specified by:
setItems in interface AddRemoveListModel
getItems
public java.util.List getItems()
- Specified by:
getItems in interface AddRemoveListModel
remove
public void remove(java.lang.Object item)
- Specified by:
remove in interface AddRemoveListModel