T
The type of data in the DataTable rows.
See also :
public void SelectionPlugin()
public void SelectionPlugin(Supplier<Element> singleSelectIndicator)
singleSelectIndicator
A supplier for the single select indicator element.
public boolean requiresUtilityColumn()
`true` since this plugin requires a utility column.
public Optional<List<HTMLElement>> getUtilityElements(DataTable<T> dataTable, RowCell<T> rowCell)
dataTable
The DataTable to which this plugin is applied.
rowCell
The cell information containing the cell content and metadata.
An optional list of utility elements, empty if none.
public void onAfterAddTable(DataTable<T> dataTable)
dataTable
The DataTable instance to which this plugin is applied.
public void onHeaderAdded(DataTable<T> dataTable, ColumnConfig<T> column)
dataTable
The DataTable to which this plugin is applied.
column
The column configuration to which the header is added.
public SelectionPlugin<T> setSingleSelectIcon(Supplier<Icon<?>> singleSelectIcon)
singleSelectIcon
A supplier for the single selection indicator icon.
This `SelectionPlugin` instance for method chaining.
public SelectionPlugin<T> setSelectionCondition(SelectionCondition<T> selectionCondition)
selectionCondition
A function that determines whether a row is selectable.
This `SelectionPlugin` instance for method chaining.
public SelectionPlugin<T> setRetainSelectionOnDataChange(boolean retainSelectionOnDataChange)
retainSelectionOnDataChange
`true` to retain row selection, `false` otherwise.
This `SelectionPlugin` instance for method chaining.
public void onRowAdded(DataTable<T> dataTable, TableRow<T> tableRow)
dataTable
The DataTable to which this plugin is applied.
tableRow
The row to be added.
public void handleEvent(DominoEvent event)
event
The DataTable event.
public SelectionPlugin<T> setCheckBoxCreator(CheckBoxCreator<T> checkBoxCreator)
checkBoxCreator
A custom CheckBox creator.
This `SelectionPlugin` instance for method chaining.