com.vividsolutions.jump.workbench.ui.addremove
Class TreeAddRemoveListModel

java.lang.Object
  extended by 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).


Constructor Summary
TreeAddRemoveListModel(javax.swing.tree.TreeModel treeModel)
           
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeAddRemoveListModel

public TreeAddRemoveListModel(javax.swing.tree.TreeModel treeModel)
Method Detail

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