TDataModule class
Container for non-visual components.
Declaration
TDataModule = class(TComponent)Inheritance
- TDataModule
- TComponent
- TPersistent
- TObject
Descends from it: TCustomDaemon TCustomHTTPModule
Description
TDataModule is a container for non-visual objects which can be
used in an IDE to group non-visual objects which can be used by various
other containers (forms) in a project. Notably, data access components are
typically stored on a datamodule. Web components and services can also be
implemented as descendants of datamodules.
TDataModule introduces some events which make it easier to
program, and provides the needed streaming capabilities for persistent
storage.
An IDE will typically allow to create a descendant of TDataModule
which contains non-visual components in it's published property list.
See also
Properties
DesignOffset | public | Position property needed for manipulation in an IDE. |
DesignSize | public | Size property needed for manipulation in an IDE. |
DesignPPI | public | Design Time PPI. |
OldCreateOrder | published | Determines when OnCreate and OnDestroy are triggered. |
Methods
DoCreate | protected | |
DoDestroy | protected | |
DefineProperties | protected | Defines fake top,left properties for handling in the IDE. |
GetChildren | protected | Must be overridden by descendants to return all child components that must be streamed. |
HandleCreateException | protected | |
ReadState | protected | Read the component's state from a stream. |
Create | public | Create a new instance of a TDataModule. |
CreateNew | public | |
Destroy | public | Destroys the TDataModule instance. |
AfterConstruction | public | Overrides standard TObject behaviour. |
BeforeDestruction | public | Overrides standard BeforeDestruction. |
Events
OnCreate | published | Event handler, called when the datamodule is created. |
OnDestroy | published | Event handler, called when the datamodule is destroyed. |
Inherited
From TComponent (70)
_AddRef _Release CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState
From TPersistent (5)
Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (36)
CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
