intellij-randomness / com.fwdekker.randomness.ui / ActivityTableModelEditor / <init>

<init>

ActivityTableModelEditor(columns: Array<ColumnInfo<EditableDatum<T>, *>>, itemEditor: CollectionItemEditor<EditableDatum<T>>, emptyText: String, emptySubText: String, isCopyable: (T) -> Boolean = { true }, columnAdjuster: (List<TableColumn>) -> Unit = {})

A table that associates a certain data type with a checkbox.

Parameters

T - the data type

columns - the columns of the table, excluding the activity column

itemEditor - describes what happens when a row is edited

emptyText - the text to display when the table is empty

emptySubText - the instruction to display when the table is empty

isCopyable - returns true if and only if the given datum can be copied

columnAdjuster - invoked on the list of columns (including the activity column) to allow adjusting their properties