Interface IToolbar<I extends IAnyGroup>

    • Field Detail

      • DEFAULT

        static final IToolbar<IAnyGroup> DEFAULT
        Constant for default attributes of this immutable component.
      • PANEL

        static final IToolbar<IAnyGroup> PANEL
        Constant for pnael mold attributes of this immutable component.
    • Method Detail

      • getWidgetClass

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

        Default: "zul.wgt.Toolbar"

        Specified by:
        getWidgetClass in interface IComponent<I extends IAnyGroup>
      • getOrient

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

        Default: "horizontal".

      • withOrient

        IToolbar<I> withOrient​(java.lang.String orient)
        Returns a copy of this immutable component with the specified orient.

        Sets the orient.

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

        Default: "horizontal".

        Returns:
        A modified copy of the this object
      • withOrient

        default IToolbar<I> withOrient​(IToolbar.Orient orient)
        Returns a copy of this immutable component with the specified orient.

        Sets the orient.

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

        Default: "horizontal".

        Returns:
        A modified copy of the this object
      • getAlign

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

        Default: "start"

      • withAlign

        IToolbar<I> withAlign​(java.lang.String align)
        Returns a copy of this immutable component with the specified align.

        Sets the alignment of any children added to this toolbar.

        Parameters:
        align - Valid values are "start", "end" and "center"

        Default: "start".

        Returns:
        A modified copy of the this object
      • isOverflowPopup

        default 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.

      • withOverflowPopup

        IToolbar<I> withOverflowPopup​(boolean overflowPopup)
        Returns a copy of this immutable component with the specified overflowPopup.

        Sets whether toolbar has a button that shows a popup

        Parameters:
        overflowPopup - Whether toolbar has a button that shows a popup

        Default: false.

        Returns:
        A modified copy of the this object
      • getOverflowPopupIconSclass

        default java.lang.String getOverflowPopupIconSclass()
        Returns the overflow sclass name of overflow popup icon of this toolbar. Default: "z-icon-ellipsis-h".
      • withOverflowPopupIconSclass

        IToolbar<I> withOverflowPopupIconSclass​(java.lang.String overflowPopupIconSclass)
        Returns a copy of this immutable component with the specified overflowPopupIconSclass.

        Sets the overflow sclass name of overflow popup icon of this toolbar.

        Parameters:
        overflowPopupIconSclass - The overflow sclass name of overflow popup icon of this toolbar.

        Default: "z-icon-ellipsis-h".

        Returns:
        A modified copy of the this object
      • of

        static <I extends IAnyGroupIToolbar<I> of​(java.lang.Iterable<? extends I> children)
        Returns the instance with the given any group children.
        Parameters:
        children - The children belong to any group
        See Also:
        IAnyGroup
      • of

        static <I extends IAnyGroupIToolbar<I> of​(I... children)
        Returns the instance with the given any group children.
        Parameters:
        children - The children belong to any group
        See Also:
        IAnyGroup
      • ofId

        static <I extends IAnyGroupIToolbar<I> ofId​(java.lang.String id)
        Returns the instance with the given id.
        Parameters:
        id - The id to identify this component