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
Represents a toolbar button
- Since:
- 5.3
-
Field Summary
Fields inherited from class org.apache.sling.commons.json.JSONObject
NULL, NUMBER_PATTERN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetDisabled
(boolean disabled) setHandler
(String handler) setTooltip
(String tooltip) void
write
(JSONWriter writer) Serialize to JSON writer.Methods inherited from class org.apache.sling.commons.json.JSONObject
accumulate, append, clear, doubleToString, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getMapType, getNames, getNames, getNumber, getString, has, increment, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optBooleanObject, optBooleanObject, optDouble, optDouble, optDoubleObject, optDoubleObject, optEnum, optEnum, optFloat, optFloat, optFloatObject, optFloatObject, optInt, optInt, optIntegerObject, optIntegerObject, optJSONArray, optJSONArray, optJSONObject, optJSONObject, optLong, optLong, optLongObject, optLongObject, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write
-
Constructor Details
-
Button
-
Button
-
-
Method Details
-
setText
-
setHandler
-
setTooltip
-
setDisabled
-
write
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.
-