|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.bizapp.shared.uibeans.TreeNode
public class TreeNode
Implementation of the tree node interface for rendering the navigation map.
Field Summary | |
---|---|
protected java.util.ArrayList |
downChildren
Children that are one level down from this node. |
static int |
NO_CTYPE
Constant representing no ctype. |
protected java.util.ArrayList |
upChildren
Children that are one level up from this node. |
Constructor Summary | |
---|---|
TreeNode(java.lang.String name,
java.lang.String desc)
Creates a new TreeNode instance. |
Method Summary | |
---|---|
void |
addDownChild(ITreeNode child)
Add a child one level below this node. |
void |
addDownChildren(ITreeNode[] children)
Add several children one level below this node. |
void |
addRectangle(int x,
int y,
int cx,
int cy)
Set the rectangle of coordinates for the image map. |
void |
addUpChild(ITreeNode child)
Add a child one level above this node. |
void |
addUpChildren(ITreeNode[] children)
Add several children one level above this node. |
void |
clear()
Describe clear method here. |
boolean |
equals(java.lang.Object o)
Determines whether two objects are equal. |
java.lang.String |
getDescription()
Get the description. |
ITreeNode[] |
getDownChildren()
Get the children one level down from this node. |
int |
getDownChildrenCount()
Return the number of children one level below this node. |
java.lang.String |
getName()
Get the name. |
java.awt.Rectangle[] |
getRectangles()
Get the rectangles of coordinates for the image map. |
ITreeNode[] |
getUpChildren()
Get the children one level up from this node. |
int |
getUpChildrenCount()
Return the number of children one level above this node. |
boolean |
hasDownChildren()
Returns true if this node has children one level below. |
int |
hashCode()
Returns the hashcode of this object. |
boolean |
hasUpChildren()
Returns true if this node has children one level above. |
boolean |
isSelected()
Returns true if the node is selected, false otherwise. |
void |
replaceDownChildren(ITreeNode[] children)
Replace down children |
void |
replaceUpChildren(ITreeNode[] children)
Replace up children |
void |
reset()
Clears the internal state of the node. |
void |
setDescription(java.lang.String desc)
Set the description. |
void |
setName(java.lang.String name)
Set the name. |
void |
setSelected(boolean selected)
Set whether or not this node is selected. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NO_CTYPE
protected java.util.ArrayList upChildren
protected java.util.ArrayList downChildren
Constructor Detail |
---|
public TreeNode(java.lang.String name, java.lang.String desc)
TreeNode
instance.
name
- the namedesc
- the descriptionMethod Detail |
---|
public java.lang.String getName()
getName
in interface ITreeNode
public void setName(java.lang.String name)
name
- the name of the nodepublic java.lang.String getDescription()
getDescription
in interface ITreeNode
public void setDescription(java.lang.String desc)
desc
- the description of the nodepublic java.awt.Rectangle[] getRectangles()
getRectangles
in interface ITreeNode
public void addRectangle(int x, int y, int cx, int cy)
addRectangle
in interface ITreeNode
x
- top left corner horizontal positiony
- top left corner horizontal positioncx
- widthcy
- heightpublic boolean isSelected()
isSelected
in interface ITreeNode
public void setSelected(boolean selected)
selected
- true or falsepublic void addUpChild(ITreeNode child)
child
- the child to addpublic void addUpChildren(ITreeNode[] children)
children
- the children to addpublic ITreeNode[] getUpChildren()
getUpChildren
in interface ITreeNode
public int getUpChildrenCount()
public boolean hasUpChildren()
hasUpChildren
in interface ITreeNode
public void addDownChild(ITreeNode child)
child
- the child to addpublic void addDownChildren(ITreeNode[] children)
children
- the children to addpublic void replaceDownChildren(ITreeNode[] children)
children
- the children to replacepublic void replaceUpChildren(ITreeNode[] children)
children
- the children to replacepublic ITreeNode[] getDownChildren()
getDownChildren
in interface ITreeNode
public int getDownChildrenCount()
public boolean hasDownChildren()
hasDownChildren
in interface ITreeNode
public void clear()
clear
method here.
public void reset()
reset
in interface ITreeNode
net.covalent.image.widget.ResourceTree#reset()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |