T - the type of the data table recordspublic class RowMarkerPlugin<T> extends Object implements DataTablePlugin<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
RowMarkerPlugin.MarkerColor<T>
An interface to implement different color markers
|
| Constructor and Description |
|---|
RowMarkerPlugin(RowMarkerPlugin.MarkerColor<T> markerColor)
creates an instance with a custom marker color
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleEvent(TableEvent event) |
void |
onAfterAddHeaders(DataTable<T> dataTable)
This method will be called right after adding all columns headers elements to the table
|
void |
onBeforeAddRow(DataTable<T> dataTable,
TableRow<T> tableRow)
This method will be called right before adding a row to the table
|
void |
onBeforeAddTable(DataTable<T> dataTable)
This well be called once the table is initialized and before it is appended to the dom
|
void |
onRowAdded(DataTable<T> dataTable,
TableRow<T> tableRow)
This method will be called right after adding a row to the table
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUtilityElements, init, onAfterAddTable, onAllRowsAdded, onBeforeAddHeaders, onBodyAdded, onHeaderAdded, requiresUtilityColumnpublic RowMarkerPlugin(RowMarkerPlugin.MarkerColor<T> markerColor)
markerColor - RowMarkerPlugin.MarkerColorpublic void onBeforeAddTable(DataTable<T> dataTable)
DataTablePluginonBeforeAddTable in interface DataTablePlugin<T>dataTable - the DataTable we are attaching this plugin to.public void onAfterAddHeaders(DataTable<T> dataTable)
DataTablePluginonAfterAddHeaders in interface DataTablePlugin<T>dataTable - the DataTable we are attaching this plugin to.public void onBeforeAddRow(DataTable<T> dataTable, TableRow<T> tableRow)
DataTablePluginonBeforeAddRow in interface DataTablePlugin<T>dataTable - the DataTable we are attaching this plugin to.tableRow - the TableRow we are about to addpublic void onRowAdded(DataTable<T> dataTable, TableRow<T> tableRow)
DataTablePluginonRowAdded in interface DataTablePlugin<T>dataTable - the DataTable we are attaching this plugin to.tableRow - the TableRow addedpublic void handleEvent(TableEvent event)
DataTablePluginhandleEvent in interface TableEventListenerhandleEvent in interface DataTablePlugin<T>event - the TableEvent being receivedCopyright © 2019–2022 Dominokit. All rights reserved.