ArraySettingsComponent

class ArraySettingsComponent(settings: ArraySettings) : SettingsComponent<ArraySettings, ArrayScheme>

Component for settings of random array generation.

See also

Parameters

settings

the settings to edit in the component

Constructors

ArraySettingsComponent
Link copied to clipboard
fun ArraySettingsComponent(settings: ArraySettings = default)
the settings to edit in the component

Types

Companion
Link copied to clipboard
object Companion
Holds constants.

Functions

doValidate
Link copied to clipboard
open override fun doValidate(): ValidationInfo?
Validates all input fields.
isModified
Link copied to clipboard
fun isModified(): Boolean
Returns true if this component contains unsaved changes.
open fun isModified(settings: ArraySettings): Boolean
Returns true if this component contains unsaved changes.
loadScheme
Link copied to clipboard
open override fun loadScheme(scheme: ArrayScheme)
Loads the given scheme into the component's state.
loadSettings
Link copied to clipboard
override fun loadSettings()
Loads the default settings object.
override fun loadSettings(settings: ArraySettings)
Loads settings.
reset
Link copied to clipboard
fun reset()
Discards unsaved changes.
saveScheme
Link copied to clipboard
open override fun saveScheme(scheme: ArrayScheme)
Saves the component's state into the given scheme.
saveSettings
Link copied to clipboard
override fun saveSettings()
Saves settings to the default settings object.
override fun saveSettings(settings: ArraySettings)
Saves settings to settings.

Properties

rootPane
Link copied to clipboard
open override val rootPane: JPanel
The panel containing the settings.
schemesPanel
Link copied to clipboard
open lateinit override var schemesPanel: SchemesPanel<ArrayScheme>
The panel containing the dropdown box of schemes and action buttons to rename, delete, etc.
unsavedSettings
Link copied to clipboard
open lateinit override var unsavedSettings: ArraySettings
The local copy that represents the currently-unsaved settings that are being edited by the user.

Sources

jvm source
Link copied to clipboard