Package io.keikai.ui

Class ToolbarButton.Builder

java.lang.Object
io.keikai.ui.ToolbarButton.Builder
Enclosing class:
ToolbarButton

public static class ToolbarButton.Builder extends Object
Toolbar button builder
  • Constructor Details

    • Builder

      protected Builder(String key)
  • Method Details

    • create

      public static ToolbarButton.Builder create(AuxAction key)
      Creates the builder with the given AuxAction.
      Parameters:
      key - the action of the AuxAction
      Returns:
      Since:
      6.1.0
    • create

      public static ToolbarButton.Builder create(String key)
      Creates the builder with the given key.
      Parameters:
      key - the button key.
      Returns:
    • withIconURI

      public ToolbarButton.Builder withIconURI(String iconURI)
      Sets the icon URI to the button.
      Parameters:
      iconURI -
      Returns:
    • withIconClass

      public ToolbarButton.Builder withIconClass(String iconClass)
      Sets the icon class to the button. Note that, if no template specified, yet iconClass and iconURI is specified at the same time, iconURI would be ignored.
      Parameters:
      iconClass -
      Returns:
      Since:
      5.2.0
    • withTooltip

      public ToolbarButton.Builder withTooltip(String tooltip)
      Sets the tooltip to the button.
      Parameters:
      tooltip -
      Returns:
    • withLabel

      public ToolbarButton.Builder withLabel(String label)
      Sets the label to the button.
      Parameters:
      label -
      Returns:
    • withTemplateURI

      public ToolbarButton.Builder withTemplateURI(String templateURI)
      Sets the template URI to the button.
      Parameters:
      templateURI -
      Returns:
    • build

      public ToolbarButton build()
      Builds the toolbar button instance.
      Returns: