com.vaadin.ui
Class AbstractLayout
java.lang.Object
com.vaadin.terminal.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponentContainer
com.vaadin.ui.AbstractLayout
- All Implemented Interfaces:
- MethodEventSource, Connector, ClientConnector, RpcTarget, Sizeable, Component, ComponentContainer, HasComponents, Layout, Layout.MarginHandler, Serializable, Iterable<Component>
- Direct Known Subclasses:
- AbsoluteLayout, AbstractOrderedLayout, CssLayout, CustomLayout, GridLayout
public abstract class AbstractLayout
- extends AbstractComponentContainer
- implements Layout, Layout.MarginHandler
An abstract class that defines default implementation for the Layout
interface.
- Since:
- 5.0
- Version:
- 7.0.0.alpha3
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
Methods inherited from class com.vaadin.ui.AbstractComponentContainer |
addComponent, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, isComponentVisible, iterator, moveComponentsFrom, removeAllComponents, removeComponent, removeListener, removeListener, setHeight, setVisible, setWidth |
Methods inherited from class com.vaadin.ui.AbstractComponent |
addListener, addListener, addListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireEvent, focus, getActionManager, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getRoot, getStyle, getStyleName, getWidth, getWidthUnits, handleError, hasListeners, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isVisible, removeListener, removeListener, removeListener, removeListener, removeListener, removeShortcutListener, removeStyleName, requestRepaint, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setErrorHandler, setHeight, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setWidth, updateState |
Methods inherited from class com.vaadin.terminal.AbstractClientConnector |
addExtension, addMethodInvocationToQueue, createState, getAllChildrenIterable, getConnectorId, getExtensions, getRpcManager, getRpcProxy, getStateType, registerRpc, registerRpc, removeExtension, requestRepaintAll, retrievePendingRpcCalls |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.Component |
addListener, addStyleName, attach, getApplication, getCaption, getDebugId, getIcon, getLocale, getParent, getRoot, getStyleName, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setDebugId, setEnabled, setIcon, setReadOnly, setStyleName, setVisible, updateState |
margins
protected Layout.MarginInfo margins
AbstractLayout
public AbstractLayout()
getState
public AbstractLayoutState getState()
- Description copied from class:
AbstractComponent
- Returns the shared state bean with information to be sent from the server
to the client.
Subclasses should override this method and set any relevant fields of the
state returned by super.getState().
- Specified by:
getState
in interface Connector
- Specified by:
getState
in interface Component
- Overrides:
getState
in class AbstractComponent
- Returns:
- updated component shared state
setMargin
public void setMargin(boolean enabled)
- Description copied from interface:
Layout
- 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.
- Specified by:
setMargin
in interface Layout
getMargin
public Layout.MarginInfo getMargin()
- Specified by:
getMargin
in interface Layout.MarginHandler
- Returns:
- MarginInfo containing the currently enabled margins.
setMargin
public void setMargin(Layout.MarginInfo marginInfo)
- Description copied from interface:
Layout.MarginHandler
- 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.
- Specified by:
setMargin
in interface Layout.MarginHandler
- Parameters:
marginInfo
- MarginInfo object containing the new margins.
setMargin
public void setMargin(boolean topEnabled,
boolean rightEnabled,
boolean bottomEnabled,
boolean leftEnabled)
- Description copied from interface:
Layout
- 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.
- Specified by:
setMargin
in interface Layout
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.