TJSONPropStorage class
Implements the final class for the JSON Form Session Properties storage.
Declaration
TJSONPropStorage = class(TCustomJSONPropStorage)Inheritance
- TJSONPropStorage
- TCustomJSONPropStorage
- TFormPropertyStorage
- TControlPropertyStorage
- TCustomPropertyStorage
TComponent
Description
TJSONPropStorage is a
TCustomJSONPropStorage
descendant which implements a class used to store session properties for a form
or frame to a file using JSON (JavaScript Object Notation) format. It sets the
visibility for properties introduced in ancestor classes.
Use the SessionProperties property in the TForm (or TFrame) instance which owns the class to define the component and property names written to the JSON storage mechanism.
Use JSONFileName to specify the path and file name to the file where the JSON content for the session properties is stored.
Use RootObjectPath to specify the path to the JSON object where the session properties is stored in the JSON file.
Use Formatted to control whether formatting options for the JSON config file are enabled for the storage mechanism.
See also
Properties
StoredValues | published | Collection with the names and values for properties handled for the container. |
JSONFileName | published | Name of the file where the session property names and values are saved in JSON format. |
Formatted | published | Controls whether formatted JSON is emitted in the JSONConf storage mechanism. |
Active | published | Indicates whether the container is Active and allows access to its storage. |
Events
OnSavingProperties | published | Event handler signalled when the Save method is started. |
OnSaveProperties | published | Event handler signalled when the Save method is completed. |
OnRestoringProperties | published | Event handler signalled when the Restore method is started. |
OnRestoreProperties | published | Event handler signalled when the Restore method is completed. |
Inherited
From TCustomJSONPropStorage (12)
DoEraseSections DoReadString DoWriteString FixPath FreeStorage GetFormatted GetJSONFileName JSONConf RootObjectPath RootSection SetFormatted StorageNeeded
From TControlPropertyStorage (1)
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
