Package com.vaadin.flow.component.grid
Class GridSortOrderBuilder<T>
- java.lang.Object
-
- com.vaadin.flow.data.provider.SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>
-
- com.vaadin.flow.component.grid.GridSortOrderBuilder<T>
-
- Type Parameters:
T- the type of the grid
- All Implemented Interfaces:
Serializable
public class GridSortOrderBuilder<T> extends com.vaadin.flow.data.provider.SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>
Helper classes with fluent API for constructingGridSortOrderlists. When the sort order is ready to be passed on, callingSortOrderBuilder.build()will create the list of sort orders.- Author:
- Vaadin Ltd.
- See Also:
GridSortOrder,thenAsc(com.vaadin.flow.component.grid.Grid.Column),thenDesc(com.vaadin.flow.component.grid.Grid.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, com.vaadin.flow.data.provider.SortDirection direction)GridSortOrderBuilder<T>thenAsc(Grid.Column<T> by)GridSortOrderBuilder<T>thenDesc(Grid.Column<T> by)
-
-
-
Method Detail
-
thenAsc
public GridSortOrderBuilder<T> thenAsc(Grid.Column<T> by)
- Overrides:
thenAscin classcom.vaadin.flow.data.provider.SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>
-
thenDesc
public GridSortOrderBuilder<T> thenDesc(Grid.Column<T> by)
- Overrides:
thenDescin classcom.vaadin.flow.data.provider.SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>
-
createSortOrder
protected GridSortOrder<T> createSortOrder(Grid.Column<T> by, com.vaadin.flow.data.provider.SortDirection direction)
- Specified by:
createSortOrderin classcom.vaadin.flow.data.provider.SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>
-
-