NeatToolsApplicationContext
The NeatToolsApplicationContext is the abstract base class for NeatTools application state classes.
It is an observer of NeatToolsModules.
WebFlowObserver
|
+-- WebFlowContext
|
+-- NeatToolsApplicationContext
Fields
- contextData - a reference to the object which keeps track of which
module, category, input, and output are currently selected.
Methods
The specific classes used for state in a NeatToolsApplication are:
WebFlowObserver
|
+-- WebFlowContext
|
+-- ApplicationContext (in package NeatTools.application)
|
+-- StateReady
StateModuleSelected
StateOutputSelected
StateReady Methods
- inputSelected() - does nothing.
- outputSelected() - changes application to StateOutputSelected.
- moduleSelected() - changes application to StateModuleSelected.
- nothingSelected() - does nothing.
StateModuleSelected Methods
- inputSelected() - changes application to StateReady.
- outputSelected() - changes application to StateOutputSelected. This change
changes the module state of all modules with available compatible
inputs to the Module state StateInputActivated.
- moduleSelected() - if module is same as one selected, changes application to StateReady.
- nothingSelected() - changes application to StateReady.
StateOutputSelected Methods
- inputSelected() - if input is in a module that is in StateInputActivated
(meaning the input is compatible with the currently selected output), changes
application to StateReady.
- outputSelected() - if output already selected, changes application to StateReady.
- moduleSelected() - if module state is StateInputActivated, change application
to StateReady.
- nothingSelected() - changes application to StateReady.