public final class WizardManager extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME
public JSF bean name
|
Constructor and Description |
---|
WizardManager() |
Modifier and Type | Method and Description |
---|---|
void |
back()
Method handler called when the back button of the wizard is pressed
|
String |
cancel()
Method handler called when the cancel button of the wizard is pressed
|
protected void |
determineCurrentPage()
Sets up the current page to show in the wizard
|
String |
finish()
Method handler called when the finish button of the wizard is pressed
|
boolean |
getBackButtonDisabled()
Determines whether the back button on the wizard should be disabled
|
String |
getBackButtonLabel()
Returns the label to use for the back button
|
IWizardBean |
getBean()
Returns the current wizard bean being managed
|
String |
getCancelButtonLabel()
Returns the label to use for the cancel button
|
int |
getCurrentStep()
Returns the current step position
|
String |
getCurrentStepAsString()
Returns the current step position as a string for use in the UI
|
String |
getCurrentStepName()
Returns the name of the current step, wizards should use
the name of the step rather than the step number to discover
the position as extra steps can be added via configuration.
|
WizardsConfigElement.WizardConfig |
getCurrentWizard()
Returns the config for the current wizard
|
String |
getDescription()
Returns the resolved description to use for the wizard
|
String |
getErrorMessage()
Returns the error message to use in error conditions
|
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the wizard should be disabled
|
String |
getFinishButtonLabel()
Returns the label to use for the finish button
|
String |
getIcon()
Returns the icon to use for the current wizard
|
boolean |
getNextButtonDisabled()
Determines whether the next button on the wizard should be disabled
|
String |
getNextButtonLabel()
Returns the label to use for the next button
|
String |
getPage()
Returns the current page of the wizard (depends on the current step position)
|
WizardState |
getState()
Returns the state of the currently active wizard
|
String |
getStepDescription()
Returns the description of the current step
|
String |
getStepInstructions()
Returns the instructions for the current step
|
List<UIListItem> |
getStepItems()
Returns a list of UIListItems representing the steps of the wizard
|
String |
getStepTitle()
Returns the title of the current step
|
String |
getSubTitle()
Returns the resolved subtitle to use for the wizard
|
String |
getTitle()
Returns the resolved title to use for the wizard
|
void |
next()
Method handler called when the next button of the wizard is pressed
|
void |
restoreState(WizardState state)
Restores the wizard represented by the given WizardState object.
|
void |
setCurrentWizard(WizardsConfigElement.WizardConfig config)
Sets the current wizard
|
void |
setupParameters(ActionEvent event)
Action handler used to setup parameters for the wizard being launched
|
void |
setupParameters(Map<String,String> params)
Sets the parameters the next wizard will initialise with
|
public static final String BEAN_NAME
public void setupParameters(Map<String,String> params)
params
- The parameterspublic void setupParameters(ActionEvent event)
event
- The event containing the parameterspublic void setCurrentWizard(WizardsConfigElement.WizardConfig config)
config
- The configuration for the wizard to setpublic WizardState getState()
public void restoreState(WizardState state)
state
- The WizardState for the wizard to restorepublic WizardsConfigElement.WizardConfig getCurrentWizard()
public IWizardBean getBean()
public String getIcon()
public String getErrorMessage()
public String getTitle()
public String getSubTitle()
public String getDescription()
public int getCurrentStep()
public String getCurrentStepAsString()
public String getCurrentStepName()
public List<UIListItem> getStepItems()
public String getPage()
public String getStepTitle()
public String getStepDescription()
public String getStepInstructions()
public String getNextButtonLabel()
public boolean getNextButtonDisabled()
public String getBackButtonLabel()
public boolean getBackButtonDisabled()
public String getCancelButtonLabel()
public String getFinishButtonLabel()
public boolean getFinishButtonDisabled()
public void next()
public void back()
public String finish()
public String cancel()
protected void determineCurrentPage()
Copyright © 2005–2017 Alfresco Software. All rights reserved.