MacroCommand
A base ICommand implementation that executes other ICommands.
Inheritance
Namespace: PureMVC.Patterns.CommandAssembly: PureMVC in (PureMVC.dll)
Syntax
C#
public class MacroCommand : Notifier, ICommand, INotifier
Remarks
A MacroCommand maintains an list of ICommand Class references called SubCommands.
When 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 method.
Unlike SimpleCommand, your subclass should not override execute, but instead, should override the initializeMacroCommand method, calling addSubCommand once for each SubCommandto be executed.
Constructors
Constructor.
Methods
Add a SubCommand.
Execute this MacroCommand's SubCommands.
Initialize the MacroCommand.
Fields
List of subcommands