Package io.jmix.ui.component
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 TypeMethodDescriptiondefault voidsetOuterMargin(boolean enable) Enables or disables margins on all sides simultaneously.default voidsetOuterMargin(boolean top, boolean right, boolean bottom, boolean left) Sets margins on all sides individually.voidsetOuterMargin(MarginInfo marginInfo) Sets margins on all sides according to the passedMarginInfoobject.
-
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 marginright- enable or disable right marginbottom- enable or disable bottom marginleft- enable or disable left margin
-
setOuterMargin
Sets margins on all sides according to the passedMarginInfoobject.- Parameters:
marginInfo- theMarginInfoobject that describes the margin settings for each side of a Component.
-
getOuterMargin
MarginInfo getOuterMargin()- Returns:
- the
MarginInfoobject that describes the margin settings for each side of a Component.
-