Packagesystem.events
Classpublic class Command
InheritanceCommand Inheritance Object
Implements Runnable

A command is an easy entry with name and value property to launch a global command in the global event flow centralized in a specific FrontController singleton in the application.



Public Properties
 PropertyDefined By
  channel : String
The channel of this command.
Command
  controller : FrontController
The front controller reference of this command.
Command
  name : String
The command's type name.
Command
  value : *
The value of this command.
Command
Public Methods
 MethodDefined By
  
Command(... arguments)
Creates a new Command instance.
Command
  
run(... arguments):void
Run the process.
Command
  
toObject():Object
Returns the Object representation of the instance.
Command
  
toString(verbose:Boolean = false):String
Returns the String representation of this object.
Command
Property Detail
channelproperty
public var channel:String

The channel of this command.

controllerproperty 
controller:FrontController

The front controller reference of this command. If the controller property isn't define the internal FrontController defines with the channel property of the command is used.


Implementation
    public function get controller():FrontController
    public function set controller(value:FrontController):void
nameproperty 
public var name:String

The command's type name.

valueproperty 
public var value:*

The value of this command.

Constructor Detail
Command()Constructor
public function Command(... arguments)

Creates a new Command instance. 

Example :

         var c1:Command = new Command() ;
         var c2:Command = new Command([name:String [, value:, channel:String]]]) ;
         var c3:Command = new Command([initObject:Object]) ; 
         

Parameters
... arguments
Method Detail
run()method
public function run(... arguments):void

Run the process.

Parameters

... arguments

toObject()method 
public function toObject():Object

Returns the Object representation of the instance.

Returns
Object — the Object representation of the instance.
toString()method 
public function toString(verbose:Boolean = false):String

Returns the String representation of this object.

Parameters

verbose:Boolean (default = false)

Returns
String — the String representation of this object.