Interface MarginStyleProperties

All Known Subinterfaces:
ArticleControl, AsideControl, AudioControl, BasicBlockControl, BootstrapColumnControl, BootstrapContainerControl, BootstrapRowControl, ButtonColumnControl, ButtonControl, ButtonControlProperties, CanvasControl, EbaseButtonControlProperties, FieldControl, FieldHyperlinkProperties, FileUploadControl, FileUploadTextControl, FinishButtonControl, FooterControl, GridControl, GroupAndPagePanelProperties, GroupPanelControl, HeaderControl, HeadingControl, HorizontalLineControl, HorizontalMenuControl, HyperlinkControl, IFrameControl, ImageControl, InitiateUploadControl, ListControl, ListHyperlinkControl, ListItemControl, ListPanelControl, MainControl, MenuControl, MessageStyleProperties, MultimediaControlProperties, NavControl, NextPageButtonControl, PageNavigationPanel, PagePanelControl, PanelControl, PDFPageStyleProperties, PrevPageButtonControl, RepeatingStyleProperties, RepeatingTableControl, RepeatingTableListControl, RepeatingTableListRowControl, RepeatingTableRowControl, RestoreButtonControl, SaveButtonControl, SectionControl, SpacerControl, TableControlStyleProperties, TabSetControl, TextControl, TitlePanelControl, VerticalMenuControl, VideoControl

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 Details

    • 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