public class Activity extends org.jgraph.graph.DefaultGraphCell implements WorkflowElement, Linkable
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
activityVisualType |
protected String |
connectionErrorMsg
Message to display when there are connection errors.
|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| 构造器和说明 |
|---|
Activity()
Creates activity.
|
Activity(Object userObject)
Creates activity with given userObject.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
acceptsSource()
Returns
true if Activity is a valid source for transition. |
boolean |
acceptsTarget()
Returns
true if Activity is a valid target for transition. |
Object |
clone()
Create a clone of the cell.
|
protected Object |
cloneUserObject()
Create a clone of the ActivityProperties object.
|
XMLElement |
get(String what)
Gets an activity property which name is given in parameter what.
|
String |
getConnectionErrorMessage()
Returns message that represents connection error for this activity, if there is no connection errors, returns
null. |
ProcessEditor |
getImplementationEditor() |
Set |
getIncomingTransitions()
Gets all incoming transitions to this activity (instances of ...graph.Transition class).
|
Set |
getNonExceptionalOutgoingTransitions() |
Set |
getOutgoingTransitions()
Gets all outgoing transitions from this activity (instances of ...graph.Transition class).
|
AbstractEditor |
getParentEditor() |
org.jgraph.graph.DefaultPort |
getPort()
Gets the port associate with this activity.
|
XMLElement |
getPropertyObject()
Gets a property object (DTDElement).
|
String |
getTooltip()
Gets a tooltip text for activity.
|
int |
getXOff() |
int |
getYOff() |
boolean |
hasAnyPostcondition() |
boolean |
hasAnyPrecondition() |
void |
recreatePropertyObjectTransitions() |
void |
set(String what,
Object value)
Sets value of an activity property which name is given in parameter what to a value given in a parameter value.
|
void |
setXOff(int xOff) |
void |
setYOff(int yOff) |
void |
showPropertyDialog(Window parentWindow,
AbstractGraph graph)
Shows a dialog for editing activity properties.
|
void |
showWebEditor(Window parentWindow,
AbstractGraph graph)
Shows a dialog for editing activity properties.
|
String |
toString()
Gets an activity "display name" property.
|
changeAttributes, getAttributes, getChildren, setAttributes, setUserObjectadd, 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, setParentprotected int activityVisualType
protected String connectionErrorMsg
public Activity()
public Activity(Object userObject)
public ProcessEditor getImplementationEditor()
public AbstractEditor getParentEditor()
public org.jgraph.graph.DefaultPort getPort()
public String getConnectionErrorMessage()
null. public boolean acceptsSource()
true if Activity is a valid source for transition. This depends of activitie's type
property, it can accept to be a source for transition if it is a normal or starting.acceptsSource 在接口中 Linkablepublic boolean acceptsTarget()
true if Activity is a valid target for transition. This depends of activitie's type
property, it can accept to be a target for for transition if it is a normal or ending.acceptsTarget 在接口中 Linkablepublic void showWebEditor(Window parentWindow, AbstractGraph graph)
public void showPropertyDialog(Window parentWindow, AbstractGraph graph)
showPropertyDialog 在接口中 WorkflowElementpublic XMLElement getPropertyObject()
getPropertyObject 在接口中 WorkflowElementpublic XMLElement get(String what)
get 在接口中 WorkflowElementpublic void set(String what, Object value)
set 在接口中 WorkflowElementpublic String getTooltip()
getTooltip 在接口中 WorkflowElementpublic String toString()
toString 在类中 DefaultMutableTreeNodepublic Object clone()
clone 在类中 org.jgraph.graph.DefaultGraphCellprotected Object cloneUserObject()
cloneUserObject 在类中 org.jgraph.graph.DefaultGraphCellpublic boolean hasAnyPrecondition()
public boolean hasAnyPostcondition()
public Set getIncomingTransitions()
public Set getOutgoingTransitions()
public void recreatePropertyObjectTransitions()
public Set getNonExceptionalOutgoingTransitions()
public int getXOff()
public void setXOff(int xOff)
public int getYOff()
public void setYOff(int yOff)
Copyright © 2023 onecode. All rights reserved.