public static class DataGrid.SortEvent extends DataGrid.AbstractDataGridEvent implements HasUserOriginated
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<DataGrid.SortOrder> |
sortOrder |
protected boolean |
userOriginated |
| Constructor and Description |
|---|
SortEvent(DataGrid component,
java.util.List<DataGrid.SortOrder> sortOrder)
Creates a new sort order change event with a sort order list.
|
SortEvent(DataGrid component,
java.util.List<DataGrid.SortOrder> sortOrder,
boolean userOriginated)
Creates a new sort order change event with a sort order list.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DataGrid.SortOrder> |
getSortOrder() |
boolean |
isUserOriginated()
Returns whether this event was triggered by user interaction or programmatically.
|
getSourceprotected final java.util.List<DataGrid.SortOrder> sortOrder
protected final boolean userOriginated
public SortEvent(DataGrid component, java.util.List<DataGrid.SortOrder> sortOrder)
component - the DataGrid from which this event originatessortOrder - the new sort order listpublic SortEvent(DataGrid component, java.util.List<DataGrid.SortOrder> sortOrder, boolean userOriginated)
component - the DataGrid from which this event originatessortOrder - the new sort order listuserOriginated - true if an event is a result of user interaction,
false if from the API callpublic java.util.List<DataGrid.SortOrder> getSortOrder()
public boolean isUserOriginated()
HasUserOriginatedisUserOriginated in interface HasUserOriginatedtrue if this event originates by user interaction, false otherwise.