com.vaadin.ui.
Interface Layout.SpacingHandler
All Superinterfaces:
All Known Implementing Classes:
AbstractOrderedLayout, ExpandLayout, FormLayout, GridLayout, HorizontalLayout, OrderedLayout, VerticalLayout
Enclosing interface:
- extends Serializable
public static interface Layout.SpacingHandler
This type of layout supports automatic addition of space between its components.
Method Summary | |
---|---|
boolean |
isSpacing()
|
boolean |
isSpacingEnabled()
Deprecated. Use isSpacing() instead. |
void |
setSpacing(boolean enabled)
Enable spacing between child components within this layout. |
Method Detail |
---|
setSpacing
void setSpacing(boolean enabled)
- Parameters:
enabled
- true if spacing should be turned on, false if it should be turned off
Enable spacing between child components within this layout.
NOTE: This will only affect the space between
components, not the space around all the components in the layout
(i.e. do not confuse this with the cellspacing attribute of a HTML
Table). Use Layout.setMargin(boolean)
to add space around the
layout.
See the reference manual for more information about CSS rules for defining the amount of spacing to use.
isSpacingEnabled
@Deprecated
boolean isSpacingEnabled()
- Returns:
- true if spacing between child components within this layout is enabled, false otherwise
Deprecated. Use isSpacing()
instead.
isSpacing
boolean isSpacing()
- Returns:
- true if spacing between child components within this layout is enabled, false otherwise