com.vaadin.ui.
Interface Layout.MarginHandler
All Superinterfaces:
All Known Implementing Classes:
AbsoluteLayout, AbstractLayout, AbstractOrderedLayout, AbstractSplitPanel, CssLayout, CustomLayout, ExpandLayout, FormLayout, GridLayout, HorizontalLayout, HorizontalSplitPanel, OrderedLayout, SplitPanel, VerticalLayout, VerticalSplitPanel
Enclosing interface:
- extends Serializable
public static interface Layout.MarginHandler
This type of layout supports automatic addition of margins (space around its components).
Method Summary | |
---|---|
Layout.MarginInfo |
getMargin()
|
void |
setMargin(Layout.MarginInfo marginInfo)
Enable margins for this layout. |
Method Detail |
---|
setMargin
void setMargin(Layout.MarginInfo marginInfo)
- Parameters:
marginInfo
- MarginInfo object containing the new margins.
Enable margins for this layout.
NOTE: This will only affect the space around the
components in the layout, not space between the components in the
layout. Use #setSpacing(boolean)
to add space between the
components in the layout.
See the reference manual for more information about CSS rules for defining the size of the margin.
getMargin
Layout.MarginInfo getMargin()
- Returns:
- MarginInfo containing the currently enabled margins.