public final class Padding extends NativeObjectContainer
| 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. |
int |
getBottom()
Returns the padding bottom in pixel.
|
protected Key |
getChildKey()
Returns the property name to use to add this element to its parent.
|
protected D |
getDefaultValues()
Returns the default provider instance.
|
int |
getLeft()
Returns the padding left in pixel.
|
protected P |
getParent()
Returns the parent element.
|
int |
getRight()
Returns the padding right in pixel.
|
int |
getTop()
Returns the padding top in pixel.
|
void |
set(int padding)
Sets the padding size to all dimensions.
|
void |
setBottom(int padding)
Sets the padding bottom in pixel.
|
protected void |
setCallbackToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for callbacks) to a model at the specific key.
|
protected void |
setEventToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for events) to a model at the specific key.
|
void |
setLeft(int padding)
Sets the padding left in pixel.
|
void |
setRight(int padding)
Sets the padding right in pixel.
|
void |
setTop(int padding)
Sets the padding top in pixel.
|
checkValue, empty, getArrayValue, 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, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typepublic final void set(int padding)
padding - padding size to apply to all dimensions.public final void setLeft(int padding)
padding - the padding left in pixel.public final int getLeft()
getLeft in interface IsDefaultPaddingpublic final void setRight(int padding)
padding - the padding right in pixel.public final int getRight()
getRight in interface IsDefaultPaddingpublic final void setTop(int padding)
padding - the padding top in pixel.public final int getTop()
getTop in interface IsDefaultPaddingpublic final void setBottom(int padding)
padding - the padding bottom in pixel.public final int getBottom()
getBottom in interface IsDefaultPaddingprotected final Key getChildKey()
null if is a root element.protected final P getParent()
null if is a root element.protected final D getDefaultValues()
protected final void setEventToModel(org.pepstock.charba.client.options.AbstractModel<?,?> 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(org.pepstock.charba.client.options.AbstractModel<?,?> 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 checkAndAddToParent()