Packageorg.puremvc.as3.patterns.command
Classpublic class SimpleCommand
InheritanceSimpleCommand Inheritance Notifier
ImplementsICommand, INotifier

A base ICommand implementation.

Your subclass should override the execute method where your business logic will handle the INotification.

See also

Controller
Notification
MacroCommand


Protected Properties
 PropertyDefined by
 Inheritedfacade : IFacade
Notifier
Public Methods
 MethodDefined by
  
execute(notification:INotification):void
Fulfill the use-case initiated by the given INotification.
SimpleCommand
 Inherited
sendNotification(notificationName:String, body:Object = null, type:String = null):void
Create and send an INotification.
Notifier
Method detail
execute()method
public function execute(notification:INotification):void

Fulfill the use-case initiated by the given INotification.

In the Command Pattern, an application use-case typically begins with some user action, which results in an INotification being broadcast, which is handled by business logic in the execute method of an ICommand.

Parameters
notification:INotification — the INotification to handle.