Interface IMenubar

    • Field Detail

      • DEFAULT

        static final IMenubar DEFAULT
        Constant for default attributes of this immutable component.
    • Method Detail

      • getWidgetClass

        default java.lang.String getWidgetClass()
        Returns the client widget class.

        Default: "zul.menu.Menubar"

        Specified by:
        getWidgetClass in interface IComponent<IMenubar>
      • isAutodrop

        default boolean isAutodrop()
        Returns whether it is opened automatically when the mouse cursor is near the page edge.

        Default: false.

      • withAutodrop

        IMenubar withAutodrop​(boolean autodrop)
        Returns a copy of this immutable component with the specified autodrop.

        Sets whether it is opened automatically when the mouse cursor is near the page edge.

        Parameters:
        autodrop - Whether it is opened automatically.

        Default: false.

        Returns:
        A modified copy of the this object
      • getOrient

        default java.lang.String getOrient()
        Returns the orient.

        Default: "horizontal".

      • withOrient

        IMenubar withOrient​(java.lang.String orient)
        Returns a copy of this immutable component with the specified orient.

        Sets the orient of component

        Parameters:
        orient - Either "horizontal" or "vertical"

        Default: "horizontal".

        Returns:
        A modified copy of the this object
      • withOrient

        default IMenubar withOrient​(IMenubar.Orient orient)
        Returns a copy of this immutable component with the specified orient.

        Sets the orient of component

        Parameters:
        orient - The orient

        Default: "horizontal".

        Returns:
        A modified copy of the this object
      • isScrollable

        default boolean isScrollable()
        Returns whether the menubar scrolling is enabled.

        Default: false.

      • withScrollable

        IMenubar withScrollable​(boolean scrollable)
        Returns a copy of this immutable component with the specified scrollable.

        Sets whether the menubar scrolling is enabled.

        Parameters:
        scrollable - Whether the menubar scrolling is enabled.

        Default: false.

        Returns:
        A modified copy of the this object
      • ofId

        static IMenubar ofId​(java.lang.String id)
        Returns the instance with the given id.
        Parameters:
        id - The id to identify this component