| Modifier and Type | Field and Description |
|---|---|
static String |
CHILD_DELIMITER |
| Constructor and Description |
|---|
NodeInfoImpl(Controller controller,
Class<? extends Object> type,
String propertyName,
String childList,
Class<? extends ExplorerTreeView> view,
List<Class<? extends org.sigtec.graphix.widget.BasicAction>> popupActions,
String key)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getChildren(Object node)
Returns a list of children
|
Icon |
getExpandedIcon()
Returns the expanded icon
|
Icon |
getIcon()
Returns the icon of the node
|
String |
getName(Object node)
Returns the name of the node
|
JPopupMenu |
getPopupMenu(TreePath treePath)
Returns the context menu of a node.
|
String |
getTooltip()
Returns the tool tip of the node
|
Class<?> |
getType()
Rerturns the type of the node
|
ExplorerTreeView |
getView(Controller controller,
Object node)
Returns the view of the node
|
boolean |
isLeaf(Object object)
Returns true if the current node is a leaf
|
public static final String CHILD_DELIMITER
public NodeInfoImpl(Controller controller, Class<? extends Object> type, String propertyName, String childList, Class<? extends ExplorerTreeView> view, List<Class<? extends org.sigtec.graphix.widget.BasicAction>> popupActions, String key)
type - the type (class) of the nodepropertyName - the name of the property containing the name of the node.childList - a list of properties (as ";" separated strings) which should be
used as children.view - the view belonging the node. The view MUST HAVE a constructor with
the node instance as the only parameter.popupActions - a list of actions.icon - the icon of the nodepublic List<Object> getChildren(Object node)
NodeInfogetChildren in interface NodeInfopublic Icon getIcon()
NodeInfopublic Icon getExpandedIcon()
NodeInfogetExpandedIcon in interface NodeInfopublic String getName(Object node)
NodeInfopublic String getTooltip()
NodeInfogetTooltip in interface NodeInfopublic Class<?> getType()
NodeInfopublic boolean isLeaf(Object object)
NodeInfopublic ExplorerTreeView getView(Controller controller, Object node)
NodeInfopublic JPopupMenu getPopupMenu(TreePath treePath)
NodeInfogetPopupMenu in interface NodeInfoCopyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.