T - the type of the data table recordspublic class DataChangedEvent<T> extends Object
| Constructor and Description |
|---|
DataChangedEvent(List<T> newData,
boolean append,
int totalCount)
Creates a new instance without sort information
|
DataChangedEvent(List<T> newData,
boolean append,
int totalCount,
SortDirection sortDirection,
String sortColumn)
Creates a new instance with sort information
|
DataChangedEvent(List<T> newData,
int totalCount)
Creates a new instance without sort information
|
DataChangedEvent(List<T> newData,
int totalCount,
SortDirection sortDirection,
String sortColumn)
Creates a new instance with sort information
|
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getNewData() |
Optional<String> |
getSortColumn() |
Optional<SortDirection> |
getSortDir() |
int |
getTotalCount() |
boolean |
isAppend() |
public DataChangedEvent(List<T> newData, int totalCount)
newData - List of new recordstotalCount - int, The total count which may not be equal to the data list size as this
represent the total count of items not just in the current pagepublic DataChangedEvent(List<T> newData, int totalCount, SortDirection sortDirection, String sortColumn)
newData - List of new recordstotalCount - int, The total count which may not be equal to the data list size as this
represent the total count of items not just in the current pagesortDirection - the SortDirectionsortColumn - String, the name of the column we sort by.public DataChangedEvent(List<T> newData, boolean append, int totalCount)
newData - List of new recordsappend - boolean, true if the new data should be appended to the old data instead of
replacing it.totalCount - int, The total count which may not be equal to the data list size as this
represent the total count of items not just in the current pagepublic DataChangedEvent(List<T> newData, boolean append, int totalCount, SortDirection sortDirection, String sortColumn)
newData - List of new recordsappend - boolean, true if the new data should be appended to the old data instead of
replacing it.totalCount - int, The total count which may not be equal to the data list size as this
represent the total count of items not just in the current pagesortDirection - the SortDirectionsortColumn - String, the name of the column we sort by.public boolean isAppend()
public int getTotalCount()
public Optional<SortDirection> getSortDir()
SortDirectionCopyright © 2019–2022 Dominokit. All rights reserved.