public final class Padding extends AbstractModel<Layout,IsDefaultPadding> implements IsDefaultPadding
| Modifier and Type | Method and Description |
|---|---|
int |
getBottom()
Returns the padding bottom in pixel.
|
int |
getLeft()
Returns the padding left in pixel.
|
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.
|
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.
|
checkAndAddToParent, getChildKey, getDefaultValues, getParent, setCallbackToModel, setEventToModelgetArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, 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 void set(int padding)
padding - padding size to apply to all dimensions.public void setLeft(int padding)
padding - the padding left in pixel.public int getLeft()
getLeft in interface IsDefaultPaddingpublic void setRight(int padding)
padding - the padding right in pixel.public int getRight()
getRight in interface IsDefaultPaddingpublic void setTop(int padding)
padding - the padding top in pixel.public int getTop()
getTop in interface IsDefaultPaddingpublic void setBottom(int padding)
padding - the padding bottom in pixel.public int getBottom()
getBottom in interface IsDefaultPadding