Package | Description |
---|---|
com.vaadin.flow.component.grid |
Modifier and Type | Method and Description |
---|---|
Grid.Column<T> |
Grid.addColumn(Renderer<T> renderer)
Adds a new text column to this
Grid with a renderer. |
Grid.Column<T> |
Grid.addColumn(Renderer<T> renderer,
String... sortingProperties)
Adds a new text column to this
Grid with a template renderer and
sorting properties. |
Grid.Column<T> |
Grid.addColumn(String propertyName)
Adds a new column for the given property name.
|
Grid.Column<T> |
Grid.addColumn(ValueProvider<T,?> valueProvider)
Adds a new text column to this
Grid with a value provider. |
<V extends Comparable<? super V>> |
Grid.addColumn(ValueProvider<T,V> valueProvider,
String... sortingProperties)
Adds a new text column to this
Grid with a value provider and
sorting properties. |
<V extends Component> |
Grid.addComponentColumn(ValueProvider<T,V> componentProvider)
Adds a new column that shows components.
|
protected Grid.Column<?> |
Grid.Column.getBottomLevelColumn() |
Grid.Column<T> |
Grid.getColumnByKey(String columnKey)
Gets a
Grid.Column of this grid by its key. |
Grid.Column<T> |
GridSortOrder.getSorted()
Gets the column this sorting information is attached to.
|
Grid.Column<T> |
Grid.Column.setComparator(Comparator<T> comparator)
Sets a comparator to use with in-memory sorting with this column.
|
<V extends Comparable<? super V>> |
Grid.Column.setComparator(ValueProvider<T,V> keyExtractor)
Sets a comparator to use with in-memory sorting with this column
based on the return type of the given
ValueProvider . |
Grid.Column<T> |
Grid.Column.setFlexGrow(int flexGrow)
Sets the flex grow ratio for this column.
|
Grid.Column<T> |
Grid.Column.setFooter(Component footerComponent)
Sets a footer component to the column.
|
Grid.Column<T> |
Grid.Column.setFooter(String labelText)
Sets a footer text to the column.
|
Grid.Column<T> |
Grid.Column.setHeader(Component headerComponent)
Sets a header component to the column.
|
Grid.Column<T> |
Grid.Column.setHeader(String labelText)
Sets a header text to the column.
|
Grid.Column<T> |
Grid.Column.setKey(String key)
Sets the user-defined identifier to map this column.
|
Grid.Column<T> |
Grid.Column.setSortable(boolean sortable)
Sets whether the user can sort this column or not.
|
Grid.Column<T> |
Grid.Column.setSortOrderProvider(SortOrderProvider provider)
Sets the sort orders when sorting this column.
|
Grid.Column<T> |
Grid.Column.setSortProperty(String... properties)
Sets strings describing back end properties to be used when sorting
this column.
|
Grid.Column<T> |
Grid.Column.setWidth(String width)
Sets the width of this column as a CSS-string.
|
Modifier and Type | Method and Description |
---|---|
List<Grid.Column<T>> |
Grid.getColumns()
Gets an unmodifiable list of all
Grid.Column s currently in this
Grid . |
Modifier and Type | Method and Description |
---|---|
static <T> GridSortOrderBuilder<T> |
GridSortOrder.asc(Grid.Column<T> by)
Creates a new grid sort builder with given sorting using ascending sort
direction.
|
protected GridSortOrder<T> |
GridSortOrderBuilder.createSortOrder(Grid.Column<T> by,
SortDirection direction) |
static <T> GridSortOrderBuilder<T> |
GridSortOrder.desc(Grid.Column<T> by)
Creates a new grid sort builder with given sorting using descending sort
direction.
|
HeaderRow.HeaderCell |
HeaderRow.join(Grid.Column<?>... columnsToMerge)
Joins the cells corresponding the given columns in the row.
|
void |
Grid.removeColumn(Grid.Column<T> column)
Removes a column from the Grid.
|
protected void |
Grid.setColumnKey(String key,
Grid.Column column)
Sets a user-defined identifier for given column.
|
GridSortOrderBuilder<T> |
GridSortOrderBuilder.thenAsc(Grid.Column<T> by) |
GridSortOrderBuilder<T> |
GridSortOrderBuilder.thenDesc(Grid.Column<T> by) |
Constructor and Description |
---|
GridSortOrder(Grid.Column<T> column,
SortDirection direction)
Construct sorting information for usage in a
Grid . |
Copyright © 2018. All rights reserved.