com.ibm.dse.tools.workbench.gui
Class NodeStatus

java.lang.Object
  |
  +--com.ibm.dse.tools.workbench.gui.NodeStatus

public class NodeStatus
extends java.lang.Object
implements java.io.Serializable

This class stores information about the state of a node in a tree.

See Also:
Serialized Form

Constructor Summary
NodeStatus()
          This constructor creates a NodeStatus object.
NodeStatus(int initialCapacity)
          This constructor creates a NodeStatus object with the given initial capacity.
 
Method Summary
 void addChild(NodeStatus child)
          This method add a child node status to the node status.
 NodeStatus getChildAt(int index)
          This method returns the status of a children in the given position.
 int getChildCount()
          This method returns the number of children that this node have.
 boolean isExpanded()
          This method return true if the node was expanded.
 void setChildAt(NodeStatus child, int index)
          This method sets the children node status at the given position.
 void setExpanded(boolean expanded)
          This method sets the expanded property to true or false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeStatus

public NodeStatus()
This constructor creates a NodeStatus object.

NodeStatus

public NodeStatus(int initialCapacity)
This constructor creates a NodeStatus object with the given initial capacity.
Parameters:
initialCapacity - int
Method Detail

addChild

public void addChild(NodeStatus child)
This method add a child node status to the node status.
Parameters:
child - com.ibm.dse.tools.validation.StatusNode

getChildAt

public NodeStatus getChildAt(int index)
This method returns the status of a children in the given position.
Parameters:
index - int
Returns:
com.ibm.dse.tools.validation.StatusNode

getChildCount

public int getChildCount()
This method returns the number of children that this node have.
Returns:
int

isExpanded

public boolean isExpanded()
This method return true if the node was expanded.
Returns:
boolean

setChildAt

public void setChildAt(NodeStatus child,
                       int index)
This method sets the children node status at the given position.
Parameters:
child - com.ibm.dse.tools.validation.StatusNode
index - int

setExpanded

public void setExpanded(boolean expanded)
This method sets the expanded property to true or false.
Parameters:
expanded - boolean