THIS
- Self-referential generic THISpublic static interface FluentLayout.FluentMarginHandler<THIS extends FluentLayout.FluentMarginHandler<THIS>>
extends com.vaadin.ui.Layout.MarginHandler
MarginHandler
complemented by fluent setters.MarginHandler
Modifier and Type | Method and Description |
---|---|
default THIS |
withMargin(boolean enabled)
Enable layout margins.
|
default THIS |
withMargin(com.vaadin.shared.ui.MarginInfo marginInfo)
Enable margins for this layout.
|
default THIS withMargin(boolean enabled)
enabled
- true if margins should be enabled on all sides, false to
disable all marginsLayout.MarginHandler.setMargin(boolean)
default THIS withMargin(com.vaadin.shared.ui.MarginInfo marginInfo)
NOTE: This will only affect the space around the
components in the layout, not space between the components in the
layout. Use SpacingHandler#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.
marginInfo
- MarginInfo object containing the new margins.Layout.MarginHandler.setMargin(com.vaadin.shared.ui.MarginInfo)
Copyright © 2017 Jean-Christophe Fortier. All rights reserved.