public abstract class AbstractWizardBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected BrowseBean |
browseBean |
protected static String |
CANCEL_OUTCOME |
protected int |
currentStep |
protected static String |
DEFAULT_INSTRUCTION_ID |
protected boolean |
editMode |
protected static String |
FINISH_OUTCOME |
protected NavigationBean |
navigator |
protected static String |
SUMMARY_DESCRIPTION_ID |
protected static String |
SUMMARY_TITLE_ID |
Constructor and Description |
---|
AbstractWizardBean() |
Modifier and Type | Method and Description |
---|---|
String |
back()
Deals with the back button being pressed
|
protected String |
buildSummary(String[] labels,
String[] values)
Build summary table from the specified list of Labels and Values
|
String |
cancel()
Handles the cancelling of the wizard
|
protected abstract String |
determineOutcomeForStep(int step)
Determines the outcome string for the given step number
|
abstract String |
finish()
Handles the finish button being pressed
|
BrowseBean |
getBrowseBean() |
protected FileFolderService |
getFileFolderService() |
NavigationBean |
getNavigator() |
org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
protected org.alfresco.service.cmr.search.SearchService |
getSearchService() |
abstract String |
getStepDescription() |
abstract String |
getStepInstructions() |
abstract String |
getStepTitle() |
abstract String |
getWizardDescription() |
abstract String |
getWizardTitle() |
void |
init()
Initialises the wizard
|
boolean |
isInEditMode()
Determines whether the wizard is in edit mode
|
String |
next()
Deals with the next button being pressed
|
void |
populate()
Populates the wizard's values with the current values
of the node about to be edited
|
void |
setBrowseBean(BrowseBean browseBean) |
void |
setFileFolderService(FileFolderService fileFolderService) |
void |
setNavigator(NavigationBean navigator) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
void |
startWizard(ActionEvent event)
Action listener called when the wizard is being launched allowing
state to be setup
|
void |
startWizardForEdit(ActionEvent event)
Action listener called when the wizard is being launched for
editing an existing node.
|
protected static final String FINISH_OUTCOME
protected static final String CANCEL_OUTCOME
protected static final String DEFAULT_INSTRUCTION_ID
protected static final String SUMMARY_TITLE_ID
protected static final String SUMMARY_DESCRIPTION_ID
protected int currentStep
protected boolean editMode
protected NavigationBean navigator
protected BrowseBean browseBean
public abstract String getWizardDescription()
public abstract String getWizardTitle()
public abstract String getStepTitle()
public abstract String getStepDescription()
public abstract String getStepInstructions()
protected abstract String determineOutcomeForStep(int step)
step
- The step number to get the outcome forpublic abstract String finish()
public void startWizard(ActionEvent event)
public void startWizardForEdit(ActionEvent event)
public boolean isInEditMode()
public String next()
public String back()
public String cancel()
public void init()
public void populate()
public org.alfresco.service.cmr.repository.NodeService getNodeService()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- The nodeService to set.public void setFileFolderService(FileFolderService fileFolderService)
fileFolderService
- used to manipulate folder/folder model nodesprotected FileFolderService getFileFolderService()
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService
- the service used to find nodesprotected org.alfresco.service.cmr.search.SearchService getSearchService()
public NavigationBean getNavigator()
public void setNavigator(NavigationBean navigator)
navigator
- The NavigationBean to set.public BrowseBean getBrowseBean()
public void setBrowseBean(BrowseBean browseBean)
browseBean
- The BrowseBean to set.Copyright © 2005–2017 Alfresco Software. All rights reserved.