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

@@ -212,6 +212,35 @@ public final class DialogManager
return title;
}
/**
* Returns the resolved subtitle to use for the dialog
*
* @return The subtitle
*/
public String getSubTitle()
{
// try and get the subtitle directly from the dialog
String subTitle = this.currentDialogState.getDialog().getContainerSubTitle();
if (subTitle == null)
{
// try and get the title via a message bundle key
subTitle = this.currentDialogState.getConfig().getSubTitleId();
if (subTitle != null)
{
subTitle = Application.getMessage(FacesContext.getCurrentInstance(), subTitle);
}
else
{
// try and get the title from the configuration
subTitle = this.currentDialogState.getConfig().getSubTitle();
}
}
return subTitle;
}
/**
* Returns the resolved description to use for the dialog
*
@@ -272,6 +301,39 @@ public final class DialogManager
return this.currentDialogState.getConfig().isOKButtonVisible();
}
/**
* Determines whether the current dialog should display the next
* and previous buttons in the header area.
*
* @return true if navigation support is enabled
*/
public boolean isNavigationVisible()
{
return (getBean() instanceof NavigationSupport);
}
/**
* Determines whether the current dialog should display the list
* of views in the header area.
*
* @return true if change view support is enabled
*/
public boolean isViewListVisible()
{
return (getBean() instanceof ChangeViewSupport);
}
/**
* Determines whether the current dialog should display the list
* of filters in the header area.
*
* @return true if filter support is enabled
*/
public boolean isFilterListVisible()
{
return (getBean() instanceof FilterViewSupport);
}
/**
* Returns a list of additional buttons to display in the dialog
*