| |
|
| java.lang.Object javax.swing.tree.DefaultMutableTreeNode org.cougaar.mlm.debug.ui.UITreeNode org.cougaar.mlm.debug.ui.UIPlanNode
UIPlanNode | public class UIPlanNode extends UITreeNode implements UISubscriber(Code) | | An object passed to UITreeNode (a dynamically expandable
tree node) must extend the UITreeNode class and override these methods:
isLeaf: true if it has no children;
loadChildren: inserts children into tree;
toString: for rendering itself
|
UIPlanNode | public UIPlanNode(UIPlugin uiPlugin, String planName, MessageAddress clusterId) throws UINoPlanException(Code) | | Creates a tree node for a plan by calling the UITreeNode constructor.
Listens on the plan elements collection (plan elements are the children
nodes of the plan) to dynamically change the tree as the plan elements
change.
Parameters: uiPlugin - this user interface plug in Parameters: planName - name of plan to display Parameters: clusterId - cluster from which to obtain plan exception: UINoPlanException - thrown when the plan does not exist |
isLeaf | public boolean isLeaf()(Code) | | The plan is never a leaf.
false |
loadChildren | public void loadChildren()(Code) | | Get the plan elements (children of the plan node) for this plan.
Don't do this at node creation time, because the tree model
that is used in subscriptionChanged won't be set.
|
subscriptionChanged | public void subscriptionChanged(IncrementalSubscription container)(Code) | | UISubscriber interface.
Notified when a plan element is added or removed or changed;
update the tree.
|
toString | public String toString()(Code) | | Display the plan name in the tree.
the plan name |
|
|
|