© 2006-2007 ETH Zurich

org.ximtec.igesture.tool.explorer.core
Interface NodeInfo

All Known Implementing Classes:
NodeInfoImpl

public interface NodeInfo

NodeInfo. Defines the structure of an Exlorer Tree.

Since:
igesture
Version:
1.0
Author:
UeliKurmann

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 object)
          Returns the name of the node
 JPopupMenu getPopupMenu(TreePath node)
          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 node)
          Returns true if the current node is a leaf
 

Method Detail

getType

Class<?> getType()
Rerturns the type of the node

Returns:

getName

String getName(Object object)
Returns the name of the node

Parameters:
object -
Returns:

getTooltip

String getTooltip()
Returns the tool tip of the node

Returns:

getIcon

Icon getIcon()
Returns the icon of the node

Returns:

getChildren

List<Object> getChildren(Object node)
Returns a list of children

Parameters:
node -
Returns:

isLeaf

boolean isLeaf(Object node)
Returns true if the current node is a leaf

Parameters:
node - the node
Returns:
true if the current node is a leaf.

getView

ExplorerTreeView getView(Controller controller,
                         Object node)
Returns the view of the node

Parameters:
controller -
node -
Returns:

getPopupMenu

JPopupMenu getPopupMenu(TreePath node)
Returns the context menu of a node.

Parameters:
node -
Returns:

getExpandedIcon

Icon getExpandedIcon()
Returns the expanded icon

Returns:
the expanded icon

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.