Package io.keikai.ui

Class ToolbarButton.Builder

  • Enclosing class:
    ToolbarButton

    public static class ToolbarButton.Builder
    extends java.lang.Object
    Toolbar button builder
    • Constructor Detail

      • Builder

        protected Builder​(java.lang.String key)
    • Method Detail

      • 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​(java.lang.String key)
        Creates the builder with the given key.
        Parameters:
        key - the button key.
        Returns:
      • withIconURI

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

        public ToolbarButton.Builder withIconClass​(java.lang.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​(java.lang.String tooltip)
        Sets the tooltip to the button.
        Parameters:
        tooltip -
        Returns:
      • withLabel

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

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

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