Namespace: PureMVC.Patterns.Command
Class TMacroCommand
System.TInterfacedObject
|
+-- PureMVC.Patterns.Notifier.TNotifier
|
+-- PureMVC.Patterns.Command.TCommand
|
+-- PureMVC.Patterns.Command.TMacroCommand
All Implemented Interfaces: - ICommand , INotifier
public class TMacroCommand ( TCommand , ICommand , INotifier )
Abstract- False
Sealed- False
Persistent- False
summary- A base ICommand implementation that executes other ICommands
remarks- A MacroCommand maintains an list of ICommand Class references called SubCommandsWhen execute is called, the MacroCommand instantiates and calls execute on each of its SubCommands turn. Each SubCommand will be passed a reference to the original INotification that was passed to the MacroCommand's execute methodUnlike SimpleCommand, your subclass should not override execute, but instead, should override the initializeMacroCommand method, calling addSubCommand once for each SubCommand to be executed
see
Create() Constructs a new macro command
|
FSubCommands
internal FSubCommands: PureMVC.Utils.IList<T>
Type- IList<TCommandClass>
Const- False
Class- False
Create
public constructor Create()
Abstract- False
Reintroduce- False
Virtual- False
Override- True
Final- False
summary- Constructs a new macro command
remarks- You should not need to define a constructor, instead, override the initializeMacroCommand methodIf your subclass does define a constructor, be sure to call super()
Execute
public procedure Execute(Notification: PureMVC.Interfaces.INotification.INotification )
Abstract- False
Reintroduce- False
Final- True
Virtual- False
Override- True
summary- Execute this MacroCommand's SubCommands
remarks- The SubCommands will be called in First In/First Out (FIFO) order
param- The INotification object to be passsed to each SubCommand
Class- False
to Interface ICommand
Client- TMacroCommand
Supplier- ICommand
to Interface INotifier
Client- TMacroCommand
Supplier- INotifier
to Class TCommand
Client- TMacroCommand
Supplier- TCommand
to Interface
Client- FSubCommands
Directed- False
Type- association
Supplier- IList