|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MarginStyleProperties
Margin represents space outside an element's border, and is displayed with the background color of it's parent element.
This is in contrast to padding
which represents the space between an HTML element's content and its border.
The padding space is displayed using the element's background color.
Method Summary | |
---|---|
java.lang.String |
getAllMargin()
Single margin size value used for top, bottom, left and right margin. |
java.lang.String |
getBottomMargin()
Bottom margin size value. |
java.lang.String |
getLeftMargin()
Left margin size value. |
java.lang.String |
getRightMargin()
Right margin size value. |
java.lang.String |
getTopMargin()
Top margin size value. |
void |
setAllMargin(java.lang.String allMargin)
Sets the margin size value used for top, bottom, left and right margin. |
void |
setBottomMargin(java.lang.String bottomMargin)
Sets the bottom margin size value. |
void |
setLeftMargin(java.lang.String leftMargin)
Sets the left margin size value. |
void |
setRightMargin(java.lang.String rightMargin)
Sets the right margin size value. |
void |
setTopMargin(java.lang.String topMargin)
Sets the top margin size value. |
Method Detail |
---|
java.lang.String getAllMargin()
margin
size value used for top, bottom, left and right margin. This property can be overridden by the more specific
topMargin
, bottomMargin
, leftMargin
and rightMargin
properties.
setAllMargin(String)
void setAllMargin(java.lang.String allMargin)
margin
size value used for top, bottom, left and right margin. This property can be overridden by the more specific
topMargin
, bottomMargin
, leftMargin
and rightMargin
properties.
Any size value that can be specified for the CSS margin
property can be used when setting a value.
Setting this property to null
removes any existing value.
Examples:
controls.PANEL1.allMargin = "5px"; controls.PANEL1.setAllMargin("2em");
java.lang.String getTopMargin()
margin
size value. This property overrides any value set with the allMargin
property.
setTopMargin(String)
void setTopMargin(java.lang.String topMargin)
margin
size value. This overrides any value set with the allMargin
property.
Any size value that can be specified for the CSS margin
property can be used when setting a value.
Setting this property to null
removes any existing value.
Examples:
controls.PANEL1.topMargin = "5px"; controls.PANEL1.setTopMargin("2em");
java.lang.String getRightMargin()
margin
size value. This property overrides any value set with the allMargin
property.
setRightMargin(String)
void setRightMargin(java.lang.String rightMargin)
margin
size value. This overrides any value set with the allMargin
property.
Any size value that can be specified for the CSS margin
property can be used when setting a value.
Setting this property to null
removes any existing value.
Examples:
controls.PANEL1.rightMargin = "5px"; controls.PANEL1.setRightMargin("2em");
java.lang.String getBottomMargin()
margin
size value. This property overrides any value set with the allMargin
property.
setBottomMargin(String)
void setBottomMargin(java.lang.String bottomMargin)
margin
size value. This overrides any value set with the allMargin
property.
Any size value that can be specified for the CSS margin
property can be used when setting a value.
Setting this property to null
removes any existing value.
Examples:
controls.PANEL1.bottomMargin = "5px"; controls.PANEL1.setBottomMargin("2em");
java.lang.String getLeftMargin()
margin
size value. This property overrides any value set with the allMargin
property.
setLeftMargin(String)
void setLeftMargin(java.lang.String leftMargin)
margin
size value. This overrides any value set with the allMargin
property.
Any size value that can be specified for the CSS margin
property can be used when setting a value.
Setting this property to null
removes any existing value.
Examples:
controls.PANEL1.leftMargin = "5px"; controls.PANEL1.setLeftMargin("2em");
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |