| |
|
| java.lang.Object ob.tree.TreeNode ob.tree.TreeNodeX ob.tree.Node ob.tree.TreeItem
EXPAND | final public static int EXPAND(Code) | | indicates an EXPANDed state for the tree item
|
UNEXPAND | final public static int UNEXPAND(Code) | | indicates an UNEXPANDed state for the tree item
|
Visible | boolean Visible(Code) | | parent of the tree item
|
TreeItem | public TreeItem(String label)(Code) | | constructor accepts a label for the item
Parameters: label - the label for the tree item |
addItem | public void addItem(TreeItem child)(Code) | | adds a TreeItem to be a child of this TreeItem.
Parameters: item - the new item to add as a child |
bounds | public Rectangle bounds()(Code) | | retrieves the bounding rectangle for the item
bounding rectangle as type Rectangle |
getIndex | public int getIndex()(Code) | | returns the position of the tree item relative to the parent.
position of tree item. If no parent, returns a -1. See Also: TreeItem.getNextItem |
getNextItem | public TreeItem getNextItem()(Code) | | retrieves the next sequential tree item on the same level with the
same parent.
the next tree item on this level with the same parent as type TreeItem.if none found, then return null. See Also: TreeItem.getIndex See Also: TreeItem.getPrevItem |
getPrevItem | public TreeItem getPrevItem()(Code) | | retrieves the previous sequential tree item on the same level with the
same parent.
the previous tree item on this level with the same parent; if nonefound return null. See Also: TreeItem.getIndex See Also: TreeItem.getNextItem |
getStatus | public int getStatus()(Code) | | gets the expanded status of the tree item.
expanded status as one of following int values: EXPAND or UNEXPAND See Also: TreeItem.setStatus |
isChildOf | public boolean isChildOf(TreeItem[] items)(Code) | | determines whether this item is the child of one of the items
Parameters: items - the items to check if it is a parent of this item whether this item is a child as type boolean |
isParentOf | public boolean isParentOf(TreeItem item)(Code) | | determines whether item is the parent of a this item
Parameters: item - the item to check if it is a child of this item whether the item is a child as type boolean |
printTree | public void printTree()(Code) | | |
remove | public void remove(TreeItem item)(Code) | | removes a child item from the tree item
Parameters: item - item to remove |
removeAll | public void removeAll()(Code) | | |
setData | public void setData(Object data)(Code) | | sets the data associated with this item
Parameters: data - new data for this item as type Object See Also: TreeItem.getData |
setStatus | public void setStatus(int s)(Code) | | sets the expanded status of the tree item
Parameters: s - can be EXPAND or UNEXPAND See Also: getStatus |
|
|
|