| Package | fin.desktop.events |
| Class | public class DesktopEventManager |
| Inheritance | DesktopEventManager Object |
| Subclasses | Application, Window |
| Property | Defined By | ||
|---|---|---|---|
| _connection : DesktopConnection | DesktopEventManager | ||
| _defaultPayload : Object | DesktopEventManager | ||
| _eventDispatcher : EventDispatcher | DesktopEventManager | ||
| _eventTopic : String | DesktopEventManager | ||
| Method | Defined By | ||
|---|---|---|---|
DesktopEventManager(eventTopic:String) | DesktopEventManager | ||
addEventListener(type:String, listener:Function, callback:Function = null, errorCallback:Function = null):void
Registers an event listener on the specified event. | DesktopEventManager | ||
dispatchEvent(event:Event):void | DesktopEventManager | ||
removeEventListener(type:String, listener:Function, callback:Function = null, errorCallback:Function = null):void
Removes a previously registered event listener from the specified event
| DesktopEventManager | ||
| Method | Defined By | ||
|---|---|---|---|
createPayload(object:Object = null):Object | DesktopEventManager | ||
sendMessage(action:String, payload:Object, callback:Function = null, errorCallback:Function = null):void [static] | DesktopEventManager | ||
| _connection | property |
protected var _connection:DesktopConnection| _defaultPayload | property |
protected var _defaultPayload:Object| _eventDispatcher | property |
protected var _eventDispatcher:EventDispatcher| _eventTopic | property |
protected var _eventTopic:String| DesktopEventManager | () | Constructor |
public function DesktopEventManager(eventTopic:String)eventTopic:String |
| addEventListener | () | method |
public function addEventListener(type:String, listener:Function, callback:Function = null, errorCallback:Function = null):voidRegisters an event listener on the specified event.
Parameters
type:String — Event type
| |
listener:Function — A listener that is called whenever an event of the specified type occurs
| |
callback:Function (default = null) — A function that is called if the method succeeds
| |
errorCallback:Function (default = null) — A function that is called if the method fails
|
| createPayload | () | method |
protected function createPayload(object:Object = null):ObjectParameters
object:Object (default = null) |
Object |
| dispatchEvent | () | method |
public function dispatchEvent(event:Event):voidParameters
event:Event |
| removeEventListener | () | method |
public function removeEventListener(type:String, listener:Function, callback:Function = null, errorCallback:Function = null):voidRemoves a previously registered event listener from the specified event
Parameters
type:String — Event type
| |
listener:Function — A listener to remove
| |
callback:Function (default = null) — A function that is called if the method succeeds
| |
errorCallback:Function (default = null) — A function that is called if the method fails
|
| sendMessage | () | method |
protected static function sendMessage(action:String, payload:Object, callback:Function = null, errorCallback:Function = null):voidParameters
action:String | |
payload:Object | |
callback:Function (default = null) | |
errorCallback:Function (default = null) |