Interface HasOuterMargin

All Known Subinterfaces:
GroupBoxLayout
All Known Implementing Classes:
GroupBoxImpl

public interface HasOuterMargin
A class that implements this interface can have indentation outside the border.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default void
    setOuterMargin(boolean enable)
    Enables or disables margins on all sides simultaneously.
    default void
    setOuterMargin(boolean top, boolean right, boolean bottom, boolean left)
    Sets margins on all sides individually.
    void
    Sets margins on all sides according to the passed MarginInfo object.
  • Method Details

    • setOuterMargin

      @StudioProperty(name="outerMargin", type=MARGIN, defaultValue="false") default void setOuterMargin(boolean enable)
      Enables or disables margins on all sides simultaneously.
      Parameters:
      enable - if true, enables margins on all sides. If false, disables margins on all sides.
    • setOuterMargin

      default void setOuterMargin(boolean top, boolean right, boolean bottom, boolean left)
      Sets margins on all sides individually.
      Parameters:
      top - enable or disable top margin
      right - enable or disable right margin
      bottom - enable or disable bottom margin
      left - enable or disable left margin
    • setOuterMargin

      void setOuterMargin(MarginInfo marginInfo)
      Sets margins on all sides according to the passed MarginInfo object.
      Parameters:
      marginInfo - the MarginInfo object that describes the margin settings for each side of a Component.
    • getOuterMargin

      MarginInfo getOuterMargin()
      Returns:
      the MarginInfo object that describes the margin settings for each side of a Component.