IWidgetSettings
Description
- Derived from
- Extended by
Base interface for widgets that have JSON settings.
After creating a IWidgetSettings instance, the SettingsPath may be specified while the object is in the LifecycleState.Created state. Calling Initialize will put it into the LifecycleState.Initialized state, where the settings path cannot be changed any more. As best practice, initialization code that does not depend on any settings and does complete quickly should be placed into the constructor, the remaining code should be put into Initialize.
Public / Attributes
SettingsPath
Path to a directory that this widget can use to store own data and settings.
The settings path may only be set before Initialize is called on the widget. Afterwards, the settings path cannot be changed.
Extensions
SettingsLoad
Loads the settings of this widget.
- IOException
-
If an I/O error has occurred while reading the settings file.
- ValidatingException
-
If the contents of the settings file is malformed.
SettingsSave
Saves the settings of this widget.
- IOException
-
If an I/O error has occurred while writing the settings file.