class WordSettingsComponent : SettingsComponent<WordSettings, WordScheme>
Component for settings of random word generation.
settings
- the settings to edit in the component
See Also
WordSettingsComponent(settings: WordSettings = default)
Component for settings of random word generation. |
val rootPane: JPanel
The panel containing the settings. |
|
lateinit var schemesPanel: SchemesPanel<WordScheme>
The panel containing the dropdown box of schemes and action buttons to rename, delete, etc. schemes. |
|
lateinit var unsavedSettings: WordSettings
The local copy that represents the currently-unsaved settings that are being edited by the user. |
fun doValidate(): ValidationInfo?
Validates all input fields. |
|
fun isModified(settings: WordSettings): Boolean
Returns true if any dictionaries have been reordered. |
|
fun loadScheme(scheme: WordScheme): Unit
Loads the given scheme into the component's state. |
|
fun saveScheme(scheme: WordScheme): Unit
Saves the component's state into the given scheme. |
fun isModified(): Boolean
Returns true if this component contains unsaved changes. |
|
fun loadSettings(): Unit
Loads the default settings object. fun loadSettings(settings: S): Unit
Loads |
|
fun reset(): Unit
Discards unsaved changes. |
|
fun saveSettings(): Unit
Saves settings to the default settings object. fun saveSettings(settings: S): Unit
Saves settings to |