ActivityTableModelEditor

abstract class ActivityTableModelEditor<T>(columns: Array<ColumnInfo<EditableDatum<T>, *>>, itemEditor: CollectionItemEditor<EditableDatum<T>>, emptyText: String, emptySubText: String, isCopyable: (T) -> Boolean, 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

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

Constructors

ActivityTableModelEditor
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 = {})
the data type

Types

Companion
Link copied to clipboard
object Companion
Holds constants.

Functions

addChangeListener
Link copied to clipboard
fun addChangeListener(listener: () -> Unit)
Adds a listener that is called whenever this table is updated.
apply
Link copied to clipboard
@NotNull()
open fun apply(): @NotNull() MutableList<EditableDatum<T>>
areSelectedItemsRemovable
Link copied to clipboard
fun areSelectedItemsRemovable(@NotNull() p0: @NotNull() ListSelectionModel): Boolean
canCreateElement
Link copied to clipboard
open override fun canCreateElement(): Boolean
createComponent
Link copied to clipboard
override fun createComponent(): JPanel
Creates a new JPanel with the table and the corresponding buttons.
createElement
Link copied to clipboard
open override fun createElement(): EditableDatum<T>
disableUpDownActions
Link copied to clipboard
@NotNull()
open fun disableUpDownActions(): @NotNull() TableModelEditor<EditableDatum<T>>
enabled
Link copied to clipboard
@NotNull()
open fun enabled(p0: Boolean): @NotNull() TableModelEditor<EditableDatum<T>>
getItems
Link copied to clipboard
@NotNull()
open override fun getItems(): @NotNull() MutableList<EditableDatum<T>>
getModel
Link copied to clipboard
@NotNull()
open fun getModel(): @NotNull() ListTableModel<EditableDatum<T>>
getMutable
Link copied to clipboard
@NotNull()
fun getMutable(@NotNull() p0: @NotNull() EditableDatum<T>): @NotNull() EditableDatum<T>
isEditable
Link copied to clipboard
open fun isEditable(@NotNull() p0: @NotNull() EditableDatum<T>): Boolean
isModified
Link copied to clipboard
fun isModified(): Boolean
modelListener
Link copied to clipboard
open fun modelListener(@NotNull() p0: @NotNull() TableModelEditor.DataChangedListener<EditableDatum<T>>): TableModelEditor<EditableDatum<T>>
processModifiedItems
Link copied to clipboard
open fun processModifiedItems(@NotNull() p0: @NotNull() BiPredicate<in EditableDatum<T>, in EditableDatum<T>>)
reset
Link copied to clipboard
open override fun reset(@NotNull() p0: @NotNull() MutableList<out EditableDatum<T>>)
selectItem
Link copied to clipboard
open fun selectItem(@NotNull() p0: @NotNull() EditableDatum<T>)
setShowGrid
Link copied to clipboard
open fun setShowGrid(p0: Boolean)
silentlyReplaceItem
Link copied to clipboard
open fun silentlyReplaceItem(@NotNull() p0: @NotNull() EditableDatum<T>, @NotNull() p1: @NotNull() EditableDatum<T>, p2: Int)

Properties

activeData
Link copied to clipboard
var activeData: Collection<T>
All data of which the checkbox is currently checked.
data
Link copied to clipboard
var data: Collection<T>
All data currently in the table.
helper
Link copied to clipboard
val helper: CollectionModelEditor.ModelHelper<EditableDatum<T>, CollectionItemEditor<EditableDatum<T>>>
itemEditor
Link copied to clipboard
val itemEditor: CollectionItemEditor<EditableDatum<T>>
panel
Link copied to clipboard
val panel: JPanel
The panel in which the table editor is present.

Inheritors

SymbolSetTable
Link copied to clipboard
DictionaryTable
Link copied to clipboard

Sources

jvm source
Link copied to clipboard