Package org.zkoss.zul

Class Toolbar

    • Constructor Detail

      • Toolbar

        public Toolbar()
      • Toolbar

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

      • getAlign

        public java.lang.String getAlign()
        Returns the alignment of any children added to this toolbar. Valid values are "start", "end" and "center".

        Default: "start"

        Since:
        3.5.0
      • setAlign

        public void setAlign​(java.lang.String align)
        Sets the alignment of any children added to this toolbar. Valid values are "start", "end" and "center".

        Default: "start", if null, "start" is assumed.

        Since:
        3.5.0
      • getOrient

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

        Default: "horizontal".

      • setOrient

        public void setOrient​(java.lang.String orient)
                       throws WrongValueException
        Sets the orient.
        Parameters:
        orient - either "horizontal" or "vertical".
        Throws:
        WrongValueException
      • isOverflowPopup

        public boolean isOverflowPopup()
        Return whether toolbar has a button that shows a popup which contains those content weren't able to fit in the toolbar. If overflowPopup is false, toolbar will display multiple rows when content is wider than toolbar. Default: false.
        Returns:
        whether toolbar has a button that shows a popup
        Since:
        8.6.0
      • setOverflowPopup

        public void setOverflowPopup​(boolean overflowPopup)
        Set whether toolbar has a button that shows a popup which contains those content weren't able to fit in the toolbar. If overflowPopup is false, toolbar will display multiple rows when content is wider than toolbar.
        Parameters:
        overflowPopup - whether toolbar has a button that shows a popup
        Since:
        8.6.0
      • getOverflowPopupIconSclass

        public java.lang.String getOverflowPopupIconSclass()
        Returns the overflow sclass name of overflow popup icon of this toolbar. Default: z-icon-ellipsis-h.
        Returns:
        the overflow popup icon sclass name of this toolbar.
        Since:
        9.6.0
      • setOverflowPopupIconSclass

        public void setOverflowPopupIconSclass​(java.lang.String overflowPopupIconSclass)
        When isOverflowPopup() is true, toolbar has a button that shows a popup users can customize the overflow popup icon. Default: z-icon-ellipsis-h.
        Parameters:
        overflowPopupIconSclass - refer to FontAwesome Cheatsheet.
        Since:
        9.6.0