Package com.storedobject.chart
Class ToolboxButton
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.VisiblePart
com.storedobject.chart.ToolboxButton
- All Implemented Interfaces:
ComponentPart,ComponentProperty,VisibleProperty
- Direct Known Subclasses:
Toolbox.DataView,Toolbox.Download,Toolbox.Restore,Toolbox.Zoom
This is the base class for creating "toolbox buttons" that can be added to
Toolbox. A standard set of
"toolbox buttons" are available as static classes within Toolbox. However, support for
"custom toolbox buttons" is not yet implemented.- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidEncode caption part here.voidEncode the JSON string with the properties of this.Get the caption for this (will be shown as a tooltip).voidsetCaption(String caption) Set the caption for this (will be shown as a tooltip).Methods inherited from class com.storedobject.chart.VisiblePart
isVisible, setVisible, validateMethods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getName, getSerial, getZ, hashCode, hasId, setSerial, setZMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.chart.ComponentPart
className, getRenderingIndex, setName, setRenderingIndexMethods inherited from interface com.storedobject.chart.VisibleProperty
hide, show
-
Constructor Details
-
ToolboxButton
public ToolboxButton()
-
-
Method Details
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classAbstractPart- Parameters:
sb- Encoded JSON string to be appended to this.
-
encodeCaptionJSON
Encode caption part here. The default implementation does what is necessary to handle the return value ofgetCaption().- Parameters:
sb- Append the encoded stuff to this.
-
getCaption
-
setCaption
Set the caption for this (will be shown as a tooltip).- Parameters:
caption- Caption.
-