|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.GroupNode
Describes a group of objects that may be a subgroup of a larger, indexable group. Maintains a range mapping into the underlying ordered collection. Each Node may be in an expanded or collapsed state. Note that it is the client's responsibility to ensure valid index ranges relative to the underlying collection.
| Constructor Summary | |
GroupNode(java.lang.String name,
int start,
int length)
Creates a GroupNode containing a set of objects in the associated indexable collection. |
|
| Method Summary | |
void |
addChild(GroupNode child)
Adds a GroupNode as a child of this GroupNode. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
GroupNode[] |
getChildren()
Returns the direct subgroups of this group. |
int |
getDepth()
Returns the zero-based depth of this GroupNode in the grouping hierarchy. |
int |
getLength()
Returns the number of contiguous objects spanned in the underlying indexable collection. |
java.lang.String |
getName()
Returns the display name of this group. |
int |
getNumChildren()
Returns the number of direct subgroups of this group. |
int |
getNumVisibleLines()
Returns the number of visible lines represented in this node, based on the current collapsed/expanded state of the hierarchy. |
GroupNode |
getParent()
Returns the parent GroupNode. |
int |
getStart()
Returns the index of the first leaf object of this node in the associated indexable collection. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isExpanded()
Returns true if this GroupNode is expanded. |
boolean |
isLeafNode()
Returns true if this is a leaf-level GroupNode. |
void |
setExpanded(boolean bExpand)
Expands or collapses this GroupNode. |
void |
toDebugString()
Prints a String representation of the GroupNode, helpful for debugging. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GroupNode(java.lang.String name,
int start,
int length)
name - The display name for the group.start - The index of the first object that belongs to this group in the associated indexable collection.length - The number of contiguous objects in the associated collection that belong to this group.| Method Detail |
public java.lang.String getName()
public int getDepth()
public boolean isExpanded()
public void setExpanded(boolean bExpand)
bExpand - true = expand, false = collapse.public int getNumChildren()
public GroupNode[] getChildren()
public boolean isLeafNode()
public GroupNode getParent()
public void addChild(GroupNode child)
child - The GroupNode to add as a child of this one.public int getNumVisibleLines()
public int getStart()
public int getLength()
public void toDebugString()
public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||