D
- defaults interface typepublic abstract class PropertyHandler<D> extends NativeObjectContainer
Modifier | Constructor and Description |
---|---|
protected |
PropertyHandler(AbstractNode parent,
D defaultValues,
NativeObject nativeObject)
Creates a native object where one or more properties must be managed, cross classes and package.
|
Modifier and Type | Method and Description |
---|---|
protected D |
getDefaultValues()
Returns the default provider instance.
|
protected AbstractNode |
getParent()
Returns the parent.
|
protected void |
setArrayValueAndAddToParent(Key key,
ArrayDoubleArrayList<?> container)
Sets a value (Array from a double array container list) in the embedded JavaScript object at specific property.
|
protected void |
setArrayValueAndAddToParent(Key key,
ArrayObjectContainerList<?> container)
Sets a value (Array from a container list) in the embedded JavaScript object at specific property.
|
protected <T extends Array> |
setArrayValueAndAddToParent(Key key,
T value)
Sets a value (Array) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
BaseNativeEvent value)
Sets a value (event) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
boolean value)
Sets a value (boolean) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
CallbackProxy.Proxy value)
Sets a value (callback proxy function) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
Canvas value)
Sets a value (canvas) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
CanvasGradientItem value)
Sets a value (gradient) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
CanvasPatternItem value)
Sets a value (pattern) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
Chart value)
Sets a value (chart) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
Date value)
Sets a value (date) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
double value)
Sets a value (double) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
Img value)
Sets a value (image) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
int value)
Sets a value (int) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
NativeArrayContainer<?> value)
Sets a value (JavaScript Object) in the embedded JavaScript object at specific property by array container.
|
protected void |
setValueAndAddToParent(Key key,
NativeCallback value)
Sets a value (callback function) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
NativeObject value)
Sets a value (JavaScript Object) in the embedded JavaScript object at specific property.
|
protected void |
setValueAndAddToParent(Key key,
NativeObjectContainer value)
Sets a value (JavaScript Object) in the embedded JavaScript object at specific property by object container.
|
protected void |
setValueAndAddToParent(Key key,
String value)
Sets a value (string) in the embedded JavaScript object at specific property.
|
protected <T extends Key> |
setValueAndAddToParent(Key key,
T value)
Sets a value (EnumValue) in the embedded JavaScript object at specific property.
|
protected void |
setValueOrArrayAndAddToParent(Key key,
Canvas... values)
Sets a value (array or canvas) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a canvas. |
protected void |
setValueOrArrayAndAddToParent(Key key,
CanvasGradientItem... values)
Sets a value (Array or gradient) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a gradient. |
protected void |
setValueOrArrayAndAddToParent(Key key,
CanvasPatternItem... values)
Sets a value (Array or pattern) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a pattern. |
protected void |
setValueOrArrayAndAddToParent(Key key,
double... values)
Sets a value (Array or double) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a double. |
protected void |
setValueOrArrayAndAddToParent(Key key,
Img... values)
Sets a value (array or image) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a image. |
protected void |
setValueOrArrayAndAddToParent(Key key,
int... values)
Sets a value (Array or integer) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a integer. |
protected void |
setValueOrArrayAndAddToParent(Key key,
IsColor... values)
Sets a value (Array or string by colors) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a string. |
protected void |
setValueOrArrayAndAddToParent(Key key,
Key... values)
Sets a value (Array or string by keys) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a string. |
protected void |
setValueOrArrayAndAddToParent(Key key,
NativeObjectContainer... values)
Sets a value (array or native object container) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a native object container. |
protected void |
setValueOrArrayAndAddToParent(Key key,
String... values)
Sets a value (Array or string) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a string. |
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
protected PropertyHandler(AbstractNode parent, D defaultValues, NativeObject nativeObject)
nativeObject
- native object where properties must be managedparent
- parent which contains this property handler.defaultValues
- default value of point style to use when the properties do not existprotected final D getDefaultValues()
protected final AbstractNode getParent()
protected final void setValueAndAddToParent(Key key, int value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueOrArrayAndAddToParent(Key key, int... values)
key
- key of the property of JavaScript object.values
- values of integers to be setprotected final void setValueAndAddToParent(Key key, double value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueOrArrayAndAddToParent(Key key, double... values)
key
- key of the property of JavaScript object.values
- values of doubles to be setprotected final void setValueAndAddToParent(Key key, boolean value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueAndAddToParent(Key key, String value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueOrArrayAndAddToParent(Key key, String... values)
key
- key of the property of JavaScript object.values
- values of strings to be setprotected final void setValueAndAddToParent(Key key, Date value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueAndAddToParent(Key key, NativeObject value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueAndAddToParent(Key key, NativeObjectContainer value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueOrArrayAndAddToParent(Key key, NativeObjectContainer... values)
key
- key of the property of JavaScript object.values
- native object containers to be setprotected final void setArrayValueAndAddToParent(Key key, ArrayObjectContainerList<?> container)
key
- key of the property of JavaScript object.container
- container of arrayprotected final void setValueAndAddToParent(Key key, NativeArrayContainer<?> value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setArrayValueAndAddToParent(Key key, ArrayDoubleArrayList<?> container)
key
- key of the property of JavaScript object.container
- container of array of doublesprotected final void setValueAndAddToParent(Key key, CallbackProxy.Proxy value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueAndAddToParent(Key key, NativeCallback value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueAndAddToParent(Key key, Canvas value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueOrArrayAndAddToParent(Key key, Canvas... values)
key
- key of the property of JavaScript object.values
- canvas to be setprotected final void setValueAndAddToParent(Key key, Img value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueOrArrayAndAddToParent(Key key, Img... values)
key
- key of the property of JavaScript object.values
- images to be setprotected final void setValueAndAddToParent(Key key, CanvasGradientItem value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueOrArrayAndAddToParent(Key key, CanvasGradientItem... values)
key
- key of the property of JavaScript object.values
- gradients to be setprotected final void setValueAndAddToParent(Key key, CanvasPatternItem value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueOrArrayAndAddToParent(Key key, CanvasPatternItem... values)
key
- key of the property of JavaScript object.values
- patterns to be setprotected final <T extends Key> void setValueAndAddToParent(Key key, T value)
T
- type of keykey
- key of the property of JavaScript object.value
- value to be setprotected final void setValueOrArrayAndAddToParent(Key key, Key... values)
key
- key of the property of JavaScript object.values
- value of keys to be setprotected final <T extends Array> void setArrayValueAndAddToParent(Key key, T value)
T
- type of arraykey
- key of the property of JavaScript object.value
- value to be setprotected final void setValueOrArrayAndAddToParent(Key key, IsColor... values)
key
- key of the property of JavaScript object.values
- values of colors to be setprotected final void setValueAndAddToParent(Key key, Chart value)
key
- key of the property of JavaScript object.value
- value to be setprotected final void setValueAndAddToParent(Key key, BaseNativeEvent value)
key
- key of the property of JavaScript object.value
- value to be set