Home | Trees | Indices | Help |
|
---|
|
object --+ | interfaces.INotifier --+ | observer.Notifier --+ | object --+ | | | interfaces.INotifier --+ | | | interfaces.ICommand --+ | MacroCommand
A base ICommand
implementation that executes other
ICommand
s.
A MacroCommand
maintains an list of ICommand
Class references called <i>SubCommands</i>.
When execute
is called, the MacroCommand
instantiates and calls execute
on each of its
<i>SubCommands</i> turn. Each <i>SubCommand</i>
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 <i>SubCommand</i> to
be executed.
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from Inherited from |
|
MacroCommand Constructor. You should not need to define a constructor, instead, override the
If your subclass does define a constructor, be sure to call
|
Initialize the In your subclass, override this method to initialize the
// Initialize MyMacroCommand function initializeMacroCommand( ) : void { addSubCommand( com.me.myapp.controller.FirstCommand ); addSubCommand( com.me.myapp.controller.SecondCommand ); addSubCommand( com.me.myapp.controller.ThirdCommand ); } Note that <i>SubCommand</i>s may be any
|
Add a <i>SubCommand</i>. The <i>SubCommands</i> will be called in First In/First Out (FIFO) order.
|
Execute this The <i>SubCommands</i> will be called in First In/First Out (FIFO) order.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Sep 23 18:56:02 2012 | http://epydoc.sourceforge.net |