Java com.vaadin.ui HorizontalLayout fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.ui HorizontalLayout fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.ui HorizontalLayout.

The text is from its open source code.

Subclass

com.vaadin.ui.HorizontalLayout has subclasses.
Click this link to see all its subclasses.

Constructor

HorizontalLayout()
Constructs an empty HorizontalLayout.
HorizontalLayout(Component... children)
Constructs a HorizontalLayout with the given components.

Method

voidaddComponent(Component c)
Add a component into this container.
voidaddComponent(Component c, int index)
Adds a component into indexed position in this container.
voidaddComponentAsFirst(Component c)
Adds a component into this container.
voidaddComponents(Component... components)
voidaddComponentsAndExpand(Component... components)
Adds the given components to this layout and sets them as expanded.
RegistrationaddLayoutClickListener(LayoutClickListener listener)
RegistrationaddListener(Component.Listener listener)
voidaddStyleName(String style)
ComponentgetComponent(int index)
Returns the component at the given position.
intgetComponentCount()
Gets the number of contained components.
ObjectgetData()
Gets the application specific data.
floatgetHeight()
StringgetId()
HasComponentsgetParent()
floatgetWidth()
Iteratoriterator()
Gets the component container iterator for going trough all the components in the container.
voidmarkAsDirty()
voidremoveAllComponents()
Removes all components from the container.
voidremoveComponent(Component c)
Removes the component from this container.
voidreplaceComponent(Component oldComponent, Component newComponent)
voidsetCaption(String caption)
voidsetComponentAlignment(Component childComponent, Alignment alignment)
voidsetData(Object data)
Sets the data object, that can be used for any application specific data.
voidsetDebugId(String id)
voidsetDefaultComponentAlignment(Alignment defaultAlignment)
voidsetDescription(String description)
Sets the component's description.
voidsetEnabled(boolean enabled)
voidsetExpandRatio(Component component, float ratio)

This method is used to control how excess space in layout is distributed among components.

voidsetHeight(String height)
voidsetHeight(float height, Unit unit)
voidsetHeightUndefined()
voidsetIcon(Resource icon)
Sets the component's icon.
voidsetId(String id)
voidsetMargin(boolean enabled)
voidsetPrimaryStyleName(String style)
voidsetReadOnly(boolean readOnly)
Sets the read-only status in the state of this AbstractComponent .
voidsetResponsive(boolean responsive)
Toggles responsiveness of this component.
voidsetSizeFull()
voidsetSizeUndefined()
voidsetSpacing(boolean spacing)
voidsetStyleName(String style)
voidsetVisible(boolean visible)
voidsetWidth(String width)
voidsetWidth(float width, Unit unit)
voidsetWidthUndefined()