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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

GridLayout(int columns, int rows)
Constructor for a grid of given size (number of columns and rows).
GridLayout()
Constructs an empty (1x1) grid layout that is extended as needed.

Method

voidaddComponent(Component component, int column, int row)
Adds the component to the grid in cells column1,row1 (NortWest corner of the area.) End coordinates (SouthEast corner of the area) are the same as column1,row1.
voidaddComponent(Component component)
Adds the component into this container to the cursor position.
voidaddComponent(Component component, int column1, int row1, int column2, int row2)

Adds a component to the grid in the specified area.

RegistrationaddLayoutClickListener(LayoutClickListener listener)
voidaddStyleName(String style)
intgetColumns()
Get the number of columns in the grid.
ComponentgetComponent(int x, int y)
Gets the Component at given index.
intgetComponentCount()
Gets the number of components contained in the layout.
IteratorgetComponentIterator()
intgetRows()
Get the number of rows in the grid.
voidinsertRow(int row)
Inserts an empty row at the specified position in the grid.
Iteratoriterator()
Gets an Iterator for the components contained in the layout.
voidnewLine()
Forces the next component to be added at the beginning of the next line.
voidremoveAllComponents()
voidremoveComponent(int column, int row)
Removes the component specified by its cell coordinates.
voidremoveComponent(Component component)
Removes the specified component from the layout.
voidreplaceComponent(Component oldComponent, Component newComponent)
voidsetCaption(String caption)
voidsetCaptionAsHtml(boolean captionAsHtml)
Sets whether the caption is rendered as HTML.
voidsetColumnExpandRatio(int columnIndex, float ratio)
Sets the expand ratio of given column.
voidsetColumns(int columns)
Sets the number of columns in the grid.
voidsetComponentAlignment(Component childComponent, Alignment alignment)
voidsetDefaultComponentAlignment(Alignment defaultAlignment)
voidsetHeight(String height)
voidsetHeight(float height, Unit unit)
voidsetHeightUndefined()
voidsetId(String id)
voidsetMargin(boolean enabled)
voidsetMargin(MarginInfo marginInfo)
voidsetResponsive(boolean responsive)
Toggles responsiveness of this component.
voidsetRowExpandRatio(int rowIndex, float ratio)
Sets the expand ratio of given row.
voidsetRows(int rows)
Sets the number of rows in the grid.
voidsetSizeFull()
voidsetSizeUndefined()
voidsetSpacing(boolean spacing)
voidsetStyleName(String style)
voidsetVisible(boolean visible)
voidsetWidth(String width)
voidsetWidth(float width, Unit unit)
voidsetWidthUndefined()