Package com.vaadin.data.provider
Class GridSortOrderBuilder<T>
- java.lang.Object
-
- com.vaadin.data.provider.SortOrderBuilder<GridSortOrder<T>,Grid.Column<T,?>>
-
- com.vaadin.data.provider.GridSortOrderBuilder<T>
-
- Type Parameters:
T
- the type of the grid
- All Implemented Interfaces:
Serializable
public class GridSortOrderBuilder<T> extends SortOrderBuilder<GridSortOrder<T>,Grid.Column<T,?>>
Helper classes with fluent API for constructingGridSortOrder
lists. When the sort order is ready to be passed on, callingSortOrderBuilder.build()
will create the list of sort orders.- Since:
- 8.0
- See Also:
GridSortOrder
,thenAsc(Column)
,thenDesc(Column)
,SortOrderBuilder.build()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridSortOrderBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GridSortOrder<T>
createSortOrder(Grid.Column<T,?> by, SortDirection direction)
Creates a sort order object with the given parameters.GridSortOrderBuilder<T>
thenAsc(Grid.Column<T,?> by)
Appends sorting with ascending sort direction.GridSortOrderBuilder<T>
thenDesc(Grid.Column<T,?> by)
Appends sorting with descending sort direction.-
Methods inherited from class com.vaadin.data.provider.SortOrderBuilder
build
-
-
-
-
Method Detail
-
thenAsc
public GridSortOrderBuilder<T> thenAsc(Grid.Column<T,?> by)
Description copied from class:SortOrderBuilder
Appends sorting with ascending sort direction.- Overrides:
thenAsc
in classSortOrderBuilder<GridSortOrder<T>,Grid.Column<T,?>>
- Parameters:
by
- the object to sort by- Returns:
- this sort builder
-
thenDesc
public GridSortOrderBuilder<T> thenDesc(Grid.Column<T,?> by)
Description copied from class:SortOrderBuilder
Appends sorting with descending sort direction.- Overrides:
thenDesc
in classSortOrderBuilder<GridSortOrder<T>,Grid.Column<T,?>>
- Parameters:
by
- the object to sort by- Returns:
- this sort builder
-
createSortOrder
protected GridSortOrder<T> createSortOrder(Grid.Column<T,?> by, SortDirection direction)
Description copied from class:SortOrderBuilder
Creates a sort order object with the given parameters.- Specified by:
createSortOrder
in classSortOrderBuilder<GridSortOrder<T>,Grid.Column<T,?>>
- Parameters:
by
- the object to sort bydirection
- the sort direction- Returns:
- the sort order object
-
-