SelectionStrategy

interface SelectionStrategy<T, I>

This interface defines a strategy type in order to implement different selection mechanisms.

As we have identified already two different methods for selecting rows and provide default implementations for them, it is necessary to separate the implementation from the core data table component.

And of course we can use the strategy pattern, to provide the null object by NoSelection implementation, if the selection is disabled for the table.

Functions

equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
manageSelectionByExtraColumn
Link copied to clipboard
js
abstract fun manageSelectionByExtraColumn(component: DataTableComponent<T, I>)
manageSelectionByRowEvents
Link copied to clipboard
js
abstract fun manageSelectionByRowEvents(component: DataTableComponent<T, I>, rowStore: SubStore<List<T>, List<T>, T>, renderContext: Tr)
toString
Link copied to clipboard
js
open fun toString(): String

Inheritors

NoSelection
Link copied to clipboard
SelectionByCheckBox
Link copied to clipboard
SelectionByClick
Link copied to clipboard