| |
|
| java.lang.Object ob.tree.TreeNode ob.tree.TreeNodeX ob.tree.Node
All known Subclasses: ob.tree.TreeItem,
Node | public class Node extends TreeNodeX (Code) | | The Node class is used to describe various properties associated with an individual
level of the tree. It inherits from TreeNodeX and TreeNode to provide much of the
sibling/parent node navigation. The Node class itself is responsible for many of the
properties of the node itself
See Also: ob.tree.TreeNodeX See Also: ob.tree.TreeNode See Also: ob.tree.TreeBase |
Constructor Summary | |
public | Node(String label, int image, int expImg) | public | Node() |
m_bExpanded | boolean m_bExpanded(Code) | | |
m_bVisible | boolean m_bVisible(Code) | | |
m_nChildren | int m_nChildren(Code) | | |
m_nExpandedImage | int m_nExpandedImage(Code) | | |
Node | public Node(String label, int image, int expImg)(Code) | | constructor
Parameters: label - the label for the tree node Parameters: image - reference to the image displayed when the node is not expanded Parameters: expImg - reference to the image displayed when the node is expanded |
Node | public Node()(Code) | | constructor
|
addSubItem | public void addSubItem(String s)(Code) | | appends a sub item to the node. In a multiple column tree control,
the leftmost column is the "main" item, while individual items can be
stored in the columns to the right as subitems.
Parameters: s - the String to create the subitem with |
expand | public void expand(boolean bExpand)(Code) | | expands the node if currently closed, otherwise collapses
Parameters: bExpand - true if you wish to expand, otherwise collapse |
getExpandedImage | public int getExpandedImage()(Code) | | retrieves the expanded image reference
expanded image reference as type int |
getFont | public Font getFont()(Code) | | retrieves the font associated with the node
node font as type Font |
getImage | public int getImage()(Code) | | retrieves the current image displayed
reference to the currently displayed image as type int |
getNodeChild | public Node getNodeChild(int index)(Code) | | |
getSubItems | public Vector getSubItems()(Code) | | retrieves all the subitems of the Node in a Vector list
subitems as type Vector |
getText | public String getText()(Code) | | retrieves the text of the node
text as type String |
isExpanded | public boolean isExpanded()(Code) | | determines whether the node is currently expanded or not
true if expanded, otherwise false |
isVisible | boolean isVisible()(Code) | | determines whether the node is currently visible
true if visible, otherwise false |
removeAllSubItems | public void removeAllSubItems()(Code) | | |
removeSubItem | public void removeSubItem(int nIndex)(Code) | | |
removeSubItem | public void removeSubItem(Node item)(Code) | | |
setExpandedImage | public void setExpandedImage(int i)(Code) | | sets the reference to the expanded image
Parameters: i - reference to the expanded image |
setFont | public void setFont(Font f)(Code) | | sets the font associated with the node
Parameters: f - font to set for the node |
setImage | public void setImage(int i)(Code) | | sets the unexpanded image
Parameters: i - reference to the unexpanded image |
setText | public void setText(String s)(Code) | | sets the text for the node
Parameters: s - text as type String |
setVisible | public void setVisible(boolean bVisible)(Code) | | sets the visible state of the node
Parameters: bVisible - true if item should be visible, otherwise false |
|
|
|