Namespace: PureMVC.Interfaces.INotification
Interface INotification
All Known Implementing Classes: - TNotification
public interface INotification
Persistent- False
see
remarks- PureMVC does not rely upon underlying event modelsThe Observer Pattern as implemented within PureMVC exists to support event-driven communication between the application and the actors of the MVC triadNotifications are not meant to be a replacement for Events.
Generally, IMediator implementors place event handlers on their
view components, which they then handle in the usual way.
This may lead to the broadcast of Notifications to trigger ICommands
or to communicate with other IMediators.
IProxy and ICommand instances communicate with each other
and IMediators by broadcasting INotifications
summary- The interface definition for a PureMVC Notification
public
TValue |
Body The body of the INotification instance
|
public
TValue |
Kind The type of the INotification instance
|
public
string |
Name The name of the INotification instance
|
public
TObject |
Sender The Sender of the INotification instance. Introduced to be more "Delphi idiomatic"
|
public function TValue |
GetBody() |
public function TValue |
GetKind() |
public function string |
GetName() |
public function TObject |
GetSender() |
public Sub |
SetBody(Value: TValue) |
public Sub |
SetKind(Value: TValue) |
public Sub |
SetSender(Value: TObject) |
public function string |
ToString() Get the string representation of the INotification instance
|
Body
public Body: TValue
Type- TValue
Access- read/write
summary- The body of the INotification instance
Kind
public Kind: TValue
Type- TValue
Access- read/write
summary- The type of the INotification instance
Name
public Name: string
Type- string
Access- read
summary- The name of the INotification instance
remarks- No setter, should be set by constructor only
Sender
public Sender: TObject
Type- TObject
Access- read
summary- The Sender of the INotification instance. Introduced to be
more "Delphi idiomatic"
remarks- No setter, should be set by constructor only
GetBody
public function GetBody(): TValue
Reintroduce- False
Returns- TValue
GetKind
public function GetKind(): TValue
Reintroduce- False
Returns- TValue
GetName
public function GetName(): string
Reintroduce- False
Returns- string
GetSender
public function GetSender(): TObject
Reintroduce- False
Returns- TObject
SetBody
public procedure SetBody(Value: TValue)
Reintroduce- False
SetKind
public procedure SetKind(Value: TValue)
Reintroduce- False
SetSender
public procedure SetSender(Value: TObject)
Reintroduce- False
ToString
public function ToString(): string
Reintroduce- False
Returns- string
summary- Get the string representation of the INotification instance
returns- The string representation of the INotification instance