public abstract class AbstractItem extends JavaScriptObjectContainer
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractItem(AbstractItem parent,
Key childKey)
Builds the item with the parent item and child key.
Reads from parent java script object the object of this element. |
protected |
AbstractItem(GenericJavaScriptObject javaScriptObject)
Builds the item with own java script object read from CHART.JS defaults.
Used for root element of configuration. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAndAddToParent()
Called recursively when a property has been set in the item.
This is mandatory because it could happen that the parent item is not present, therefore it must be added. |
boolean |
hasProperty(Key key)
Checks if the property is present into java script object.
|
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, typeprotected AbstractItem(GenericJavaScriptObject javaScriptObject)
javaScriptObject - java script object read from CHART.JS defaults.protected AbstractItem(AbstractItem parent, Key childKey)
parent - parent item which contains the java script object of this element.childKey - the key to read of this element.protected void checkAndAddToParent()
public boolean hasProperty(Key key)
key - key to search.true if property exists otherwise false.