public class ToolbarButton extends Object implements org.zkoss.json.JSONAware
If the button's key is duplicated in AuxAction.getAction()
,
then the getTemplateURI()
will be ignored and using the default template instead.
Due to this limitation, you can remove the default button's key and then add
a new toolbar button with an extra key which provides a different behavior implementation
for it.
Modifier and Type | Class and Description |
---|---|
static class |
ToolbarButton.Builder
Toolbar button builder
|
Modifier and Type | Method and Description |
---|---|
String |
getIconURI()
Returns the icon uri, if any.
|
String |
getKey()
Returns the button key.
|
String |
getLabel()
Returns the button label.
|
String |
getTemplateURI()
Returns the template uri, if any.
|
String |
getTooltip()
Returns the tooltip text, if any.
|
String |
toJSONString() |
public String getKey()
public String getLabel()
public String getIconURI()
public String getTooltip()
public String getTemplateURI()
public String toJSONString()
toJSONString
in interface org.zkoss.json.JSONAware
Copyright © 2020. All rights reserved.