public static class Toolbar.Button extends JSONObject implements Toolbar.Item
NULL
Constructor and Description |
---|
Button(java.lang.String text,
java.lang.String handler) |
Button(java.lang.String text,
java.lang.String handler,
boolean disabled,
java.lang.String tooltip) |
Modifier and Type | Method and 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.
|
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
public Button(java.lang.String text, java.lang.String handler)
public Button(java.lang.String text, java.lang.String handler, boolean disabled, java.lang.String tooltip)
public Toolbar.Button setText(java.lang.String text)
public Toolbar.Button setHandler(java.lang.String handler)
public Toolbar.Button setTooltip(java.lang.String tooltip)
public Toolbar.Button setDisabled(boolean disabled)
public void write(JSONWriter writer) throws JSONException
Toolbar.Item
write
in interface Toolbar.Item
writer
- the writerJSONException
- if a JSON error occurs."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"