com.vaadin.data.sort.
Class Sort
- java.lang.Object
-
- com.vaadin.data.sort.Sort
-
All Implemented Interfaces:
public class Sort extends Object implements Serializable
Fluid Sort API. Provides a convenient, human-readable way of specifying multi-column sort order.
Since:
7.4
Author:
Vaadin Ltd
See Also:
-
-
Method Summary
All Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
by
public static Sort by(Object propertyId)
Start building a Sort order by sorting a provided column in ascending order.
Parameters:
propertyId
- a property id, corresponding to a data source propertyReturns:
a sort object
-
by
public static Sort by(Object propertyId, SortDirection direction)
Start building a Sort order by sorting a provided column.
Parameters:
propertyId
- a property id, corresponding to a data source propertydirection
- a sort direction valueReturns:
a sort object
-
then
public Sort then(Object propertyId)
Continue building a Sort order. The provided property is sorted in ascending order if the previously added properties have been evaluated as equals.
Parameters:
propertyId
- a property id, corresponding to a data source propertyReturns:
a sort object
-
then
public Sort then(Object propertyId, SortDirection direction)
Continue building a Sort order. The provided property is sorted in specified order if the previously added properties have been evaluated as equals.
Parameters:
propertyId
- a property id, corresponding to a data source propertydirection
- a sort direction valueReturns:
a sort object
-
-