Package io.keikai.ui
Class DropdownToolbarButton
- java.lang.Object
-
- io.keikai.ui.ToolbarButton
-
- io.keikai.ui.DropdownToolbarButton
-
- All Implemented Interfaces:
Serializable
,org.zkoss.json.JSONAware
public class DropdownToolbarButton extends ToolbarButton
A dropdown toolbar button for the Spreadsheet component that contains a list ofToolbarButton
.Most built-in buttons in
AuxAction
can be used in this dropdown button. However, some buttons, such asAuxAction.FONT_FAMILY
, cannot be used due to limitations. Specifically, the ZK Menupopup client-side widget cannot contain a Combobox widget. To work around this, you can useDropdownToolbarButton.Builder.withTemplateURI(String)
for full customization with a JavaScript solution to control the client-side behavior.Note: the tooltip of the nested
ToolbarButton
is not supported for inside the dropdown list.- Since:
- 6.1.0
- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DropdownToolbarButton.Builder
A builder to create aDropdownToolbarButton
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ToolbarButton[]
getItems()
Returns the items of the dropdown button.String
toJSONString()
-
Methods inherited from class io.keikai.ui.ToolbarButton
getIconClass, getIconURI, getKey, getLabel, getTemplateURI, getTooltip
-
-
-
-
Method Detail
-
getItems
public ToolbarButton[] getItems()
Returns the items of the dropdown button.- Returns:
-
toJSONString
public String toJSONString()
- Specified by:
toJSONString
in interfaceorg.zkoss.json.JSONAware
- Overrides:
toJSONString
in classToolbarButton
-
-