| Description | Hierarchy | Fields | Methods | Properties |
type TObserver = class(TComponent)
TObserver is used to coordinate when TDataArrays need to be updated.
![]() |
FObserved: boolean; |
![]() |
FObserver: IObjectObserver; |
![]() |
FObserverList: IObjectObserverList; |
![]() |
FOnNotify: TNotifyEvent; |
![]() |
FOnUpToDateSet: TNotifyEvent; |
![]() |
FSubscribers: TList; |
![]() |
FUpToDate: boolean; |
![]() |
FOnNameChange: TNotifyEvent; |
![]() |
function GetName: TComponentName; |
![]() |
function GetSubject: ISubject; |
![]() |
function GetObserverList: IObjectObserverList; |
![]() |
procedure SetName(const Value: TComponentName); override; |
![]() |
procedure SetUpToDate(const Value: boolean); virtual; |
![]() |
constructor Create(AnOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
function IsRecursive: boolean; |
![]() |
procedure ObserverNotification(Kind: TNotificationKInd; Obj: TObject; ChangeKind: TChangeKind); virtual; |
![]() |
procedure StopTalkingToAnyone; |
![]() |
procedure TalksTo(const Observer: TObserver); |
![]() |
procedure StopsTalkingTo(const Observer: TObserver); |
![]() |
procedure UpdateWithName(const AName: string); virtual; |
![]() |
function IsListeningTo(const AnotherObserver: TObserver): boolean; |
![]() |
property Observer: IObjectObserver read FObserver; |
![]() |
property Subject: ISubject read GetSubject; |
![]() |
property Observed: boolean read FObserved write FObserved; |
![]() |
property ObserverList: IObjectObserverList read GetObserverList; |
![]() |
property UpToDate: boolean read FUpToDate write SetUpToDate; |
![]() |
property OnNameChange: TNotifyEvent read FOnNameChange write FOnNameChange; |
![]() |
property Name: TComponentName read GetName write SetName; |
![]() |
property OnNotify: TNotifyEvent read FOnNotify write FOnNotify; |
![]() |
property OnUpToDateSet: TNotifyEvent read FOnUpToDateSet write
FOnUpToDateSet; |
![]() |
FObserved: boolean; |
|
| |
![]() |
FObserver: IObjectObserver; |
|
| |
![]() |
FObserverList: IObjectObserverList; |
|
| |
![]() |
FOnNotify: TNotifyEvent; |
|
| |
![]() |
FOnUpToDateSet: TNotifyEvent; |
|
| |
![]() |
FSubscribers: TList; |
|
| |
![]() |
FUpToDate: boolean; |
|
| |
![]() |
FOnNameChange: TNotifyEvent; |
![]() |
function GetName: TComponentName; |
|
See Name. | |
![]() |
function GetSubject: ISubject; |
|
See Subject. | |
![]() |
function GetObserverList: IObjectObserverList; |
![]() |
procedure SetName(const Value: TComponentName); override; |
|
See Name. | |
![]() |
procedure SetUpToDate(const Value: boolean); virtual; |
|
See UpToDate. | |
![]() |
constructor Create(AnOwner: TComponent); override; |
|
| |
![]() |
destructor Destroy; override; |
|
| |
![]() |
procedure ObserverNotification(Kind: TNotificationKInd; Obj: TObject; ChangeKind: TChangeKind); virtual; |
|
| |
![]() |
procedure StopTalkingToAnyone; |
|
| |
![]() |
procedure TalksTo(const Observer: TObserver); |
|
Subject.Subscribe(Observer.Observer);
See StopsTalkingTo, Subject, and Observer. | |
![]() |
procedure StopsTalkingTo(const Observer: TObserver); |
|
| |
![]() |
procedure UpdateWithName(const AName: string); virtual; |
|
UpdateWithName assigns Name := AName. | |
![]() |
function IsListeningTo(const AnotherObserver: TObserver): boolean; |
![]() |
property Observer: IObjectObserver read FObserver; |
|
| |
![]() |
property Subject: ISubject read GetSubject; |
|
| |
![]() |
property Observed: boolean read FObserved write FObserved; |
|
| |
![]() |
property ObserverList: IObjectObserverList read GetObserverList; |
|
| |
![]() |
property UpToDate: boolean read FUpToDate write SetUpToDate; |
|
| |
![]() |
property OnNameChange: TNotifyEvent read FOnNameChange write FOnNameChange; |
![]() |
property Name: TComponentName read GetName write SetName; |
|
| |
![]() |
property OnNotify: TNotifyEvent read FOnNotify write FOnNotify; |
|
| |
![]() |
property OnUpToDateSet: TNotifyEvent read FOnUpToDateSet write
FOnUpToDateSet; |
|
| |