ActivityTableModelEditor

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

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

Constructors

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

Types

Link copied to clipboard
object Companion

Holds constants.

Functions

Link copied to clipboard
fun addChangeListener(listener: () -> Unit)

Adds a listener that is called whenever this table is updated.

Link copied to clipboard
@NotNull
open fun apply(): @NotNull MutableList<EditableDatum<T>>
Link copied to clipboard
fun areSelectedItemsRemovable(@NotNull p0: @NotNull ListSelectionModel): Boolean
Link copied to clipboard
open override fun canCreateElement(): Boolean
Link copied to clipboard
override fun createComponent(): JPanel

Creates a new JPanel with the table and the corresponding buttons.

Link copied to clipboard
open override fun createElement(): EditableDatum<T>
Link copied to clipboard
@NotNull
open fun disableUpDownActions(): @NotNull TableModelEditor<EditableDatum<T>>
Link copied to clipboard
@NotNull
open fun enabled(p0: Boolean): @NotNull TableModelEditor<EditableDatum<T>>
Link copied to clipboard
@NotNull
open override fun getItems(): @NotNull MutableList<EditableDatum<T>>
Link copied to clipboard
@NotNull
open fun getModel(): @NotNull ListTableModel<EditableDatum<T>>
Link copied to clipboard
@NotNull
fun getMutable(@NotNull p0: @NotNull EditableDatum<T>): @NotNull EditableDatum<T>
Link copied to clipboard
open fun isEditable(@NotNull p0: @NotNull EditableDatum<T>): Boolean
Link copied to clipboard
fun isModified(): Boolean
Link copied to clipboard
open fun modelListener(@NotNull p0: @NotNull TableModelEditor.DataChangedListener<EditableDatum<T>>): TableModelEditor<EditableDatum<T>>
Link copied to clipboard
open fun processModifiedItems(@NotNull p0: @NotNull BiPredicate<in EditableDatum<T>, in EditableDatum<T>>)
Link copied to clipboard
open override fun reset(@NotNull p0: @NotNull MutableList<out EditableDatum<T>>)
Link copied to clipboard
open fun selectItem(@NotNull p0: @NotNull EditableDatum<T>)
Link copied to clipboard
open fun setShowGrid(p0: Boolean)
Link copied to clipboard
open fun silentlyReplaceItem(    @NotNull p0: @NotNull EditableDatum<T>,     @NotNull p1: @NotNull EditableDatum<T>,     p2: Int)

Properties

Link copied to clipboard
var activeData: Collection<T>

All data of which the checkbox is currently checked.

Link copied to clipboard
var data: Collection<T>

All data currently in the table.

Link copied to clipboard
val helper: CollectionModelEditor.ModelHelper<EditableDatum<T>, CollectionItemEditor<EditableDatum<T>>>
Link copied to clipboard
val itemEditor: CollectionItemEditor<EditableDatum<T>>
Link copied to clipboard
val panel: JPanel

The panel in which the table editor is present.

Inheritors

Link copied to clipboard
Link copied to clipboard

Sources

Link copied to clipboard