Package io.keikai.ui
Class DropdownToolbarButton.Builder
java.lang.Object
io.keikai.ui.DropdownToolbarButton.Builder
- Enclosing class:
- DropdownToolbarButton
A builder to create a
DropdownToolbarButton.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the toolbar button instance.Creates the builder with the given AuxAction.Creates the builder with the given key.create(String key, ToolbarButton... items) Creates the builder with the given key with a list ofToolbarButton.items(ToolbarButton... items) Sets the items to the dropdown button.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
-
Builder
-
-
Method Details
-
create
Creates the builder with the given AuxAction.- Parameters:
key- the action of AuxAction.- Returns:
-
create
Creates the builder with the given key.- Parameters:
key- the button key.- Returns:
-
create
Creates the builder with the given key with a list ofToolbarButton.- Parameters:
key- the button key.items- the list ofToolbarButton.- 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:
-
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:
-
items
Sets the items to the dropdown button.- Parameters:
items-- Returns:
-
build
Builds the toolbar button instance.- Returns:
-