Package | com.asfusion.mate.actions |
Class | public class ListenerInjector |
Inheritance | ListenerInjector AbstractAction |
Implements | IAction |
Property | Defined by | ||
---|---|---|---|
dispatcher : Object
Event Dispatcher to which we will register to listen to events.
| ListenerInjector | ||
eventType : String
The type of event that we want to register to listen to.
| ListenerInjector | ||
method : String
The listener function that processes the event.
| ListenerInjector | ||
priority : int
The priority level of the event listener.
| ListenerInjector | ||
targetId : String
This tag will run if any of the following statements is true:
If the targetId is null.
| ListenerInjector | ||
useCapture : Boolean
Determines whether the listener works in the capture phase or the target and bubbling phases.
| ListenerInjector | ||
useWeakReference : Boolean
Determines whether the reference to the listener is strong or weak.
| ListenerInjector |
Method | Defined by | ||
---|---|---|---|
The last method that
trigger calls. | AbstractAction | ||
The first method that
trigger calls. | AbstractAction | ||
Where all the action occurs.
| ListenerInjector | ||
setProperties(scope:IScope):void
Where all the properties are set into the
currentInstance . | AbstractAction |
dispatcher | property |
dispatcher:Object
[read-write]Event Dispatcher to which we will register to listen to events. It can be an ISmartObject or an IEventDispatcher.
Implementation public function get dispatcher():Object
public function set dispatcher(value:Object):void
eventType | property |
eventType:String
[read-write]The type of event that we want to register to listen to.
Implementation public function get eventType():String
public function set eventType(value:String):void
method | property |
method:String
[read-write]The listener function that processes the event. This function must accept an Event object as its only parameter and must return nothing
Implementation public function get method():String
public function set method(value:String):void
priority | property |
priority:int
[read-write]The priority level of the event listener. The priority is designated by a signed 32-bit integer. The higher the number, the higher the priority. All listeners with priority n are processed before listeners of priority n-1. If two or more listeners share the same priority, they are processed in the order in which they were added. The default priority is 0.
Implementation public function get priority():int
public function set priority(value:int):void
targetId | property |
targetId:String
[read-write]This tag will run if any of the following statements is true: If the targetId is null. If the id of the target matches the targetId. Note:Target is the instance of the target class.
The default value is null
.
public function get targetId():String
public function set targetId(value:String):void
useCapture | property |
useCapture:Boolean
[read-write]Determines whether the listener works in the capture phase or the target and bubbling phases. If useCapture is set to true, the listener processes the event only during the capture phase and not in the target or bubbling phase. If useCapture is false, the listener processes the event only during the target or bubbling phase.
Implementation public function get useCapture():Boolean
public function set useCapture(value:Boolean):void
useWeakReference | property |
useWeakReference:Boolean
[read-write]Determines whether the reference to the listener is strong or weak. A strong reference prevents your listener from being garbage-collected. A weak reference does not.
The default value is true
.
public function get useWeakReference():Boolean
public function set useWeakReference(value:Boolean):void
run | () | method |
protected override function run(scope:IScope):void
Where all the action occurs. At this moment, the currentInstance
is already instantiated and all the properties are already set.
scope:IScope |