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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

Grid(Class beanType)
Creates a new grid that uses reflection based on the provided bean type to automatically set up an initial set of columns.
Grid(DataCommunicator dataCommunicator)
Creates a new grid with the given data communicator and without support for creating columns based on property names.
Grid(PropertySet propertySet)
Creates a grid using a custom PropertySet implementation for configuring the initial columns and resolving property names for #addColumn(String) and Column#setEditorComponent(HasValue) .
Grid(String caption)
Creates a new Grid using the given caption.
Grid(DataProvider dataProvider)
Creates a new Grid using the given DataProvider .
Grid()
Creates a new grid without support for creating columns based on property names.
Grid(Class beanType, DataCommunicator dataCommunicator)
Creates a new grid that uses custom data communicator and provided bean type It uses reflection of the provided bean type to automatically set up an initial set of columns.
Grid(PropertySet propertySet, DataCommunicator dataCommunicator)
Creates a grid using a custom PropertySet implementation and custom data communicator.
Grid(String caption, DataProvider dataProvider)
Creates a new Grid using the given caption and DataProvider .
Grid(String caption, Collection items)
Creates a new Grid using the given caption and collection of items.

Method

ColumnaddColumn(String propertyName)
Adds a new column with the given property name.
ColumnaddColumn(ValueProvider valueProvider)
Adds a new text column to this Grid with a value provider.
ColumnaddColumn(String propertyName, AbstractRenderer renderer)
Adds a new column with the given property name and renderer.
ColumnaddColumn(ValueProvider valueProvider, AbstractRenderer renderer)
Adds a new column to this Grid with typed renderer and value provider.
ColumnaddColumn(ValueProvider valueProvider, ValueProvider presentationProvider)
Adds a new column to this Grid with value provider and presentation provider.
voidaddColumn(String identifier, Column column)
ColumnaddComponentColumn(ValueProvider componentProvider)
Adds a column that shows components.
RegistrationaddItemClickListener(ItemClickListener listener)
Adds an item click listener.
RegistrationaddSelectionListener(SelectionListener listener)
Adds a selection listener to the current selection model.
FooterRowappendFooterRow()
Adds a new row at the bottom of the footer section.
HeaderRowappendHeaderRow()
Adds a new row at the bottom of the header section.
ColumngetColumn(String columnId)
Gets a Column of this grid by its identifying string.
List>getColumns()
Gets an unmodifiable collection of all columns currently in this Grid .
DataProvidergetDataProvider()
FooterRowgetFooterRow(int index)
Returns the footer row at the given index.
intgetFooterRowCount()
Gets the number of rows in the footer section.
HeaderRowgetHeaderRow(int index)
Returns the header row at the given index.
intgetHeaderRowCount()
Gets the number of rows in the header section.
GridSelectionModelgetSelectionModel()
Returns the selection model for this grid.
List>getSortOrder()
Get the current sort order list.
booleanisDetailsVisible(T item)
Returns the visibility of details component for given item.
HeaderRowprependHeaderRow()
Adds a new row at the top of the header section.
voidremoveAllColumns()
Removes all columns from this Grid.
voidremoveColumn(Column column)
Removes the given column from this Grid .
voidremoveColumn(String columnId)
Removes the column with the given column id.
voidsetColumnOrder(Column... columns)
Sets a new column order for the grid.
voidsetColumnOrder(Stream> columns)
voidsetColumnOrder(String... columnIds)
Sets a new column order for the grid based on their column ids.
voidsetColumnReorderingAllowed(boolean columnReorderingAllowed)
Sets whether or not column reordering is allowed.
voidsetColumns(String... columnIds)
Sets the columns and their order based on their column ids.
voidsetDataProvider(DataProvider dataProvider)
voidsetDetailsGenerator(DetailsGenerator generator)
Sets the details component generator.
voidsetDetailsVisible(T item, boolean visible)
Sets the visibility of details component for given item.
voidsetFrozenColumnCount(int numberOfColumns)
Sets the number of frozen columns in this grid.
voidsetHeaderVisible(boolean headerVisible)
Sets the visibility of the Header in this Grid.
voidsetHeight(float height, Unit unit)

Note: This method will set the height mode to be HeightMode#CSS .

voidsetHeightByRows(double rows)
Sets the number of rows that should be visible in Grid's body.
voidsetHeightMode(HeightMode heightMode)
Defines the mode in which the Grid widget's height is calculated.
voidsetItems(Collection items)
voidsetReadOnly(boolean readOnly)
GridSelectionModelsetSelectionMode(SelectionMode selectionMode)
Sets the grid's selection mode.
voidsort(Column column, SortDirection direction)
Sort this Grid in user-specified direction by a column.
voidsort(String columnId, SortDirection direction)
Sort this Grid in a user-specified direction by a column defined by id.
voidsort(Column column)
Sort this Grid in ascending order by a specified column.
voidsort(String columnId)
Sort this Grid in ascending order by a specified column defined by id.
voidsort(boolean userOriginated)