T
- the grid typepublic class GridSortOrder<T> extends SortOrder<Grid.Column<T,?>>
Grid
.Constructor and Description |
---|
GridSortOrder(Grid.Column<T,?> column,
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.
|
Grid.Column<T,?> |
getSorted()
Gets the column this sorting information is attached to.
|
getDirection
public GridSortOrder(Grid.Column<T,?> column, SortDirection direction)
Grid
.column
- the column to be sorteddirection
- sorting directionpublic Grid.Column<T,?> getSorted()
getSorted
in class 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 © 2018 Vaadin Ltd. All rights reserved.