com.itmill.toolkit.ui
Interface Layout.MarginHandler

All Known Implementing Classes:
AbstractLayout, AbstractOrderedLayout, CustomLayout, ExpandLayout, FormLayout, GridLayout, HorizontalLayout, OrderedLayout, SplitPanel, VerticalLayout
Enclosing interface:
Layout

public static interface Layout.MarginHandler

This type of layout can enable margins.


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 margins for the layout, not spacing between components inside the layout. Use #setSpacing(boolean) to add space between components in the layout.

Parameters:
marginInfo - MarginInfo object containing the new margins.

getMargin

Layout.MarginInfo getMargin()
Returns:
MarginInfo containing the currently enabled margins.


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.