Package com.vaadin.flow.component.crud
Class CrudFilter
- java.lang.Object
-
- com.vaadin.flow.component.crud.CrudFilter
-
- All Implemented Interfaces:
Serializable
public class CrudFilter extends Object implements Serializable
The filter type for use withCrudGrid
. This provides information about the filter constraints and sort orders applied to the grid by the user.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CrudFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getConstraints()
Returns the filter constraint applied to the grid as a map of column to filter text.Map<String,SortDirection>
getSortOrders()
Returns the sort orders applied to the grid as a map of column to sort direction.
-
-
-
Method Detail
-
getConstraints
public Map<String,String> getConstraints()
Returns the filter constraint applied to the grid as a map of column to filter text.- Returns:
- all constraints for the grid
-
getSortOrders
public Map<String,SortDirection> getSortOrders()
Returns the sort orders applied to the grid as a map of column to sort direction. Only columns with active sorting are present.- Returns:
- the sort orders for the grid
-
-