T
- the type of the gridpublic class GridSortOrderBuilder<T> extends SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>
GridSortOrder
lists.
When the sort order is ready to be passed on, calling SortOrderBuilder.build()
will
create the list of sort orders.Constructor and Description |
---|
GridSortOrderBuilder() |
Modifier and Type | Method and 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.
|
build
public GridSortOrderBuilder<T> thenAsc(Grid.Column<T> by)
SortOrderBuilder
thenAsc
in class SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>
by
- the object to sort bypublic GridSortOrderBuilder<T> thenDesc(Grid.Column<T> by)
SortOrderBuilder
thenDesc
in class SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>
by
- the object to sort byprotected GridSortOrder<T> createSortOrder(Grid.Column<T> by, SortDirection direction)
SortOrderBuilder
createSortOrder
in class SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>
by
- the object to sort bydirection
- the sort directionCopyright © 2023. All rights reserved.