|
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
org.hyperic.hq.bizapp.shared.uibeans.ResourceTreeNode
public class ResourceTreeNode
Implementation of the resource tree node interface for rendering the navigation map.
| Field Summary |
|---|
| Fields inherited from class org.hyperic.hq.bizapp.shared.uibeans.TreeNode |
|---|
downChildren, NO_CTYPE, upChildren |
| Fields inherited from interface org.hyperic.util.data.IResourceTreeNode |
|---|
AUTO_GROUP, CLUSTER, NONE, RESOURCE |
| Constructor Summary | |
|---|---|
ResourceTreeNode(java.lang.String name,
java.lang.String desc,
AppdefEntityID[] pEntityIds,
int ctype,
int type)
Creates a new ResourceTreeNode instance for an
auto-group with multiple parent resources. |
|
ResourceTreeNode(java.lang.String name,
java.lang.String desc,
AppdefEntityID rEntityId,
AppdefEntityID[] pEntityIds,
int ctype)
Creates a promotable ResourceTreeNode instance for a
resource. |
|
ResourceTreeNode(java.lang.String name,
java.lang.String desc,
AppdefEntityID rEntityId,
AppdefEntityID pEntityId,
int ctype)
Creates a promotable ResourceTreeNode instance for a
resource. |
|
ResourceTreeNode(java.lang.String name,
java.lang.String desc,
AppdefEntityID rEntityId,
int type)
Creates a new ResourceTreeNode instance for a
resource. |
|
ResourceTreeNode(java.lang.String name,
java.lang.String desc,
AppdefEntityID pEntityId,
int ctype,
int type)
Creates a new ResourceTreeNode instance for an
auto-group with one parent resource. |
|
| Method Summary | |
|---|---|
static void |
alphaSortNodes(ResourceTreeNode[] children)
|
static void |
alphaSortNodes(ResourceTreeNode[] children,
boolean reverse)
|
static void |
autoGroupData(ResourceTreeNode[] data)
|
boolean |
equals(java.lang.Object o)
Determines whether two objects are equal. |
int |
getCtype()
Get the ctype. |
ITreeNode[] |
getDownChildren()
Overridden from TreeNode to ensure that the array
is of type IResourceTreeNode[]. |
AppdefEntityID[] |
getEntityIds()
If our type is a resource, then we return the resource ids. |
AppdefEntityID[] |
getPEntityIds()
Get the parents' Appdef entity ids. |
AppdefEntityID |
getREntityId()
Get the resource's Appdef entity id. |
int |
getType()
Return the type of this node. |
ITreeNode[] |
getUpChildren()
Overridden from TreeNode to ensure that the array
is of type IResourceTreeNode[]. |
boolean |
hasCtype()
Returns true if this node is an autogroup and has a ctype, false otherwise. |
int |
hashCode()
Returns the hashcode of this object. |
boolean |
isPromotable()
Is this node promotable to an auto-group |
void |
promote()
Promote a resource node to an auto-group node. |
void |
setCtype(int ctype)
Set the ctype. |
void |
setPEntityIds(AppdefEntityID[] pEntityIds)
Set the parents' Appdef entity ids. |
void |
setREntityId(AppdefEntityID rEntityId)
Set the resource's Appdef entity id. |
void |
setType(int type)
Set the type of this node. |
java.lang.String |
toString()
Return a string representation of this node. |
| Methods inherited from class org.hyperic.hq.bizapp.shared.uibeans.TreeNode |
|---|
addDownChild, addDownChildren, addRectangle, addUpChild, addUpChildren, clear, getDescription, getDownChildrenCount, getName, getRectangles, getUpChildrenCount, hasDownChildren, hasUpChildren, isSelected, replaceDownChildren, replaceUpChildren, reset, setDescription, setName, setSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.hyperic.util.data.ITreeNode |
|---|
addRectangle, getDescription, getName, getRectangles, hasDownChildren, hasUpChildren, isSelected, reset |
| Constructor Detail |
|---|
public ResourceTreeNode(java.lang.String name,
java.lang.String desc,
AppdefEntityID rEntityId,
AppdefEntityID pEntityId,
int ctype)
ResourceTreeNode instance for a
resource. The resource may be promoted to an auto-group with one
parent resource at a later time.
name - the namedesc - the descriptionrEntityId - the resource's entity idpEntityId - the Appdef parent entity idctype - the ctypetype - the type of this node
public ResourceTreeNode(java.lang.String name,
java.lang.String desc,
AppdefEntityID rEntityId,
AppdefEntityID[] pEntityIds,
int ctype)
ResourceTreeNode instance for a
resource. The resource may be promoted to an auto-group at a later
time.
name - the namedesc - the descriptionrEntityId - the resource's entity idpEntityIds - the Appdef parent entity idsctype - the ctype
public ResourceTreeNode(java.lang.String name,
java.lang.String desc,
AppdefEntityID pEntityId,
int ctype,
int type)
ResourceTreeNode instance for an
auto-group with one parent resource.
name - the namedesc - the descriptionpEntityId - the Appdef parent entity idctype - the ctypetype - the type of this node
public ResourceTreeNode(java.lang.String name,
java.lang.String desc,
AppdefEntityID[] pEntityIds,
int ctype,
int type)
ResourceTreeNode instance for an
auto-group with multiple parent resources.
name - the namedesc - the descriptionpEntityIds - the Appdef parent entity idsctype - the ctypetype - the type of this node
public ResourceTreeNode(java.lang.String name,
java.lang.String desc,
AppdefEntityID rEntityId,
int type)
ResourceTreeNode instance for a
resource.
name - the namedesc - the descriptionpEntityIds - the Appdef parent entity idsctype - the ctypetype - the type of this node| Method Detail |
|---|
public static void autoGroupData(ResourceTreeNode[] data)
public static void alphaSortNodes(ResourceTreeNode[] children)
public static void alphaSortNodes(ResourceTreeNode[] children,
boolean reverse)
public AppdefEntityID[] getEntityIds()
public int getType()
getType in interface IResourceTreeNodepublic void setType(int type)
type - the node typepublic boolean isPromotable()
public ITreeNode[] getUpChildren()
TreeNode to ensure that the array
is of type IResourceTreeNode[].
getUpChildren in interface ITreeNodegetUpChildren in class TreeNodepublic ITreeNode[] getDownChildren()
TreeNode to ensure that the array
is of type IResourceTreeNode[].
getDownChildren in interface ITreeNodegetDownChildren in class TreeNodepublic AppdefEntityID getREntityId()
public AppdefEntityID[] getPEntityIds()
public void setREntityId(AppdefEntityID rEntityId)
pEntityIds - the Appdef entity idpublic void setPEntityIds(AppdefEntityID[] pEntityIds)
pEntityIds - the Appdef entity idspublic int getCtype()
public void setCtype(int ctype)
ctype - the ctypepublic boolean equals(java.lang.Object o)
equals in class TreeNodepublic int hashCode()
hashCode in class TreeNodepublic boolean hasCtype()
public void promote()
public java.lang.String toString()
toString in class TreeNode
|
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 | ||||||||