|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.explorer.menu.A_CmsMenuItemRule
org.opencms.workplace.explorer.menu.CmsMirPrOnlineInvisible
public class CmsMirPrOnlineInvisible
Defines a menu item rule that sets the visibility to invisible if the current project is the Online project.
Constructor Summary | |
---|---|
CmsMirPrOnlineInvisible()
|
Method Summary | |
---|---|
CmsMenuItemVisibilityMode |
getVisibility(CmsObject cms,
CmsResourceUtil[] resourceUtil)
Returns the visibility for the menu item. |
boolean |
matches(CmsObject cms,
CmsResourceUtil[] resourceUtil)
Returns if the rule for the menu item should be applied or not. |
Methods inherited from class org.opencms.workplace.explorer.menu.A_CmsMenuItemRule |
---|
getVisibility |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsMirPrOnlineInvisible()
Method Detail |
---|
public CmsMenuItemVisibilityMode getVisibility(CmsObject cms, CmsResourceUtil[] resourceUtil)
I_CmsMenuItemRule
The possible visibilities are:
CmsMenuItemVisibilityMode.VISIBILITY_ACTIVE
menu item is activeCmsMenuItemVisibilityMode.VISIBILITY_INACTIVE
menu item is inactive (greyed out)CmsMenuItemVisibilityMode.VISIBILITY_INVISIBLE
menu item is invisible
getVisibility
in interface I_CmsMenuItemRule
getVisibility
in class A_CmsMenuItemRule
cms
- the current OpenCms user contextresourceUtil
- the initialized resource utilities for which the menu item visibility is checked
I_CmsMenuItemRule.getVisibility(org.opencms.file.CmsObject, CmsResourceUtil[])
public boolean matches(CmsObject cms, CmsResourceUtil[] resourceUtil)
I_CmsMenuItemRule
cms
- the current OpenCms user contextresourceUtil
- the initialized resource utilities for which the menu item rule is checked
I_CmsMenuItemRule.matches(org.opencms.file.CmsObject, CmsResourceUtil[])
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |