[Overview][Types][Classes][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Provides abstract means to Save/Restore properties.
Source position: propertystorage.pas line 114
type TCustomPropertyStorage = class(TComponent) end; |
||
protected |
||
function GetRoot; virtual; |
||
function RootSection; virtual; |
|
Constructs the path name to this section, from the Owners of the Root object. |
procedure SaveProperties; virtual; |
|
Saves all linked property collections |
procedure RestoreProperties; virtual; |
|
Restores all linked property collections |
procedure GetPropertyList(); virtual; abstract; |
|
Builds a list of all linked propery collections |
procedure FinishPropertyList(); virtual; |
|
set Objects (i.e. the component of each property) |
function DoReadInteger(); virtual; |
|
Reads an integer value, stored as a string. |
function DoReadString(); virtual; abstract; |
|
Default OnReadString handler, must be overridden! |
procedure DoWriteString(); virtual; abstract; |
|
Default OnWriteString handler, must be overridden! |
procedure DoWriteInteger(); virtual; |
|
Writes an Integer value as a String. |
procedure DoEraseSections(); virtual; abstract; |
|
|
public |
||
constructor Create(); override; |
||
destructor Destroy; override; |
||
procedure Save; virtual; |
|
Saves all linked property collections |
procedure Restore; virtual; |
|
Restores all linked property collections |
procedure StorageNeeded(); virtual; |
|
Override this to provide a storage object |
procedure FreeStorage; virtual; |
|
Override this method to release your storage. |
function ReadBoolean(); |
|
Reads an Boolean value, stored as a string. |
function ReadString(); |
|
Reads an String value from the RootSection. |
function ReadInteger(); |
|
Reads an integer value, stored as a string, from the RootSection. |
procedure ReadRect(); |
|
Reads an TRect record, stored as a string. |
procedure ReadStrings(); |
|
Reads a list of strings, stored with a Count value. |
procedure WriteString(); |
|
Writes an string into the RootSection. |
procedure WriteInteger(); |
|
Writes an integer into the RootSection. |
procedure WriteBoolean(); |
|
Writes an boolean value into the RootSection. |
procedure WriteRect(); |
|
Writes an TRect record into the RootSection. |
procedure WriteStrings(); |
|
Writes a list of strings into the RootSection. |
procedure EraseSections; |
|
|
property StoredValue []: TStoredType; [rw] |
|
|
property Root: TComponent; [r] |
|
|
property Active: Boolean; [rw] |
|
This determines if the object is active or not. |
property StoredValues: TStoredValues; [rw] |
|
|
property OnSavingProperties: TNotifyEvent; [rw] |
|
Handler called at the beginning of Save. |
property OnSaveProperties: TNotifyEvent; [rw] |
|
Handler called at the end of Save. |
property OnRestoringProperties: TNotifyEvent; [rw] |
|
Handler called at the beginning of Restore. |
property OnRestoreProperties: TNotifyEvent; [rw] |
|
Handler called at the end of Restore. |
property OnSaveException: TPropertyStorageSaveExceptionEvent; [rw] |
||
|
Provides abstract means to Save/Restore properties. |
|
| | ||
TComponent |
||
? | ||
TObject |
lazarus-ccr.sourceforge.net |