Package org.zkoss.zul

Class Menubar

    • Constructor Detail

      • Menubar

        public Menubar()
      • Menubar

        public Menubar​(java.lang.String orient)
        Parameters:
        orient - either horizontal or vertical
    • Method Detail

      • getOrient

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

        Default: "horizontal".

      • isHorizontal

        public boolean isHorizontal()
        Returns whether it is a horizontal .
        Since:
        3.6.3
      • isVertical

        public boolean isVertical()
        Returns whether it is a vertical .
        Since:
        3.6.3
      • isScrollable

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

        Default: false.

        Since:
        3.6.3
      • setScrollable

        public void setScrollable​(boolean scrollable)
        Sets whether to enable the menubar scrolling When enable, if menubar is shorter than total width of menu, left,right arrow will appear.
        Since:
        3.6.3
      • isAutodrop

        public boolean isAutodrop()
        Returns whether to automatically drop down menus if user moves mouse over it.

        Default: false.

      • setAutodrop

        public void setAutodrop​(boolean autodrop)
        Sets whether to automatically drop down menus if user moves mouse over it. Only effect on the topmost menu.