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 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
setOuterMargin
(MarginInfo marginInfo) Sets margins on all sides according to the passedMarginInfo
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 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 passedMarginInfo
object.- Parameters:
marginInfo
- theMarginInfo
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.
-