Interface IMenubar

All Superinterfaces:
IAnyGroup<IMenubar>, IChildable<IMenubar,IChildrenOfMenupopup>, IComponent<IMenubar>, IHtmlBasedComponent<IMenubar>, IXulElement<IMenubar>

Immutable Menubar component

A container usually contains more than one menu elements.

Author:
katherine
See Also:
  • Menubar
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default 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 String getOrient()
      Returns the orient.

      Default: "horizontal".

    • withOrient

      IMenubar withOrient(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
    • of

      static IMenubar of(Iterable<? extends IChildrenOfMenupopup> children)
      Returns the instance with the given IChildrenOfMenupopup children.
      Parameters:
      children - The children of IChildrenOfMenupopup
    • of

      static IMenubar of(IChildrenOfMenupopup... children)
      Returns the instance with the given IChildrenOfMenupopup children.
      Parameters:
      children - The children of IChildrenOfMenupopup
    • ofId

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