All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.tools.widgets.TreeNode

java.lang.Object
   |
   +----w3c.tools.widgets.TreeNode

public class TreeNode
extends Object
The representation of a node of a TreeBrowser. A TreeNode is used internally by the TreeBrowser to store informations related to a node. It is also given as parameter in the notifications the TreeBrowser send to handlers.

See Also:
TreeBrowser, NodeHandler

Variable Index

 o NOCHILD

Method Index

 o getChildren()
Gets the children
 o getHandler()
Gets the handler.
 o getIcon()
Gets the current Icon.
 o getItem()
Gets the item.
 o getLabel()
Gets the label.
 o isSelected()
Checks if the Node is selected.
 o setChildren(int)
Sets the children
 o setIcon(Image)
Sets the icon.
 o setLabel(String)
Sets the label.

Variables

 o NOCHILD
 public static final int NOCHILD

Methods

 o getItem
 public Object getItem()
Gets the item.

 o getLabel
 public String getLabel()
Gets the label.

See Also:
setLabel
 o getIcon
 public Image getIcon()
Gets the current Icon.

See Also:
setIcon
 o getHandler
 public NodeHandler getHandler()
Gets the handler.

 o getChildren
 public int getChildren()
Gets the children

 o isSelected
 public boolean isSelected()
Checks if the Node is selected.

 o setIcon
 public void setIcon(Image i)
Sets the icon.

See Also:
getIcon
 o setLabel
 public void setLabel(String l)
Sets the label.

See Also:
getLabel
 o setChildren
 public void setChildren(int children)
Sets the children

See Also:
getChildren

All Packages  Class Hierarchy  This Package  Previous  Next  Index