Class CmsContextMenuState.ContextMenuItemState

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • getCaption

        public java.lang.String getCaption()
        Returns the caption.

        Returns:
        the caption
      • getDescription

        public java.lang.String getDescription()
        Returns the description.

        Returns:
        the description
      • getId

        public java.lang.String getId()
        Returns the id.

        Returns:
        the id
      • getStyles

        public java.util.Set<java.lang.String> getStyles()
        Returns the styles.

        Returns:
        the styles
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • isSeparator

        public boolean isSeparator()
        Returns whether a separator should be displayed.

        Returns:
        true if a separator should be displayed
      • isEnabled

        public boolean isEnabled()
        Returns whether the item is enabled.

        Returns:
        true if the item is enabled
      • setCaption

        public void setCaption​(java.lang.String caption)
        Sets the caption.

        Parameters:
        caption - the caption
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets the description.

        Parameters:
        description - the description to set
      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets the item enabled.

        Parameters:
        enabled - true to enable the item
      • setId

        public void setId​(java.lang.String id)
        Sets the id.

        Parameters:
        id - the id to set
      • setSeparator

        public void setSeparator​(boolean separator)
        Sets whether a separator should be displayed.

        Parameters:
        separator - true if a separator should be displayed
      • setStyles

        public void setStyles​(java.util.Set<java.lang.String> styleNames)
        Sets the styles.

        Parameters:
        styleNames - the styles