Package org.opencms.ui.contextmenu
Class CmsMenuItemVisibilitySingleOnly
java.lang.Object
org.opencms.ui.contextmenu.CmsMenuItemVisibilitySingleOnly
- All Implemented Interfaces:
I_CmsHasMenuItemVisibility
Decorator for menu item visibility classes which always returns INVISIBLE if more than one resource
is passed, but otherwise delegates the decision to its wrapped instance.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance wrapping the given visibility handler. -
Method Summary
Modifier and TypeMethodDescriptiongetVisibility(CmsObject cms, List<CmsResource> resources) Gets the visibility for the current resource and CMS context.getVisibility(I_CmsDialogContext context) Gets the visibility for the current dialog context.
-
Constructor Details
-
Method Details
-
getVisibility
Description copied from interface:I_CmsHasMenuItemVisibilityGets the visibility for the current resource and CMS context.- Specified by:
getVisibilityin interfaceI_CmsHasMenuItemVisibility- Parameters:
cms- the CMS context to useresources- the list of resources to check- Returns:
- the visibility
- See Also:
-
getVisibility
Description copied from interface:I_CmsHasMenuItemVisibilityGets the visibility for the current dialog context.- Specified by:
getVisibilityin interfaceI_CmsHasMenuItemVisibility- Parameters:
context- the dialog context- Returns:
- the visibility
- See Also:
-