SettingsComponent
abstract class SettingsComponent<S : Settings<S, T>, T : Scheme<T>>(settings: S) : SettingsManager<S>
Content copied to clipboard
A component that allows the user to edit settings and its corresponding schemes.
Subclasses MUST call loadSettings
in their constructor.
There are multiple settings S instances at any time. The settings
given in the constructor is read when the component is created and is written to when the user saves its changes. The currently-selected scheme is loaded into the component's inputs. When the user selects a different scheme of which to change its values, the values in the input fields are stored in a copy of settings
. This way, the local changes are not lost when switching between schemes, and the user can still revert all unsaved changes if desired.
Parameters
S
the type of settings to manage
T
the type of scheme to manage
settings
the settings to manage
Constructors
SettingsComponent
Link copied to clipboard
Functions
doValidate
Link copied to clipboard
isModified
Link copied to clipboard
loadScheme
Link copied to clipboard
loadSettings
Link copied to clipboard
saveScheme
Link copied to clipboard
saveSettings
Link copied to clipboard
override fun saveSettings()
Content copied to clipboard
Properties
Inheritors
ArraySettingsComponent
Link copied to clipboard
DecimalSettingsComponent
Link copied to clipboard
IntegerSettingsComponent
Link copied to clipboard
StringSettingsComponent
Link copied to clipboard
UuidSettingsComponent
Link copied to clipboard
WordSettingsComponent
Link copied to clipboard
Sources
jvm source
Link copied to clipboard