public class Sort extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
List<SortOrder> |
build()
Build a sort order list, ready to be passed to Grid
|
static Sort |
by(Object propertyId)
Start building a Sort order by sorting a provided column in ascending
order.
|
static Sort |
by(Object propertyId,
SortDirection direction)
Start building a Sort order by sorting a provided column.
|
Sort |
then(Object propertyId)
Continue building a Sort order.
|
Sort |
then(Object propertyId,
SortDirection direction)
Continue building a Sort order.
|
public static Sort by(Object propertyId)
propertyId - a property id, corresponding to a data source propertypublic static Sort by(Object propertyId, SortDirection direction)
propertyId - a property id, corresponding to a data source propertydirection - a sort direction valuepublic Sort then(Object propertyId)
propertyId - a property id, corresponding to a data source propertypublic Sort then(Object propertyId, SortDirection direction)
propertyId - a property id, corresponding to a data source propertydirection - a sort direction valueCopyright © 2019 Vaadin Ltd. All rights reserved.