com.ebasetech.xi.api.controls
Interface MarginStyleProperties

All Known Subinterfaces:
ButtonColumnControl, ButtonControl, ButtonControlProperties, EbaseButtonControlProperties, FieldControl, FieldHyperlinkProperties, FinishButtonControl, GridControl, GroupAndPagePanelProperties, GroupPanelControl, HorizontalLineControl, HorizontalMenuControl, HyperlinkControl, ImageControl, MenuControl, MessageStyleProperties, NextPageButtonControl, PageNavigationPanel, PagePanelControl, PanelControl, PDFPageStyleProperties, PrevPageButtonControl, RepeatingStyleProperties, RepeatingTableControl, RepeatingTableRowControl, RestoreButtonControl, SaveButtonControl, SpacerControl, TableControlStyleProperties, TabSetControl, TextControl, TitlePanelControl, VerticalMenuControl

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.

Further documentation.

Since:
V4.4

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

getAllMargin

java.lang.String getAllMargin()
Single 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.

Since:
V4.4
See Also:
setAllMargin(String)

setAllMargin

void setAllMargin(java.lang.String allMargin)
Sets the 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");
 

Since:
V4.4

getTopMargin

java.lang.String getTopMargin()
Top margin size value. This property overrides any value set with the allMargin property.

Since:
V4.4
See Also:
setTopMargin(String)

setTopMargin

void setTopMargin(java.lang.String topMargin)
Sets the top 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");
 

Since:
V4.4

getRightMargin

java.lang.String getRightMargin()
Right margin size value. This property overrides any value set with the allMargin property.

Since:
V4.4
See Also:
setRightMargin(String)

setRightMargin

void setRightMargin(java.lang.String rightMargin)
Sets the right 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");
 

Since:
V4.4

getBottomMargin

java.lang.String getBottomMargin()
Bottom margin size value. This property overrides any value set with the allMargin property.

Since:
V4.4
See Also:
setBottomMargin(String)

setBottomMargin

void setBottomMargin(java.lang.String bottomMargin)
Sets the bottom 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");
 

Since:
V4.4

getLeftMargin

java.lang.String getLeftMargin()
Left margin size value. This property overrides any value set with the allMargin property.

Since:
V4.4
See Also:
setLeftMargin(String)

setLeftMargin

void setLeftMargin(java.lang.String leftMargin)
Sets the left 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");
 

Since:
V4.4