|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.wizard.selection.management.AbstractStepHandler com.sri.emo.wizard.selection.management.EditFinalState
public class EditFinalState
Combines common controls into a step editor.
Field Summary | |
---|---|
static String |
ATTRIBUTE_SESSION_KEY
Constant in the session where attributes are stored. |
static String |
PARAM_DIRECTIVE
Constant for directive field. |
static String |
PARAM_HELPTEXT
Constant for helptext field. |
static String |
PARAM_TITLE
Constant for title field. |
static String |
REQUEST_ATTRIBUTES
Constant for where attributes are stored in the Request context. |
static String |
TRANSITION_EDIT
Name of the edit transition. |
static String |
TRANSITION_SAVE
Name of the save transition. |
Fields inherited from class com.sri.emo.wizard.selection.management.AbstractStepHandler |
---|
ADD_MODE, EDIT_MODE, PARAM_RETURN_URL |
Constructor Summary | |
---|---|
EditFinalState(String wizId,
String stepId)
Default constructor. |
Method Summary | |
---|---|
protected void |
addStepTypeLabel(ExpressoResponse response,
WizStep step)
Creates output for the text label of what type of step we're dealing with. |
protected Map |
buildAndStoreStepAttributes(ExpressoRequest request)
Parses the appropriate attributes from the controller request and saves it to the session for 'save' retrieval. |
protected Transition |
buildEditTypeTransition(WizStep stepDefinition)
Constructs a transition that determines the 'step type'. |
protected Transition |
buildSaveAndReturnTransition(WizStep step)
Constructs the 'save and return' transition. |
protected boolean |
isNeedTransitionOnError(ErrorCollection ec,
ExpressoResponse response)
Returns true if we didn't try to save and we got an error collection. |
protected Block |
renderCommonControls(WizStep stepDefinition,
ExpressoRequest request,
ExpressoResponse response)
Renders the controls that are common to each of the 'last definition' steps. |
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 |
---|
public static final String PARAM_TITLE
public static final String PARAM_DIRECTIVE
public static final String PARAM_HELPTEXT
public static final String TRANSITION_SAVE
public static final String TRANSITION_EDIT
public static final String ATTRIBUTE_SESSION_KEY
public static final String REQUEST_ATTRIBUTES
Constructor Detail |
---|
public EditFinalState(String wizId, String stepId) throws DBException
wizId
- The wizard id.stepId
- The Step Id.
DBException
- upon error.Method Detail |
---|
protected Block renderCommonControls(WizStep stepDefinition, ExpressoRequest request, ExpressoResponse response) throws ControllerException, DBException
stepDefinition
- WizSteprequest
- ExpressoRequestresponse
- ExpressoResponse
ControllerException
- upon Input rendering error.
DBException
- upon DataObject.getField() error.protected boolean isNeedTransitionOnError(ErrorCollection ec, ExpressoResponse response)
ec
- ErrorCollection to examine if we need to transitionresponse
- ExpressoResponse the ExpressoResponse object.
protected Map buildAndStoreStepAttributes(ExpressoRequest request) throws ControllerException
request
- ExpressoRequest the ExpressoRequest object
ControllerException
- upon error.protected Transition buildSaveAndReturnTransition(WizStep step) throws DBException
step
- WizStep
DBException
- upon getField() error.protected Transition buildEditTypeTransition(WizStep stepDefinition) throws ControllerException, DBException
stepDefinition
- WizStep
DBException
- upon DBObject.getField() Error
ControllerException
- upon response.add() error.protected void addStepTypeLabel(ExpressoResponse response, WizStep step) throws DBException, ControllerException
response
- ExpressoResponse the response to add the output to.step
- WizStep the step we're working with.
DBException
- upon database error.
ControllerException
- upon controller error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |