intellij-randomness / com.fwdekker.randomness.word / DictionaryTable

DictionaryTable

class DictionaryTable : ActivityTableModelEditor<Dictionary>

An editable table for selecting and editing Dictionaries.

See Also

WordSettingsComponent

Constructors

<init>

DictionaryTable()

An editable table for selecting and editing Dictionaries.

Inherited Properties

activeData

var activeData: Collection<T>

All data of which the checkbox is currently checked.

data

var data: Collection<T>

All data currently in the table.

panel

val panel: JPanel

The panel in which the table editor is present.

Functions

createElement

fun createElement(): EditableDictionary

Creates a new placeholder Dictionary instance.

doValidate

fun doValidate(): ValidationInfo?

Returns null if a unique, non-empty selection of valid dictionaries has been made, or a ValidationInfo object explaining which input should be changed.

Inherited Functions

addChangeListener

fun addChangeListener(listener: () -> Unit): Unit

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

createComponent

fun createComponent(): JPanel

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

Companion Object Properties

DICTIONARY_CAST_EXCEPTION

const val DICTIONARY_CAST_EXCEPTION: String

The error message that is displayed if an unknown dictionary implementation is used.