TWE 2.3-2 API

org.enhydra.jawe.components.graph
Class DefaultGraphParticipant

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byorg.jgraph.graph.DefaultGraphCell
          extended byorg.enhydra.jawe.components.graph.GraphParticipantInterface
              extended byorg.enhydra.jawe.components.graph.DefaultGraphParticipant
All Implemented Interfaces:
java.lang.Cloneable, org.jgraph.graph.GraphCell, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode, WorkflowElement

public class DefaultGraphParticipant
extends GraphParticipantInterface

Used to define Participant object in process. Participant is a container for activities, subflows and other departmnet objects. Activities and subflow can be moved from one to the other Participant.

Author:
Sasa Bojanic
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
 
Fields inherited from class org.jgraph.graph.DefaultGraphCell
attributes
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
DefaultGraphParticipant(org.enhydra.shark.xpdl.elements.Participant par)
          Creates Participant with given userObject.
 
Method Summary
protected  java.lang.Object cloneUserObject()
          Create a clone of the user object.
 java.util.Set getChildParticipants()
          Returns participant's children participants (participants for which it is a container).
 org.enhydra.shark.xpdl.XMLComplexElement getPropertyObject()
          Gets a property object (XML schema Element).
 java.lang.String getTooltip()
          Gets a tooltip text for participant.
 java.lang.String getType()
           
 boolean hasAnyParticipant()
          Returns true if participant is a container for any other participant.
 int howManyChildParticipants()
          Returns the number of participant's children participants (number of participants for which it is a container).
 java.lang.String toString()
          Gets an participant name property.
 
Methods inherited from class org.enhydra.jawe.components.graph.GraphParticipantInterface
getChildActivities, hasAnyActivity, howManyChildActivities
 
Methods inherited from class org.jgraph.graph.DefaultGraphCell
changeAttributes, clone, getAttributes, getChildren, setAttributes
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultGraphParticipant

public DefaultGraphParticipant(org.enhydra.shark.xpdl.elements.Participant par)
Creates Participant with given userObject.

Method Detail

hasAnyParticipant

public boolean hasAnyParticipant()
Returns true if participant is a container for any other participant.

Overrides:
hasAnyParticipant in class GraphParticipantInterface

howManyChildParticipants

public int howManyChildParticipants()
Returns the number of participant's children participants (number of participants for which it is a container).


getChildParticipants

public java.util.Set getChildParticipants()
Returns participant's children participants (participants for which it is a container).


getPropertyObject

public org.enhydra.shark.xpdl.XMLComplexElement getPropertyObject()
Description copied from interface: WorkflowElement
Gets a property object (XML schema Element).


getTooltip

public java.lang.String getTooltip()
Gets a tooltip text for participant.


toString

public java.lang.String toString()
Gets an participant name property.


cloneUserObject

protected java.lang.Object cloneUserObject()
Create a clone of the user object.

Returns:
Object a clone of this participant property object.

getType

public java.lang.String getType()

TWE 2.3-2 API