public final class ScriptableContext extends NativeObjectContainer
Constructor and Description |
---|
ScriptableContext(NativeObject nativeObject)
Creates the object with native object instance to be wrapped.
|
Modifier and Type | Method and Description |
---|---|
IsChart |
getChart()
Returns the CHARBA chart instance.
|
int |
getDatasetIndex()
Returns the dataset index of the data inside the dataset.
|
int |
getIndex()
Returns the index of the data inside the dataset.
|
<T extends NativeObjectContainer> |
getOptions(NativeObjectContainerFactory<T> factory)
Returns the options, if exist.
|
boolean |
hasOptions()
Checks if there is any options.
|
boolean |
isActive()
Returns whether the associated element is hovered.
|
<T extends NativeObjectContainer> |
setOptions(T options)
Sets the additional options.
|
checkValue, empty, getArrayValue, getNativeChart, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public ScriptableContext(NativeObject nativeObject)
nativeObject
- native object instance to be wrapped.public int getIndex()
UndefinedValues.INTEGER
.public int getDatasetIndex()
UndefinedValues.INTEGER
.public IsChart getChart()
public boolean isActive()
public <T extends NativeObjectContainer> void setOptions(T options)
T
- type of native object container to storeoptions
- additional options instance.public boolean hasOptions()
true
if there is an options, otherwise false
.public <T extends NativeObjectContainer> T getOptions(NativeObjectContainerFactory<T> factory)
T
- type of native object container to returnfactory
- factory instance to create a native object container.