Sign in Join
FPDoc Onlineexperiment

TJSONPropStorage class

In unit JSONPropStorage

Implements the final class for the JSON Form Session Properties storage.

Declaration

pascal
TJSONPropStorage = class(TCustomJSONPropStorage)

Inheritance

  1. TJSONPropStorage
  2. TCustomJSONPropStorage
  3. TFormPropertyStorage
  4. TControlPropertyStorage
  5. TCustomPropertyStorage
  6. 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

StoredValuespublishedCollection with the names and values for properties handled for the container.
JSONFileNamepublishedName of the file where the session property names and values are saved in JSON format.
FormattedpublishedControls whether formatted JSON is emitted in the JSONConf storage mechanism.
ActivepublishedIndicates whether the container is Active and allows access to its storage.

Events

OnSavingPropertiespublishedEvent handler signalled when the Save method is started.
OnSavePropertiespublishedEvent handler signalled when the Save method is completed.
OnRestoringPropertiespublishedEvent handler signalled when the Restore method is started.
OnRestorePropertiespublishedEvent 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 TFormPropertyStorage (2)

Create Destroy

From TControlPropertyStorage (1)

GetPropertyList

From TCustomPropertyStorage (22)

DoReadInteger DoWriteInteger EraseSections FinishPropertyList GetRoot OnSaveException ReadBoolean ReadInteger ReadRect ReadString ReadStrings Restore RestoreProperties Root Save SaveProperties StoredValue WriteBoolean WriteInteger WriteRect WriteString WriteStrings

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.