T - the type of the data table recordspublic class SortPlugin<T> extends Object implements DataTablePlugin<T>
| Constructor and Description |
|---|
SortPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleEvent(TableEvent event) |
void |
init(DataTable<T> dataTable)
this method is used to initialise the plugin with the datatable instance
|
void |
onHeaderAdded(DataTable<T> dataTable,
ColumnConfig<T> column)
This method will be called right after adding a column header element to the table
|
void |
sort(SortDirection direction,
ColumnConfig<T> column)
manually sort the table by the specified column and fires the
SortEvent |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUtilityElements, onAfterAddHeaders, onAfterAddTable, onAllRowsAdded, onBeforeAddHeaders, onBeforeAddRow, onBeforeAddTable, onBodyAdded, onRowAdded, requiresUtilityColumnpublic void init(DataTable<T> dataTable)
init in interface DataTablePlugin<T>dataTable - the DataTable we are attaching this plugin to.public void onHeaderAdded(DataTable<T> dataTable, ColumnConfig<T> column)
onHeaderAdded in interface DataTablePlugin<T>dataTable - the DataTable we are attaching this plugin to.column - the ColumnConfig of the column we added the header for.public void sort(SortDirection direction, ColumnConfig<T> column)
SortEventdirection - the SortDirectioncolumn - the sort ColumnConfigpublic void handleEvent(TableEvent event)
handleEvent in interface TableEventListenerhandleEvent in interface DataTablePlugin<T>event - the TableEvent being receivedCopyright © 2019–2022 Dominokit. All rights reserved.