Expresso 5-6

Uses of Class
com.jcorporate.expresso.core.controller.State

Packages that use State
com.jcorporate.expresso.core.controller This package contains the object defining the "Controller" object, an important component of Expresso that should be used to encapsulate all user interaction sequences.  
com.jcorporate.expresso.services.controller.configuration   
com.jcorporate.expresso.services.controller.dbmaint This package contains the various State objects that make up the "Model" of the DBMaint controller.  
 

Uses of State in com.jcorporate.expresso.core.controller
 

Fields in com.jcorporate.expresso.core.controller declared as State
protected  State ControllerResponse.currentState
          The current state
 

Methods in com.jcorporate.expresso.core.controller that return State
 State Controller.getFinalState()
          Return the final state for this controller.
 State Controller.getState(String stateName)
          Return a specific state
 State ControllerResponse.getCurrentState()
          Return the current State object, based on the state we last transitioned into
 

Methods in com.jcorporate.expresso.core.controller with parameters of type State
protected  void Controller.addFinalState(State newFinalState)
          The constructor of the child object should call addFinalState to define the last state to be executed for this controller.
protected  void Controller.addPromptTransitions(State nextState, ControllerResponse response)
          If nextState is a prompt state (as determined by the addStatePairing method) then add a 'next' and 'previous' transitions as required.
protected  void Controller.addState(State newState)
          The constructor of the child object should call addState to define each of the states available in this method.
protected  void Controller.addStatePairing(State promptState, State handleState, String stateFormClass)
          The constructor of the child object should call this method with a pairing of State objects.
protected  boolean Controller.isHandleState(State nextState)
          Return True if the passed in state was added to this controller as a handle state.
protected  boolean Controller.isPromptState(State nextState)
          Return True if the passed in state was added to this controller as a prompt state.
protected  StateForm Controller.loadStateForm(State nextState, org.apache.struts.action.ActionForm controllerForm)
          Return the state's form with data from the controller's form.
protected  void Controller.prePerform(State nextState, ControllerRequest request, ControllerResponse response)
          Template Method, allowing a subclass to do an action after any state in this controller is performed.
protected  void Controller.postPerform(State nextState, ControllerRequest request, ControllerResponse response)
          Template Method, allowing a subclass to into actions after the invocation of any state in this controller.
protected  String Controller.nextHandleState(State nextState)
          Return the name of the handle state that is associated with the passed in prompt state.
protected  String Controller.nextPromptState(State nextState)
          Return the name of the prompt state that is 'next' to the passed in prompt state in the sequence for this controller.
protected  String Controller.previousPromptState(State nextState)
          Return the name of the prompt state that is 'previous' to the passed in prompt state in the sequence for this controller.
protected  void Controller.processRequestTransitions(State nextState, ControllerRequest request)
          

This method picks up the following routing parameters from the current request and builds transition objects from them before the state is invoked.

protected  Transition Controller.processTransitions(ControllerRequest request, ControllerResponse response, State nextState)
          This method is the traffic cop that determines which transition to execute after a state completes.
protected  void Controller.setupReturnToSender(State nextState, ControllerRequest request)
          This method is called before a state executes.
 

Uses of State in com.jcorporate.expresso.services.controller.configuration
 

Subclasses of State in com.jcorporate.expresso.services.controller.configuration
 class ConfigurationBase
          Base class state for managing the Expresso Configuration System
 class ShowComponent
          State that displays a particular component.
 class ShowContainerTree
          State that shows the container hierarchy in a tree.
 

Uses of State in com.jcorporate.expresso.services.controller.dbmaint
 

Subclasses of State in com.jcorporate.expresso.services.controller.dbmaint
 class Add
          Displays a form for a new DBObject record.
 class AddUpdate
          Processes date entered via standard form presented by Add.
 class DynamicCmd
          Base class for all command classes.
 class GetBase
          Base class for search/add & update operations that were previously carried out in DBMaint.doGet().
 class List
          list all records in a DBObject.
 class ListBase
          Base class for the DBMaint commands that display lists of records, such as Search and List.
 class Search
          allows the user to search for a record.
 class SearchList
          Processes the data passed via a standard form from SEARCH.
 class Update
          Provides a standard form for user to update all fields (except primary key).
 class UpdateBase
          Base Class for posting add, delete and updating operations.
 class UpdateDelete
          Lets user delete a record.
 class UpdateUpdate
          Lets user update a record.
 class ViewBlob
          This state allows for viewing of BLOB data types.
 


Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.