intellij-randomness / com.fwdekker.randomness.integer / IntegerSettingsComponent

IntegerSettingsComponent

class IntegerSettingsComponent : SettingsComponent<IntegerSettings>

Component for settings of random integer generation.

See Also

IntegerSettings

IntegerSettingsAction

Constructors

<init>

IntegerSettingsComponent(settings: IntegerSettings = default)

Component for settings of random integer generation.

Properties

rootPane

val rootPane: JPanel

The panel containing the settings.

Functions

doValidate

fun doValidate(): ValidationInfo?

Validates all input fields.

loadSettings

fun loadSettings(settings: IntegerSettings): Unit

Loads settings.

saveSettings

fun saveSettings(settings: IntegerSettings): Unit

Saves settings to settings.

Inherited Functions

isModified

fun isModified(): Boolean
open fun isModified(settings: S): 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.