First cut of dialog/wizard framework needed to convert remaining pages in web client

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6847 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2007-09-21 09:51:17 +00:00
parent 40463fbf00
commit 3e5670ef4c
18 changed files with 715 additions and 117 deletions

View File

@@ -224,6 +224,35 @@ public final class WizardManager
return title;
}
/**
* Returns the resolved subtitle to use for the wizard
*
* @return The subtitle
*/
public String getSubTitle()
{
// try and get the title directly from the wizard
String subTitle = this.currentWizardState.getWizard().getContainerSubTitle();
if (subTitle == null)
{
// try and get the title via a message bundle key
subTitle = this.currentWizardState.getConfig().getSubTitleId();
if (subTitle != null)
{
subTitle = Application.getMessage(FacesContext.getCurrentInstance(), subTitle);
}
else
{
// try and get the title from the configuration
subTitle = this.currentWizardState.getConfig().getSubTitle();
}
}
return subTitle;
}
/**
* Returns the resolved description to use for the wizard
*