public final class CmsMenuItemVisibilityMode extends A_CmsModeIntEnumeration
限定符和类型 | 字段和说明 |
---|---|
static CmsMenuItemVisibilityMode |
VISIBILITY_ACTIVE
Menu item visibility: active.
|
static CmsMenuItemVisibilityMode |
VISIBILITY_INACTIVE
Menu item visibility: inactive.
|
static CmsMenuItemVisibilityMode |
VISIBILITY_INVISIBLE
Menu item visibility: invisible.
|
限定符和类型 | 方法和说明 |
---|---|
CmsMenuItemVisibilityMode |
addMessageKey(java.lang.String messageKey)
Adds the name of the message key for the visibility mode.
|
protected java.lang.Object |
clone() |
java.lang.String |
getMessageKey()
Returns the name of the message key for the visibility mode.
|
boolean |
isActive()
Returns if the mode is set to
VISIBILITY_ACTIVE . |
boolean |
isInActive()
Returns if the mode is set to
VISIBILITY_INACTIVE . |
boolean |
isInVisible()
Returns if the mode is set to
VISIBILITY_INVISIBLE . |
static CmsMenuItemVisibilityMode |
valueOf(int type)
Returns the menu item visibility mode for the given mode value.
|
equals, getMode, hashCode, toString
public static final CmsMenuItemVisibilityMode VISIBILITY_ACTIVE
public static final CmsMenuItemVisibilityMode VISIBILITY_INACTIVE
public static final CmsMenuItemVisibilityMode VISIBILITY_INVISIBLE
public static CmsMenuItemVisibilityMode valueOf(int type)
This is used only for serialization and should not be accessed for other purposes.
type
- the mode value to get the item visibility mode forpublic CmsMenuItemVisibilityMode addMessageKey(java.lang.String messageKey)
messageKey
- the name of the message key for the visibility modepublic java.lang.String getMessageKey()
Is usually used as description for the inactive visibility modes.
public boolean isActive()
VISIBILITY_ACTIVE
.VISIBILITY_ACTIVE
, otherwise falsepublic boolean isInActive()
VISIBILITY_INACTIVE
.VISIBILITY_INACTIVE
, otherwise falsepublic boolean isInVisible()
VISIBILITY_INVISIBLE
.VISIBILITY_INVISIBLE
, otherwise falseprotected java.lang.Object clone()
clone
在类中 java.lang.Object
Object.clone()