intellij-randomness / com.fwdekker.randomness / SettingsComponent

SettingsComponent

abstract class SettingsComponent<S : Settings<S>> : SettingsManager<S>

Superclass for settings components.

Subclasses MUST call loadSettings in their constructor.

Parameters

settings - the settings to manage

Parameters

Constructors

<init>

SettingsComponent(settings: S)

Superclass for settings components.

Properties

rootPane

abstract val rootPane: JPanel?

The panel containing the settings.

Functions

doValidate

abstract fun doValidate(): ValidationInfo?

Validates all input fields.

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.

Inherited Functions

loadSettings

abstract fun loadSettings(settings: S): Unit

Loads settings.

saveSettings

abstract fun saveSettings(settings: S): Unit

Saves settings to settings.

Inheritors

ArraySettingsComponent

class ArraySettingsComponent : SettingsComponent<ArraySettings>

Component for settings of random array generation.

DecimalSettingsComponent

class DecimalSettingsComponent : SettingsComponent<DecimalSettings>

Component for settings of random decimal generation.

IntegerSettingsComponent

class IntegerSettingsComponent : SettingsComponent<IntegerSettings>

Component for settings of random integer generation.

StringSettingsComponent

class StringSettingsComponent : SettingsComponent<StringSettings>

Component for settings of random string generation.

UuidSettingsComponent

class UuidSettingsComponent : SettingsComponent<UuidSettings>

Component for settings of random UUID generation.

WordSettingsComponent

class WordSettingsComponent : SettingsComponent<WordSettings>

Component for settings of random word generation.