WordSettingsComponent

class WordSettingsComponent(settings: WordSettings = default) : SettingsComponent<WordSettings, WordScheme>

Component for settings of random word generation.

See also

Parameters

settings

the settings to edit in the component

Constructors

Link copied to clipboard
fun WordSettingsComponent(settings: WordSettings = default)

Functions

Link copied to clipboard
open override fun doValidate(): ValidationInfo?

Validates all input fields.

Link copied to clipboard
fun isModified(): Boolean

Returns true if this component contains unsaved changes.

open override fun isModified(settings: WordSettings): Boolean

Returns true if any dictionaries have been reordered.

Link copied to clipboard
open override fun loadScheme(scheme: WordScheme)

Loads the given scheme into the component's state.

Link copied to clipboard
override fun loadSettings()

Loads the default settings object.

override fun loadSettings(settings: WordSettings)

Loads settings.

Link copied to clipboard
fun reset()

Discards unsaved changes.

Link copied to clipboard
open override fun saveScheme(scheme: WordScheme)

Saves the component's state into the given scheme.

Link copied to clipboard
override fun saveSettings()

Saves settings to the default settings object.

override fun saveSettings(settings: WordSettings)

Saves settings to settings.

Properties

Link copied to clipboard
open override val rootPane: JPanel

The panel containing the settings.

Link copied to clipboard
open lateinit override var schemesPanel: SchemesPanel<WordScheme>

The panel containing the dropdown box of schemes and action buttons to rename, delete, etc. schemes.

Link copied to clipboard
open lateinit override var unsavedSettings: WordSettings

The local copy that represents the currently-unsaved settings that are being edited by the user.

Sources

Link copied to clipboard