com.vaadin.ui
Interface Layout

All Superinterfaces:
ClientConnector, Component, ComponentContainer, Connector, HasComponents, Iterable<Component>, RpcTarget, Serializable, Sizeable
All Known Implementing Classes:
AbsoluteLayout, AbstractLayout, AbstractOrderedLayout, CssLayout, CustomLayout, FormLayout, GridLayout, HorizontalLayout, Navigator.EmptyView, VerticalLayout

public interface Layout
extends ComponentContainer, Serializable

Extension to the ComponentContainer interface which adds the layouting control to the elements in the container. This is required by the various layout components to enable them to place other components in specific locations in the UI.

Since:
3.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd.

Nested Class Summary
static interface Layout.AlignmentHandler
          AlignmentHandler is most commonly an advanced Layout that can align its components.
static interface Layout.MarginHandler
          This type of layout supports automatic addition of margins (space around its components).
static class Layout.MarginInfo
           
static interface Layout.SpacingHandler
          This type of layout supports automatic addition of space between its components.
 
Nested classes/interfaces inherited from interface com.vaadin.ui.ComponentContainer
ComponentContainer.ComponentAttachEvent, ComponentContainer.ComponentAttachListener, ComponentContainer.ComponentDetachEvent, ComponentContainer.ComponentDetachListener
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
Component.ErrorEvent, Component.ErrorListener, Component.Event, Component.Focusable, Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.Sizeable
Sizeable.Unit
 
Field Summary
 
Fields inherited from interface com.vaadin.terminal.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Method Summary
 void setMargin(boolean enabled)
          Enable layout margins.
 void setMargin(boolean top, boolean right, boolean bottom, boolean left)
          Enable specific layout margins.
 
Methods inherited from interface com.vaadin.ui.ComponentContainer
addComponent, addListener, addListener, getComponentCount, moveComponentsFrom, removeAllComponents, removeComponent, removeListener, removeListener, replaceComponent
 
Methods inherited from interface com.vaadin.ui.HasComponents
getComponentIterator, isComponentVisible
 
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, attach, getApplication, getCaption, getDebugId, getIcon, getLocale, getParent, getRoot, getState, getStyleName, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setDebugId, setEnabled, setIcon, setReadOnly, setStyleName, setVisible, updateState
 
Methods inherited from interface com.vaadin.terminal.gwt.server.ClientConnector
detach, getExtensions, getStateType, isConnectorEnabled, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setParent
 
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector
getConnectorId
 
Methods inherited from interface com.vaadin.terminal.gwt.server.RpcTarget
getRpcManager
 
Methods inherited from interface com.vaadin.terminal.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setSizeFull, setSizeUndefined, setWidth, setWidth
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

setMargin

void setMargin(boolean enabled)
Enable layout margins. Affects all four sides of the layout. This will tell the client-side implementation to leave extra space around the layout. The client-side implementation decides the actual amount, and it can vary between themes.

Parameters:
enabled -

setMargin

void setMargin(boolean top,
               boolean right,
               boolean bottom,
               boolean left)
Enable specific layout margins. This will tell the client-side implementation to leave extra space around the layout in specified edges, clockwise from top (top, right, bottom, left). The client-side implementation decides the actual amount, and it can vary between themes.

Parameters:
top -
right -
bottom -
left -


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