intellij-randomness / com.fwdekker.randomness.uuid / UuidSettingsComponent

UuidSettingsComponent

class UuidSettingsComponent : SettingsComponent<UuidSettings, UuidScheme>

Component for settings of random UUID generation.

Parameters

settings - the settings to edit in the component

See Also

UuidSettingsAction

Constructors

<init>

UuidSettingsComponent(settings: UuidSettings = default)

Component for settings of random UUID generation.

Properties

rootPane

val rootPane: JPanel

The panel containing the settings.

schemesPanel

lateinit var schemesPanel: SchemesPanel<UuidScheme>

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

unsavedSettings

lateinit var unsavedSettings: UuidSettings

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

Functions

doValidate

fun doValidate(): ValidationInfo?

Validates all input fields.

loadScheme

fun loadScheme(scheme: UuidScheme): Unit

Loads the given scheme into the component's state.

saveScheme

fun saveScheme(scheme: UuidScheme): Unit

Saves the component's state into the given scheme.

Inherited Functions

isModified

fun isModified(): Boolean
open fun isModified(settings: S): Boolean

Returns true if this component contains unsaved changes.

loadSettings

fun loadSettings(): Unit

Loads the default settings object.

fun loadSettings(settings: S): Unit

Loads settings.

reset

fun reset(): Unit

Discards unsaved changes.

saveSettings

fun saveSettings(): Unit

Saves settings to the default settings object.

fun saveSettings(settings: S): Unit

Saves settings to settings.