com.vaadin.ui.


Interface Layout.MarginHandler

All Superinterfaces:

Serializable

All Known Implementing Classes:

AbsoluteLayout, AbstractLayout, AbstractOrderedLayout, AbstractSplitPanel, CssLayout, CustomLayout, ExpandLayout, FormLayout, GridLayout, HorizontalLayout, HorizontalSplitPanel, OrderedLayout, SplitPanel, VerticalLayout, VerticalSplitPanel

Enclosing interface:

Layout

public static interface Layout.MarginHandler
extends Serializable

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)

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.

Parameters:
marginInfo - MarginInfo object containing the new margins.

getMargin

Layout.MarginInfo getMargin()

Returns:
MarginInfo containing the currently enabled margins.