Interface IToolbar<I extends IAnyGroup>

All Superinterfaces:
IAnyGroup<IToolbar<I>>, IChildable<IToolbar<I>,I>, IChildrenOfPanel<IToolbar<I>>, IComponent<IToolbar<I>>, IHtmlBasedComponent<IToolbar<I>>, ITabboxComposite<IToolbar<I>>, IXulElement<IToolbar<I>>

public interface IToolbar<I extends IAnyGroup> extends IXulElement<IToolbar<I>>, IChildable<IToolbar<I>,I>, IChildrenOfPanel<IToolbar<I>>, IAnyGroup<IToolbar<I>>, ITabboxComposite<IToolbar<I>>
Immutable Toolbar component

A toolbar is used to place a series of buttons, such as toolbarbutton or button. The toolbar buttons could be used without toolbars, so a toolbar could be used without tool buttons. However, the tool buttons change their appearance if they are placed inside a toolbar.

The toolbar has two orientation: horizontal and vertical. It controls how the buttons are placed.

Support Molds

Name Snapshot
"default"
"panel"
Author:
katherine
See Also:
  • Toolbar
  • Field Details

    • 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 Details

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.wgt.Toolbar"

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

      default String getOrient()
      Returns the orient.

      Default: "horizontal".

    • withOrient

      IToolbar<I> withOrient(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 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(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 String getOverflowPopupIconSclass()
      Returns the overflow sclass name of overflow popup icon of this toolbar. Default: "z-icon-ellipsis-h".
    • withOverflowPopupIconSclass

      IToolbar<I> withOverflowPopupIconSclass(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 IAnyGroup> IToolbar<I> of(Iterable<? extends I> children)
      Returns the instance with the given any group children.
      Parameters:
      children - The children belong to any group
      See Also:
    • of

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

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