Package io.keikai.ui

Class ToolbarButton.Builder

  • Enclosing class:
    ToolbarButton

    public static class ToolbarButton.Builder
    extends Object
    Toolbar button builder
    • Method Detail

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