WebFlowModule
The WebFlowModule is the abstract base class of any module used by a WebFlowApplication.
It maintains the list of WebFlowInputs and WebFlowOutputs, and the current WebFlowModuleContext.
Each WebFlowModule has a corresponding VisualWebFlowModule to
handle events and the visual representation of the module.
Fields
- inputs - the list of WebFlowInputs associated with this module.
- outputs - the list of WebFlowOutputs associated with this module.
- context - the current state of the module.
Methods
- public void addInput() -- adds an input to the list of WebFlowInputs. Subclasses use this
method during their construction.
- public void addOutput() -- adds an output to the list of WebFlowOutputs. Subclasses use this
method during their construction.
- public void associate( WebFlowOutput, WebFlowInput ) -- creates an association between
the output of the the current module and an input of another module.
- public void dissociate( InputStream ) -- disconnects an InputStream from an
OutputStream
- public void inputSelected() -- called when the input
portion of the visualization has been selected. This call is forwarded to the
WebFlowModuleContext.
- public void outputSelected() -- called when the output
portion of the visualization has been selected. This call is forwarded to the
WebFlowModuleContext.
- public void moduleSelected() -- called when the module body of the visualization
has been selected. This call is forwarded to the WebFlowModuleContext.
- public void nothingSelected() -- called when no portion of the module has been
selected. This call is forwarded to the WebFlowModuleContext.
- public int GetModuleState() -- used to get the module state, this call is forwarded
to the WebFlowModuleContext.
- public void changeState( WebFlowContext ) -- called to change state, sets a new context.
- public void addModule( WebFlowModule ) -- necessary for creating composite objects useful for
grouping modules to create a custom module, or to create a group to run in its own thread or
on its own processor.
- public void removeModule( WebFlowModule )
- public void getModule( int offset ) - get the module at a particular offset
in the group of modules.