P - parent node classD - defaults provider classpublic abstract class AbstractModel<P extends AbstractModel<?,?>,D> extends AbstractNode
| Modifier and Type | Method and Description |
|---|---|
protected D |
getDefaultValues()
Returns the default provider instance.
|
protected P |
getParent()
Returns the parent element.
|
protected Padding |
loadPadding(Key property,
IsDefaultPadding defaultPadding)
Loads the padding size or object from the abstract model, replacing the property, if is a number, with the object which is returned.
|
protected void |
setCallbackToModel(AbstractNode model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for callbacks) to a model at the specific key.
|
protected void |
setCallbackToModel(AbstractNode model,
Key key,
NativeCallback callback)
Adds a native callback function to a model at the specific key.
|
protected void |
setEventToModel(AbstractNode model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for events) to a model at the specific key.
|
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, 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, toJSON, typeprotected final P getParent()
null if is a root element.protected final D getDefaultValues()
protected final void setEventToModel(AbstractNode model, Key key, CallbackProxy.Proxy proxy)
model - element where adding the function proxykey - property name to use to add the function proxyproxy - the function proxy instance to addprotected final void setCallbackToModel(AbstractNode model, Key key, CallbackProxy.Proxy proxy)
model - element where adding the function proxykey - property name to use to add the function proxyproxy - the function proxy instance to addprotected final void setCallbackToModel(AbstractNode model, Key key, NativeCallback callback)
model - element where adding the function callbackkey - property name to use to add the function callbackcallback - the function callback instance to addprotected final Padding loadPadding(Key property, IsDefaultPadding defaultPadding)
property - property where the padding is stored inside the model.defaultPadding - default padding instance