com.vaadin.ui
Interface Layout
- All Superinterfaces:
- Component, ComponentContainer, EventListener, Paintable, Serializable, Sizeable, VariableOwner
- All Known Implementing Classes:
- AbsoluteLayout, AbstractLayout, AbstractOrderedLayout, AbstractSplitPanel, CssLayout, CustomLayout, ExpandLayout, FormLayout, GridLayout, HorizontalLayout, HorizontalSplitPanel, OrderedLayout, SplitPanel, VerticalLayout, VerticalSplitPanel
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:
- 6.8.18
- Author:
- Vaadin Ltd.
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 |
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, 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 |
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.