mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Completion of dialog framework enabling all remaining pages in the web client to be converted.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6857 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -31,6 +31,7 @@ import java.util.Map;
|
||||
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.repo.transaction.RetryingTransactionHelper;
|
||||
import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback;
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
@@ -146,6 +147,8 @@ public abstract class BaseDialogBean implements IDialogBean
|
||||
|
||||
public List<DialogButtonConfig> getAdditionalButtons()
|
||||
{
|
||||
// none by default, subclasses can override if necessary
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -166,18 +169,39 @@ public abstract class BaseDialogBean implements IDialogBean
|
||||
|
||||
public String getContainerTitle()
|
||||
{
|
||||
// nothing by default, subclasses can override if necessary
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getContainerSubTitle()
|
||||
{
|
||||
// nothing by default, subclasses can override if necessary
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getContainerDescription()
|
||||
{
|
||||
// nothing by default, subclasses can override if necessary
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object getActionsContext()
|
||||
{
|
||||
// return the current node as the context for actions be default
|
||||
// dialog implementations can override this method to return the
|
||||
// appropriate object for their use case
|
||||
|
||||
if (this.navigator == null)
|
||||
{
|
||||
throw new AlfrescoRuntimeException("To use actions in the dialog the 'navigator' " +
|
||||
"property must be injected with an instance of NavigationBean!");
|
||||
}
|
||||
|
||||
return this.navigator.getCurrentNode();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param browseBean The BrowseBean to set.
|
||||
|
Reference in New Issue
Block a user