public class ExplorerTreeModel extends Object implements TreeModel
| Constructor and Description |
|---|
ExplorerTreeModel(Object rootElement,
List<NodeInfo> nodeInfos)
Explorer Tree Model
|
ExplorerTreeModel(Object rootElement,
Map<Class<?>,NodeInfo> nodeInfos)
Explorer Tree Model Model
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeModelListener(TreeModelListener arg0) |
Object |
getChild(Object node,
int index) |
int |
getChildCount(Object node) |
int |
getIndexOfChild(Object node,
Object child) |
Map<Class<?>,NodeInfo> |
getNodeInfos() |
Object |
getRoot() |
boolean |
isLeaf(Object node) |
void |
removeTreeModelListener(TreeModelListener arg0) |
void |
valueForPathChanged(TreePath arg0,
Object arg1) |
public ExplorerTreeModel(Object rootElement, Map<Class<?>,NodeInfo> nodeInfos)
rootElement - the root nodenodeInfos - a map of NodeInfo instances defining the tree layout.public int getChildCount(Object node)
getChildCount in interface TreeModelpublic int getIndexOfChild(Object node, Object child)
getIndexOfChild in interface TreeModelpublic void addTreeModelListener(TreeModelListener arg0)
addTreeModelListener in interface TreeModelpublic void removeTreeModelListener(TreeModelListener arg0)
removeTreeModelListener in interface TreeModelpublic void valueForPathChanged(TreePath arg0, Object arg1)
valueForPathChanged in interface TreeModelCopyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.