Packageorg.restfulx.events
Classpublic class CommandExecutionEvent
InheritanceCommandExecutionEvent Inheritance flash.events.Event

Generic execution event (used by commands).



Public Properties
 PropertyDefined by
  data : *
command data
CommandExecutionEvent
  targetServiceId : int
Since we deal with many services commands may need to know which service to delegate low-level behaviour to
CommandExecutionEvent
Public Methods
 MethodDefined by
  
CommandExecutionEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
CommandExecutionEvent
  
dispatch():Boolean
Dispatches current instance of the event using RxCommandsEventDispatcher.
CommandExecutionEvent
Property detail
dataproperty
public var data:*

command data

targetServiceIdproperty 
public var targetServiceId:int

Since we deal with many services commands may need to know which service to delegate low-level behaviour to

Constructor detail
CommandExecutionEvent()constructor
public function CommandExecutionEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)

See also

flash.events.Event
Method detail
dispatch()method
public function dispatch():Boolean

Dispatches current instance of the event using RxCommandsEventDispatcher. Event handlers are typically org.restfulx.controllers.ICommand#execute implementations.

Returns
Boolean — boolean indicating if event was dispatched successfully