|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.presentation.views.jsp.taglibs.objects.WizardDefinition
public class WizardDefinition
Helper class that defines a wizard to be rendered on an HTML page
Field Summary | |
---|---|
static String |
HTML_ACTION_PARAMETER
The wizard's form navigation action parameter hidden field |
static String |
HTML_EXECUTION_STATE_PARAMETER
A parameter to control if the wizard step has executed |
static String |
HTML_STEP_PARAMETER
The wizard's form active step parameter hidden field |
static String |
HTML_TO_STEP_PARAMETER
The wizard's form navigation go to step parameter hidden field |
static String |
LEFT_INDEX_LAYOUT
The index layout rendered in the left of the wizard container |
static String |
TOP_INDEX_LAYOUT
The index layout rendered in the top of the wizard container |
static int |
TOP_INDEX_MAX_CHARS
Max chars that the top index may contain. |
static int |
TOP_INDEX_SINGLE_MAX_CHARS
Max chars that the top index may contain in a single title. |
Constructor Summary | |
---|---|
WizardDefinition(String name,
List<WizardStepItem> items)
Default constructor |
|
WizardDefinition(String name,
List<WizardStepItem> items,
int activeStep)
Default constructor |
Method Summary | |
---|---|
int |
getActiveStep()
|
Boolean |
getCanFinish()
|
String |
getDescription()
|
String |
getFormLayout()
Inspector for the 'formLayout' attribute. |
Boolean |
getHasIndexPage()
|
Integer |
getHeight()
Inspector for the 'height' attribute. |
String |
getIndexLayout()
|
List<WizardStepItem> |
getItems()
|
String |
getName()
|
Boolean |
getReadonly()
Inspector for the 'readonly' attribute. |
Boolean |
getShowIndex()
|
String |
getSubmitTitle()
Inspector for the 'submitTitle' attribute. |
String |
getTitle()
|
String |
getTitlePrefix()
Inspector for the 'titlePrefix' attribute. |
Boolean |
getTopNavigation()
Inspector for the 'topNavigation' attribute. |
static int |
getWizardActiveStepNumber(pt.digitalis.dif.controller.interfaces.IDIFRequest request,
String wizardName,
boolean hasIndex,
boolean canNavigate,
WizardDefinition wizardDef)
|
Boolean |
getWrapWithForm()
Inspector for the 'wrapWithForm' attribute. |
boolean |
isNoRequiredIndicator()
Inspector for the 'noRequiredIndicator' attribute. |
boolean |
isShowTitlePrefix()
Inspector for the 'showTitlePrefix' attribute. |
void |
setActiveStep(int activeStep)
|
void |
setCanFinish(Boolean canFinish)
|
void |
setDescription(String description)
|
void |
setFormLayout(String formLayout)
Modifier for the 'formLayout' attribute. |
void |
setHasIndexPage(Boolean hasIndexPage)
|
void |
setHeight(Integer height)
Modifier for the 'height' attribute. |
void |
setIndexLayout(String indexLayout)
|
void |
setItems(List<WizardStepItem> items)
|
void |
setName(String name)
|
void |
setNoRequiredIndicator(boolean noRequiredIndicator)
Modifier for the 'noRequiredIndicator' attribute. |
void |
setReadonly(Boolean readonly)
Modifier for the 'readonly' attribute. |
void |
setShowIndex(Boolean showIndex)
|
void |
setShowTitlePrefix(boolean showTitlePrefix)
Modifier for the 'showTitlePrefix' attribute. |
void |
setSubmitTitle(String submitTitle)
Modifier for the 'submitTitle' attribute. |
void |
setTitle(String title)
|
void |
setTitlePrefix(String titlePrefix)
Modifier for the 'titlePrefix' attribute. |
void |
setTopNavigation(Boolean topNavigation)
Modifier for the 'topNavigation' attribute. |
void |
setWrapWithForm(Boolean wrapWithForm)
Modifier for the 'wrapWithForm' attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String HTML_ACTION_PARAMETER
public static final String HTML_EXECUTION_STATE_PARAMETER
public static final String HTML_STEP_PARAMETER
public static final String HTML_TO_STEP_PARAMETER
public static final String LEFT_INDEX_LAYOUT
public static final String TOP_INDEX_LAYOUT
public static final int TOP_INDEX_MAX_CHARS
public static final int TOP_INDEX_SINGLE_MAX_CHARS
Constructor Detail |
---|
public WizardDefinition(String name, List<WizardStepItem> items)
name
- items
- public WizardDefinition(String name, List<WizardStepItem> items, int activeStep)
name
- items
- activeStep
- Method Detail |
---|
public static int getWizardActiveStepNumber(pt.digitalis.dif.controller.interfaces.IDIFRequest request, String wizardName, boolean hasIndex, boolean canNavigate, WizardDefinition wizardDef)
request
- the current stage dif requestwizardName
- the wizard/form namehasIndex
- if the wizard has an index pagecanNavigate
- if the wizard can navigate from the present stepwizardDef
- a wizard definition object instance if available
public int getActiveStep()
public Boolean getCanFinish()
public String getDescription()
public String getFormLayout()
public Boolean getHasIndexPage()
public Integer getHeight()
public String getIndexLayout()
public List<WizardStepItem> getItems()
public String getName()
public Boolean getReadonly()
public Boolean getShowIndex()
public String getSubmitTitle()
public String getTitle()
public String getTitlePrefix()
public Boolean getTopNavigation()
public Boolean getWrapWithForm()
public boolean isNoRequiredIndicator()
public boolean isShowTitlePrefix()
public void setActiveStep(int activeStep)
activeStep
- the activeStep to setpublic void setCanFinish(Boolean canFinish)
canFinish
- the canFinish to setpublic void setDescription(String description)
description
- the description to setpublic void setFormLayout(String formLayout)
formLayout
- the new formLayout value to setpublic void setHasIndexPage(Boolean hasIndexPage)
hasIndexPage
- the hasIndexPage to setpublic void setHeight(Integer height)
height
- the new height value to setpublic void setIndexLayout(String indexLayout)
indexLayout
- the indexLayout to setpublic void setItems(List<WizardStepItem> items)
items
- the items to setpublic void setName(String name)
name
- the name to setpublic void setNoRequiredIndicator(boolean noRequiredIndicator)
noRequiredIndicator
- the new noRequiredIndicator value to setpublic void setReadonly(Boolean readonly)
readonly
- the new readonly value to setpublic void setShowIndex(Boolean showIndex)
showIndex
- the showIndex to setpublic void setShowTitlePrefix(boolean showTitlePrefix)
showTitlePrefix
- the new showTitlePrefix value to setpublic void setSubmitTitle(String submitTitle)
submitTitle
- the new submitTitle value to setpublic void setTitle(String title)
title
- the title to setpublic void setTitlePrefix(String titlePrefix)
titlePrefix
- the new titlePrefix value to setpublic void setTopNavigation(Boolean topNavigation)
topNavigation
- the new topNavigation value to setpublic void setWrapWithForm(Boolean wrapWithForm)
wrapWithForm
- the new wrapWithForm value to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |