Package com.vaadin.data.provider
Class GridSortOrder<T>
- java.lang.Object
-
- com.vaadin.data.provider.SortOrder<Grid.Column<T,?>>
-
- com.vaadin.data.provider.GridSortOrder<T>
-
- Type Parameters:
T- the grid type
- All Implemented Interfaces:
Serializable
public class GridSortOrder<T> extends SortOrder<Grid.Column<T,?>>
Sorting information forGrid.- Since:
- 8.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridSortOrder(Grid.Column<T,?> column, SortDirection direction)Construct sorting information for usage in aGrid.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.vaadin.data.provider.SortOrder
getDirection
-
-
-
-
Constructor Detail
-
GridSortOrder
public GridSortOrder(Grid.Column<T,?> column, SortDirection direction)
Construct sorting information for usage in aGrid.- Parameters:
column- the column to be sorteddirection- sorting direction
-
-
Method Detail
-
getSorted
public Grid.Column<T,?> getSorted()
Gets the column this sorting information is attached to.- Overrides:
getSortedin classSortOrder<Grid.Column<T,?>>- Returns:
- the column being sorted
-
asc
public static <T> GridSortOrderBuilder<T> asc(Grid.Column<T,?> by)
Creates a new grid sort builder with given sorting using ascending sort direction.- Type Parameters:
T- the grid type- Parameters:
by- the column to sort by- Returns:
- the grid sort builder
-
desc
public static <T> GridSortOrderBuilder<T> desc(Grid.Column<T,?> by)
Creates a new grid sort builder with given sorting using descending sort direction.- Type Parameters:
T- the grid type- Parameters:
by- the column to sort by- Returns:
- the grid sort builder
-
-