Package io.keikai.ui
Class ToolbarButton.Builder
java.lang.Object
io.keikai.ui.ToolbarButton.Builder
- Enclosing class:
- ToolbarButton
Toolbar button builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the toolbar button instance.static ToolbarButton.BuilderCreates the builder with the given AuxAction.static ToolbarButton.BuilderCreates the builder with the given key.withIconClass(String iconClass) Sets the icon class to the button.withIconURI(String iconURI) Sets the icon URI to the button.Sets the label to the button.withTemplateURI(String templateURI) Sets the template URI to the button.withTooltip(String tooltip) Sets the tooltip to the button.
-
Constructor Details
-
Builder
-
-
Method Details
-
create
Creates the builder with the given AuxAction.- Parameters:
key- the action of the AuxAction- Returns:
- Since:
- 6.1.0
-
create
Creates the builder with the given key.- Parameters:
key- the button key.- Returns:
-
withIconURI
Sets the icon URI to the button.- Parameters:
iconURI-- Returns:
-
withIconClass
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
Sets the tooltip to the button.- Parameters:
tooltip-- Returns:
-
withLabel
Sets the label to the button.- Parameters:
label-- Returns:
-
withTemplateURI
Sets the template URI to the button.- Parameters:
templateURI-- Returns:
-
build
Builds the toolbar button instance.- Returns:
-