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

WordSettingsComponent

class WordSettingsComponent : SettingsComponent<WordSettings>

Component for settings of random word generation.

See Also

WordSettings

WordSettingsAction

DictionaryTable

Constructors

<init>

WordSettingsComponent(settings: WordSettings = default)

Component for settings of random word generation.

Properties

rootPane

val rootPane: JPanel

The panel containing the settings.

Functions

doValidate

fun doValidate(): ValidationInfo?

Validates all input fields.

isModified

fun isModified(settings: WordSettings): Boolean

Returns true if this component contains unsaved changes.

loadSettings

fun loadSettings(settings: WordSettings): Unit

Loads settings.

saveSettings

fun saveSettings(settings: WordSettings): Unit

Saves settings to settings.

Inherited Functions

isModified

fun isModified(): Boolean

Returns true if this component contains unsaved changes.

loadSettings

open fun loadSettings(): Unit

Loads the default settings object.

reset

fun reset(): Unit

Discards unsaved changes.

saveSettings

open fun saveSettings(): Unit

Saves settings to the default settings object.