Package io.jmix.ui.component
Class DataGrid.SortEvent
java.lang.Object
java.util.EventObject
io.jmix.ui.component.DataGrid.AbstractDataGridEvent
io.jmix.ui.component.DataGrid.SortEvent
- All Implemented Interfaces:
HasUserOriginated,Serializable
public static class DataGrid.SortEvent
extends DataGrid.AbstractDataGridEvent
implements HasUserOriginated
An event that is fired when a sort order is changed.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<DataGrid.SortOrder>protected final booleanFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSortEvent(DataGrid component, List<DataGrid.SortOrder> sortOrder) Creates a new sort order change event with a sort order list.SortEvent(DataGrid component, List<DataGrid.SortOrder> sortOrder, boolean userOriginated) Creates a new sort order change event with a sort order list. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this event was triggered by user interaction or programmatically.Methods inherited from class io.jmix.ui.component.DataGrid.AbstractDataGridEvent
getSourceMethods inherited from class java.util.EventObject
toString
-
Field Details
-
sortOrder
-
userOriginated
protected final boolean userOriginated
-
-
Constructor Details
-
SortEvent
Creates a new sort order change event with a sort order list.- Parameters:
component- the DataGrid from which this event originatessortOrder- the new sort order list
-
SortEvent
Creates a new sort order change event with a sort order list.- Parameters:
component- the DataGrid from which this event originatessortOrder- the new sort order listuserOriginated-trueif an event is a result of user interaction,falseif from the API call
-
-
Method Details
-
getSortOrder
- Returns:
- the sort order list
-
isUserOriginated
public boolean isUserOriginated()Description copied from interface:HasUserOriginatedReturns whether this event was triggered by user interaction or programmatically.- Specified by:
isUserOriginatedin interfaceHasUserOriginated- Returns:
trueif this event originates by user interaction,falseotherwise.
-