T - the type of the data records in the tablepublic class OnBeforeDataChangeEvent<T> extends Object implements TableEvent
DataTable right before
the data in the table is changed to allow other plugins to apply any cleanup required before the
new data is applied| Modifier and Type | Field and Description |
|---|---|
static String |
ON_BEFORE_DATA_CHANGE
A constant string to define a unique type for this event
|
| Constructor and Description |
|---|
OnBeforeDataChangeEvent(List<T> data,
int totalCount,
boolean isAppend) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getData() |
int |
getTotalCount() |
String |
getType() |
boolean |
isAppend() |
public static final String ON_BEFORE_DATA_CHANGE
public OnBeforeDataChangeEvent(List<T> data, int totalCount, boolean isAppend)
data - List of new datatotalCount - int, the total count for the new dataisAppend - boolean, true if the new data will be appended to old data, otherwise it will
replace the old data.public String getType()
getType in interface TableEventpublic int getTotalCount()
public boolean isAppend()
Copyright © 2019–2022 Dominokit. All rights reserved.