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
-
NOCHILD
-
-
getChildren()
- Gets the children
-
getHandler()
- Gets the handler.
-
getIcon()
- Gets the current Icon.
-
getItem()
- Gets the item.
-
getLabel()
- Gets the label.
-
isSelected()
- Checks if the Node is selected.
-
setChildren(int)
- Sets the children
-
setIcon(Image)
- Sets the icon.
-
setLabel(String)
- Sets the label.
NOCHILD
public static final int NOCHILD
getItem
public Object getItem()
- Gets the item.
getLabel
public String getLabel()
- Gets the label.
- See Also:
- setLabel
getIcon
public Image getIcon()
- Gets the current Icon.
- See Also:
- setIcon
getHandler
public NodeHandler getHandler()
- Gets the handler.
getChildren
public int getChildren()
- Gets the children
isSelected
public boolean isSelected()
- Checks if the Node is selected.
setIcon
public void setIcon(Image i)
- Sets the icon.
- See Also:
- getIcon
setLabel
public void setLabel(String l)
- Sets the label.
- See Also:
- getLabel
setChildren
public void setChildren(int children)
- Sets the children
- See Also:
- getChildren
All Packages Class Hierarchy This Package Previous Next Index