com.sri.emo.wizard.selection.management
Class PromptPicklist

java.lang.Object
  extended by com.sri.emo.wizard.selection.management.AbstractStepHandler
      extended by com.sri.emo.wizard.selection.management.EditFinalState
          extended by com.sri.emo.wizard.selection.management.PromptPicklist
All Implemented Interfaces:
StateHandler

public class PromptPicklist
extends EditFinalState
implements StateHandler

Prompts for a picklist id to use.

Author:
Michael Rimov

Field Summary
static String STATE_DESCRIPTION
          Constant for description of this state.
static String STATE_NAME
          Constant for access to this state.
 
Fields inherited from class com.sri.emo.wizard.selection.management.EditFinalState
ATTRIBUTE_SESSION_KEY, PARAM_DIRECTIVE, PARAM_HELPTEXT, PARAM_TITLE, REQUEST_ATTRIBUTES, TRANSITION_EDIT, TRANSITION_SAVE
 
Fields inherited from class com.sri.emo.wizard.selection.management.AbstractStepHandler
ADD_MODE, EDIT_MODE, PARAM_RETURN_URL
 
Constructor Summary
PromptPicklist(String wizId, String stepId)
          Constructor that takes a wizard id and a step id and forms its internal state, allowing for easy retrieval of database objects from subclasses.
 
Method Summary
 void handleRequest(ExpressoRequest request, ExpressoResponse response)
          Called to handle the request.
 
Methods inherited from class com.sri.emo.wizard.selection.management.EditFinalState
addStepTypeLabel, buildAndStoreStepAttributes, buildEditTypeTransition, buildSaveAndReturnTransition, isNeedTransitionOnError, renderCommonControls
 
Methods inherited from class com.sri.emo.wizard.selection.management.AbstractStepHandler
buildCancelTransition, getDefinition, getStep, getStepFromParameters, getStepName, getStepTitle, getWizardTitle, isEditing, parseStepAttributes, setEditing, transitionOnError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_NAME

public static final String STATE_NAME
Constant for access to this state.

See Also:
Constant Field Values

STATE_DESCRIPTION

public static final String STATE_DESCRIPTION
Constant for description of this state.

See Also:
Constant Field Values
Constructor Detail

PromptPicklist

public PromptPicklist(String wizId,
                      String stepId)
               throws DBException
Constructor that takes a wizard id and a step id and forms its internal state, allowing for easy retrieval of database objects from subclasses.

Parameters:
wizId - The Wizard ID (usually an integer)
stepId - The Step Id. May be null if there is no step definition.
Throws:
DBException - upon error.
Method Detail

handleRequest

public void handleRequest(ExpressoRequest request,
                          ExpressoResponse response)
                   throws DBException,
                          ControllerException
Called to handle the request.

Specified by:
handleRequest in interface StateHandler
Parameters:
request - ControllerRequest The Function's ControllerRequest object.
response - ControllerResponse The Function's ControllerResponse object.
Throws:
DBException - upon underlying database exception error.
ControllerException - upon underlying ControllerException error.


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.