Package com.vaadin.classic.v8.ui
Class VerticalLayout
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- All Implemented Interfaces:
LayoutEvents.LayoutClickNotifier,ClientConnector,Sizeable,ComponentContainer,HasComponents,HasComponents.ComponentAttachDetachNotifier,Layout.AlignmentHandler,Layout.MarginHandler,com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,java.io.Serializable,java.lang.Iterable<com.vaadin.flow.component.Component>
@Tag("div") @CssImport("./ordered-layout.css") @CssImport("./margin.css") public class VerticalLayout extends AbstractOrderedLayoutLegacy version of VerticalLayout that resembles Vaadin 7/8's VerticalLayout API as closely as possible in order to facilitate migration to newer versions of Vaadin.VerticalLayoutis a component container, which shows the subcomponents in the order of their addition (vertically). A vertical layout is by default 100% wide.- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.classic.v8.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.DetachEvent, ClientConnector.DetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.classic.v8.ui.HasComponents
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.classic.v8.server.Sizeable
Sizeable.Unit
-
-
Field Summary
-
Fields inherited from interface com.vaadin.classic.v8.server.Sizeable
SIZE_UNDEFINED
-
-
Constructor Summary
Constructors Constructor Description VerticalLayout()Constructs an empty VerticalLayout.VerticalLayout(com.vaadin.flow.component.Component... children)Constructs a VerticalLayout with the given components.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComponentsAndExpand(com.vaadin.flow.component.Component... components)Adds the given components to this layout and sets them as expanded.-
Methods inherited from class com.vaadin.classic.v8.ui.AbstractOrderedLayout
add, addComponent, addComponent, addComponentAsFirst, addComponentAtIndex, addLayoutClickListener, beforeClientResponse, doSetHeight, doSetWidth, getChildren, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, remove, removeComponent, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSlotClasses, setSpacing
-
Methods inherited from class com.vaadin.classic.v8.ui.AbstractComponentContainer
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, iterator, moveComponentsFrom, removeAll, removeAllComponents, setHeight, setWidth
-
Methods inherited from class com.vaadin.classic.v8.ui.AbstractComponent
addInternalStyles, addListener, addShortcutListener, addStyleName, addStyleNames, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getCustomStyles, getData, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getInternalStyles, getLocale, getPrimaryStyleName, getState, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, notifyParentAboutStyleChanges, onEnabledStateChanged, removeInternalStyles, removeStyleName, removeStyleNames, setCaption, setCaptionAsHtml, setComponentError, setData, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined
-
Methods inherited from class com.vaadin.classic.v8.server.AbstractClientConnector
addExtension, addLegacyAttachListener, addLegacyDetachListener, addListener, addListener, addMethodInvocationToQueue, attach, createState, detach, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getResource, getSession, handleConnectorRequest, hasListeners, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, onAttach, onDetach, registerRpc, registerRpc, removeExtension, setErrorHandler, setResource, updateDiffstate
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, scrollIntoView, set, setElement, setId
-
-
-
-
Constructor Detail
-
VerticalLayout
public VerticalLayout()
Constructs an empty VerticalLayout.
-
VerticalLayout
public VerticalLayout(com.vaadin.flow.component.Component... children)
Constructs a VerticalLayout with the given components. The components are added in the given order.- Parameters:
children- The components to add.- See Also:
AbstractComponentContainer.addComponents(Component...)
-
-
Method Detail
-
addComponentsAndExpand
public void addComponentsAndExpand(com.vaadin.flow.component.Component... components)
Adds the given components to this layout and sets them as expanded. The height of this layout is set to 100% if it is currently undefined.The components are added in the provided order to the end of this layout. Any components that are already children of this layout will be moved to new positions.
- Overrides:
addComponentsAndExpandin classAbstractOrderedLayout- Parameters:
components- the components to set, notnull
-
-