|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.gui.image.widget.TreeNode
public class TreeNode
| Field Summary | |
|---|---|
protected Vector |
m_downChildren
|
protected Vector |
m_upChildren
|
| Constructor Summary | |
|---|---|
TreeNode(String name,
String desc)
|
|
TreeNode(String name,
String desc,
boolean selected)
|
|
| Method Summary | |
|---|---|
void |
addDownChild(ITreeNode child)
Adds a single child to the down children list. |
void |
addDownChildren(ITreeNode[] children)
Add an array of children to the down children list. |
void |
addRectangle(int x,
int y,
int cx,
int cy)
|
void |
addUpChild(ITreeNode child)
Adds a single child to the up children list. |
void |
addUpChildren(ITreeNode[] children)
Add an array of children to the up children list. |
void |
clear()
Empties the list of both up and down children. |
String |
getDescription()
|
ITreeNode[] |
getDownChildren()
|
int |
getDownChildrenCount()
|
BufferedImage |
getImage()
|
String |
getName()
|
Rectangle[] |
getRectangles()
|
ITreeNode[] |
getUpChildren()
|
int |
getUpChildrenCount()
|
boolean |
hasDownChildren()
|
boolean |
hasUpChildren()
|
boolean |
isSelected()
|
void |
reset()
Clears the internal state of the node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Vector m_upChildren
protected Vector m_downChildren
| Constructor Detail |
|---|
public TreeNode(String name,
String desc)
public TreeNode(String name,
String desc,
boolean selected)
| Method Detail |
|---|
public void addUpChild(ITreeNode child)
child - An object that implements the IResourceTreeNode interface.IResourceTreeNodepublic void addUpChildren(ITreeNode[] children)
children - An array of objects that implement the IResourceTreeNode interface.IResourceTreeNodepublic ITreeNode[] getUpChildren()
getUpChildren in interface ITreeNodeITreeNode.getUpChildren()public int getUpChildrenCount()
public boolean hasUpChildren()
hasUpChildren in interface ITreeNodepublic void addDownChild(ITreeNode child)
child - An object that implements the IResourceTreeNode interface.IResourceTreeNodepublic void addDownChildren(ITreeNode[] children)
children - An array of objects that implement the IResourceTreeNode interface.IResourceTreeNodepublic ITreeNode[] getDownChildren()
getDownChildren in interface ITreeNodeITreeNode.getDownChildren()public int getDownChildrenCount()
public boolean hasDownChildren()
hasDownChildren in interface ITreeNodepublic void clear()
public String getDescription()
getDescription in interface ITreeNodeITreeNode.getDescription()public BufferedImage getImage()
public String getName()
getName in interface ITreeNodeITreeNode.getName()public Rectangle[] getRectangles()
getRectangles in interface ITreeNodeITreeNode.getRectangles()public boolean isSelected()
isSelected in interface ITreeNodeITreeNode.isSelected()
public void addRectangle(int x,
int y,
int cx,
int cy)
addRectangle in interface ITreeNodeITreeNode.addRectangle(int, int, int, int)public void reset()
reset in interface ITreeNodeResourceTree.reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||