Package com.day.cq.wcm.api.components
Class Toolbar.Button
- java.lang.Object
-
- org.apache.sling.commons.json.JSONObject
-
- com.day.cq.wcm.api.components.Toolbar.Button
-
- All Implemented Interfaces:
Toolbar.Item
- Enclosing class:
- Toolbar
public static class Toolbar.Button extends JSONObject implements Toolbar.Item
Represents a toolbar button- Since:
- 5.3
-
-
Field Summary
-
Fields inherited from class org.apache.sling.commons.json.JSONObject
NULL
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Toolbar.Button
setDisabled(boolean disabled)
Toolbar.Button
setHandler(java.lang.String handler)
Toolbar.Button
setText(java.lang.String text)
Toolbar.Button
setTooltip(java.lang.String tooltip)
void
write(JSONWriter writer)
Serialize to JSON writer.-
Methods inherited from class org.apache.sling.commons.json.JSONObject
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getString, has, isNull, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOpt, quote, remove, toJSONArray, toString, toString, valueToString, write
-
-
-
-
Method Detail
-
setText
public Toolbar.Button setText(java.lang.String text)
-
setHandler
public Toolbar.Button setHandler(java.lang.String handler)
-
setTooltip
public Toolbar.Button setTooltip(java.lang.String tooltip)
-
setDisabled
public Toolbar.Button setDisabled(boolean disabled)
-
write
public void write(JSONWriter writer) throws JSONException
Description copied from interface:Toolbar.Item
Serialize to JSON writer.- Specified by:
write
in interfaceToolbar.Item
- Parameters:
writer
- the writer- Throws:
JSONException
- if a JSON error occurs.
-
-