|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.tool.explorer.NodeInfoImpl
public class NodeInfoImpl
Implementation of the NodeInfo interface. Reflection and dynamic class loading is used to get children, views, etc.
| Field Summary | |
|---|---|
static String |
CHILD_DELIMITER
|
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CHILD_DELIMITER
| Constructor Detail |
|---|
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 node| Method Detail |
|---|
public List<Object> getChildren(Object node)
NodeInfo
getChildren in interface NodeInfopublic Icon getIcon()
NodeInfo
getIcon in interface NodeInfopublic Icon getExpandedIcon()
NodeInfo
getExpandedIcon in interface NodeInfopublic String getName(Object node)
NodeInfo
getName in interface NodeInfopublic String getTooltip()
NodeInfo
getTooltip in interface NodeInfopublic Class<?> getType()
NodeInfo
getType in interface NodeInfopublic boolean isLeaf(Object object)
NodeInfo
isLeaf in interface NodeInfoobject - the node
public ExplorerTreeView getView(Controller controller,
Object node)
NodeInfo
getView in interface NodeInfopublic JPopupMenu getPopupMenu(TreePath treePath)
NodeInfo
getPopupMenu in interface NodeInfo
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||