Package io.keikai.ui

Class DropdownToolbarButton.Builder

    • Constructor Detail

      • Builder

        protected Builder​(java.lang.String key,
                          ToolbarButton... items)
      • Builder

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

      • create

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

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

        public DropdownToolbarButton.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:
      • withTooltip

        public DropdownToolbarButton.Builder withTooltip​(java.lang.String tooltip)
        Sets the tooltip to the button.
        Parameters:
        tooltip -
        Returns:
      • withLabel

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

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