public abstract class A_CmsWorkplaceAction extends java.lang.Object implements I_CmsWorkplaceAction
| Constructor and Description |
|---|
A_CmsWorkplaceAction() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDialogTitle()
Gets the title to use for the dialog.
|
protected java.lang.String |
getDialogTitleKey()
Returns the workplace message bundle key of the action dialog title.
|
java.lang.String |
getTitle(java.util.Locale locale)
Returns the localized action title.
|
protected abstract java.lang.String |
getTitleKey()
Returns the workplace message bundle key of the action title.
|
CmsMenuItemVisibilityMode |
getVisibility(I_CmsDialogContext context)
Gets the visibility for the current dialog context.
|
protected boolean |
hasBlockingLocks(I_CmsDialogContext context)
Returns if there are any blocking locks within the context resources.
|
boolean |
isActive(I_CmsDialogContext context)
Checks whether this action should be active in the given dialog context.
|
protected void |
openDialog(CmsBasicDialog dialog,
I_CmsDialogContext context)
Opens the given dialog in a new overlay window.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteAction, getIdgetVisibilitypublic A_CmsWorkplaceAction()
public java.lang.String getDialogTitle()
public java.lang.String getTitle(java.util.Locale locale)
I_CmsWorkplaceActiongetTitle in interface I_CmsWorkplaceActionlocale - the user's workplace localeI_CmsWorkplaceAction.getTitle(java.util.Locale)public CmsMenuItemVisibilityMode getVisibility(I_CmsDialogContext context)
I_CmsHasMenuItemVisibilitygetVisibility in interface I_CmsHasMenuItemVisibilitycontext - the dialog contextI_CmsHasMenuItemVisibility.getVisibility(org.opencms.ui.I_CmsDialogContext)public boolean isActive(I_CmsDialogContext context)
I_CmsWorkplaceActionisActive in interface I_CmsWorkplaceActioncontext - the dialog contexttrue if this action should be active in the given dialog contextI_CmsWorkplaceAction.isActive(org.opencms.ui.I_CmsDialogContext)protected java.lang.String getDialogTitleKey()
protected abstract java.lang.String getTitleKey()
protected boolean hasBlockingLocks(I_CmsDialogContext context)
Will open the blocking locks dialog if required.
context - the dialog contexttrue in case of blocking locksprotected void openDialog(CmsBasicDialog dialog, I_CmsDialogContext context)
dialog - the dialogcontext - the dialog context