intellij-randomness / com.fwdekker.randomness / SettingsDialog

SettingsDialog

abstract class SettingsDialog<S : Settings<*>> : DialogWrapper, SettingsManager<S>

Superclass for settings dialogs.

Subclasses MUST call init and loadSettings in their constructor.

Parameters

settings - the settings to manage

Parameters

Constructors

<init>

SettingsDialog(settings: S)

Superclass for settings dialogs.

Functions

doOKAction

open fun doOKAction(): Unit

Saves the settings and closes the dialog when the OK button is pressed.

doValidate

abstract fun doValidate(): ValidationInfo?

Validates all input fields.

getDimensionServiceKey

open fun getDimensionServiceKey(): String

Returns the key used to persist dialog dimensions.

loadSettings

open fun loadSettings(): Unit

Loads the default settings object.

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

ArraySettingsDialog

class ArraySettingsDialog : SettingsDialog<ArraySettings!>

Dialog for settings of random array generation.

DecimalSettingsDialog

class DecimalSettingsDialog : SettingsDialog<DecimalSettings!>

Dialog for settings of random decimal generation.

IntegerSettingsDialog

class IntegerSettingsDialog : SettingsDialog<IntegerSettings!>

Dialog for settings of random integer generation.

StringSettingsDialog

class StringSettingsDialog : SettingsDialog<StringSettings!>

Dialog for settings of random string generation.

UuidSettingsDialog

class UuidSettingsDialog : SettingsDialog<UuidSettings!>

Dialog for settings of random UUID generation.

WordSettingsDialog

class WordSettingsDialog : SettingsDialog<WordSettings!>

Dialog for settings of random word generation.