Package com.storedobject.chart
Class AbstractProperty
java.lang.Object
com.storedobject.chart.AbstractProperty
- All Implemented Interfaces:
ComponentProperty
Abstract base implementation of
ComponentProperty.- Author:
- Syam
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.protected abstract voidEncode the JSON for this property.protected abstract voidEncode the JSON for status for the disabled status.voidsetDisabled(boolean disabled) Set it disabled.
-
Field Details
-
disabled
protected boolean disabled
-
-
Constructor Details
-
AbstractProperty
public AbstractProperty()
-
-
Method Details
-
setDisabled
public void setDisabled(boolean disabled) Set it disabled.- Parameters:
disabled- True/false.
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Parameters:
sb- Encoded JSON string to be appended to this.
-
encodeStatus
Encode the JSON for status for the disabled status.- Parameters:
sb- Buffer to which encoding to be embedded.
-
encodeProperty
Encode the JSON for this property.- Parameters:
sb- Buffer to which encoding to be embedded.
-