Class CmsContextMenuState

  • All Implemented Interfaces:
    java.io.Serializable

    public class CmsContextMenuState
    extends com.vaadin.shared.AbstractComponentState
    The context menu state.

    See Also:
    Serialized Form
    • Method Detail

      • isHideAutomatically

        public boolean isHideAutomatically()
        Returns whether the menu is set to hide automatically.

        Returns:
        true if context menu is hidden automatically
      • isOpenAutomatically

        public boolean isOpenAutomatically()
        Returns whether the menu is set to open automatically.

        Returns:
        true if open automatically is on. If open automatically is on, it means that context menu will always be opened when it's host component is right clicked. If automatic opening is turned off, context menu will only open when server side open(x, y) is called.
      • setHideAutomatically

        public void setHideAutomatically​(boolean hideAutomatically)
        Enables or disables automatic hiding of context menu.

        Parameters:
        hideAutomatically - the hide automatically flag
      • setOpenAutomatically

        public void setOpenAutomatically​(boolean openAutomatically)
        Enables or disables open automatically feature. If open automatically is on, it means that context menu will always be opened when it's host component is right clicked. If automatic opening is turned off, context menu will only open when server side open(x, y) is called.

        Parameters:
        openAutomatically - the open automatically flag