T - the grid typepublic class GridSortOrder<T> extends com.vaadin.flow.data.provider.SortOrder<Grid.Column<T>>
Grid.| Constructor and Description |
|---|
GridSortOrder(Grid.Column<T> column,
com.vaadin.flow.data.provider.SortDirection direction)
Construct sorting information for usage in a
Grid. |
| Modifier and Type | Method and Description |
|---|---|
static <T> GridSortOrderBuilder<T> |
asc(Grid.Column<T> by)
Creates a new grid sort builder with given sorting using ascending sort
direction.
|
static <T> GridSortOrderBuilder<T> |
desc(Grid.Column<T> by)
Creates a new grid sort builder with given sorting using descending sort
direction.
|
boolean |
equals(Object obj) |
Grid.Column<T> |
getSorted()
Gets the column this sorting information is attached to.
|
int |
hashCode() |
public GridSortOrder(Grid.Column<T> column, com.vaadin.flow.data.provider.SortDirection direction)
Grid.column - the column to be sorteddirection - sorting directionpublic Grid.Column<T> getSorted()
getSorted in class com.vaadin.flow.data.provider.SortOrder<Grid.Column<T>>public static <T> GridSortOrderBuilder<T> asc(Grid.Column<T> by)
T - the grid typeby - the column to sort bypublic static <T> GridSortOrderBuilder<T> desc(Grid.Column<T> by)
T - the grid typeby - the column to sort byCopyright © 2022. All rights reserved.