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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ToolbarButton
build()
Builds the toolbar button instance.static ToolbarButton.Builder
create(String key)
Creates the builder with the given key.ToolbarButton.Builder
withIconClass(String iconClass)
Sets the icon class to the button.ToolbarButton.Builder
withIconURI(String iconURI)
Sets the icon URI to the button.ToolbarButton.Builder
withLabel(String label)
Sets the label to the button.ToolbarButton.Builder
withTemplateURI(String templateURI)
Sets the template URI to the button.ToolbarButton.Builder
withTooltip(String tooltip)
Sets the tooltip to the button.
-
-
-
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:
-
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:
-
-