com.vaadin.ui
Interface Layout.MarginHandler

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbsoluteLayout, AbstractLayout, AbstractOrderedLayout, CssLayout, CustomLayout, FormLayout, GridLayout, HorizontalLayout, Navigator.EmptyView, VerticalLayout
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.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.