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
AuxActioncan 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
ToolbarButtonis 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 classDropdownToolbarButton.BuilderA 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.StringtoJSONString()-
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:
toJSONStringin interfaceorg.zkoss.json.JSONAware- Overrides:
toJSONStringin classToolbarButton
-
-