com.vaadin.ui
Class AbstractLayout
java.lang.Object
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponentContainer
com.vaadin.ui.AbstractLayout
- All Implemented Interfaces:
- MethodEventSource, Paintable, Sizeable, VariableOwner, Component, ComponentContainer, Layout, Layout.MarginHandler, Serializable, EventListener
- Direct Known Subclasses:
- AbsoluteLayout, AbstractOrderedLayout, CssLayout, CustomLayout, GridLayout, SplitPanel
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:
- 6.4.1
- Author:
- IT Mill Ltd.
- See Also:
- Serialized Form
Fields inherited from interface com.vaadin.terminal.Sizeable |
SIZE_UNDEFINED, UNIT_SYMBOLS, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
Methods inherited from class com.vaadin.ui.AbstractComponentContainer |
addComponent, addListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, moveComponentsFrom, removeAllComponents, removeComponent, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth |
Methods inherited from class com.vaadin.ui.AbstractComponent |
addListener, addListener, addListener, addListener, addListener, addStyleName, changeVariables, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, focus, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getLocale, getParent, getStyle, getStyleName, getTag, getWidth, getWidthUnits, getWindow, handleError, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnits |
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.ComponentContainer |
addComponent, addListener, addListener, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponent, removeListener, removeListener, replaceComponent, requestRepaintAll |
Methods inherited from interface com.vaadin.ui.Component |
addListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible |
Methods inherited from interface com.vaadin.terminal.Sizeable |
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeight, setHeightUnits, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidth, setWidthUnits |
margins
protected Layout.MarginInfo margins
AbstractLayout
public AbstractLayout()
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
paintContent
public void paintContent(PaintTarget target)
throws PaintException
- Description copied from class:
AbstractComponent
- Paints any needed component-specific things to the given UIDL stream. The
more general
AbstractComponent.paint(PaintTarget)
method handles all general
attributes common to all components, and it calls this method to paint
any component-specific attributes to the UIDL stream.
- Overrides:
paintContent
in class AbstractComponent
- Parameters:
target
- the target UIDL stream where the component should paint itself
to
- Throws:
PaintException
- if the paint operation failed.
Copyright © 2000-2010 IT Mill Ltd. All Rights Reserved.