|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wizard4j.flowchart.Flowchart
public class Flowchart
This is a container class to store (static and dynamic) information about a certain flowchart.
It contains:
The tree and expanded tree use similar elements, but for clarity they are split over 2 subpackages 'tree' and 'expandedtree'. The 'expandedtree' elements will contain extra attributes for ease of navigation and to store flowchart state.
| Constructor Summary | |
|---|---|
Flowchart(org.w3c.dom.Document flowchartDoc)
Create a flowchart starting from a flowchart DOM document. |
|
| Method Summary | |
|---|---|
void |
expand()
Creates the expanded tree. |
java.lang.String |
getBuiltInPresentation(EBuiltInFlowchartPresentationMode mode)
|
ExBranch |
getExpandedRoot()
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getPropertyMap()
|
ResultNode |
getResult()
Gets the result of the flowchart execution as a result node tree. |
boolean |
isSelectedOnly()
|
void |
setSelectedOnly(boolean selectedOnly)
Allows to toggle the selectedOnly bit before calling a presentation of the expanded tree. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Flowchart(org.w3c.dom.Document flowchartDoc)
throws ValidationException
During this step some extra validation is done (next to the schema validation):
flowchartDoc -
ValidationException| Method Detail |
|---|
public java.util.HashMap<java.lang.String,java.lang.Object> getPropertyMap()
public void expand()
This method is called when a flowchart is 'started', so for normal purposes it is not necessary to call it explicitly. Calling it explicitly is only needed in case one wants to present the expanded tree without starting a flowchart run.
public ExBranch getExpandedRoot()
public boolean isSelectedOnly()
public void setSelectedOnly(boolean selectedOnly)
selectedOnly - public ResultNode getResult()
If the flowchart execution was not yet finished, it will return the partial result of the already visited nodes.
public java.lang.String getBuiltInPresentation(EBuiltInFlowchartPresentationMode mode)
mode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||