Packageorg.spicefactory.lib.command.util
Classpublic class DelegateCommand
InheritanceDelegateCommand Inheritance Object
Implements Command

A simple Command implementation that delegates to a function when executed.



Public Methods
 MethodDefined By
  
DelegateCommand(delegate:Function, params:Array)
Creates a new instance.
DelegateCommand
  
execute():void
Executes the command.
DelegateCommand
Constructor Detail
DelegateCommand()Constructor
public function DelegateCommand(delegate:Function, params:Array)

Creates a new instance.

Parameters
delegate:Function — the function to invoke when this command executes
 
params:Array — parameters to pass to the function
Method Detail
execute()method
public function execute():void

Executes the command.