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.
|
buildpublic GridSortOrderBuilder<T> thenAsc(Grid.Column<T> by)
SortOrderBuilderthenAsc in class SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>by - the object to sort bypublic GridSortOrderBuilder<T> thenDesc(Grid.Column<T> by)
SortOrderBuilderthenDesc in class SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>by - the object to sort byprotected GridSortOrder<T> createSortOrder(Grid.Column<T> by, SortDirection direction)
SortOrderBuildercreateSortOrder in class SortOrderBuilder<GridSortOrder<T>,Grid.Column<T>>by - the object to sort bydirection - the sort directionCopyright © 2025. All rights reserved.