Package | com.asfusion.mate.actions |
Class | public class CallBack |
Inheritance | CallBack BaseAction AbstractAction |
Implements | IAction |
IActionList
tag and the list is executed,
CallBack
will call the function specified in the method
attribute on the target of the event.
You can pass arguments to this function that come from a variety of sources, such as the event itself,
a server result object, or any other value.
Property | Defined by | ||
---|---|---|---|
arguments : *
The property
arguments allows you to pass an Object or an Array of objects when calling
the function defined in the property method . | CallBack | ||
method : String
The function to call on the target object.
| CallBack | ||
properties : ArrayProperties allows you to add properties to the currentInstance . | BaseAction | ||
targetId : String
This tag will run if any of the following statements is true:
If the id of the target is null.
| CallBack |
Method | Defined by | ||
---|---|---|---|
The last method that
trigger calls. | AbstractAction | ||
The first method that
trigger calls. | CallBack | ||
Where all the action occurs.
| CallBack | ||
setProperties(scope:IScope):void
Where all the properties are set into the
currentInstance . | BaseAction |
arguments | property |
arguments:*
[read-write]
The property arguments
allows you to pass an Object or an Array of objects when calling
the function defined in the property method
.
You can use an array to pass multiple arguments or use a simple Object if the signature of the
method
has only one parameter.
The default value is undefined
.
public function get arguments():*
public function set arguments(value:*):void
method | property |
method:String
[read-write]
The function to call on the target object. Target is the event.target
object.
The default value is null
.
public function get method():String
public function set method(value:String):void
targetId | property |
targetId:String
[read-write]
This tag will run if any of the following statements is true:
If the id of the target is null.
If the target does not have a property id.
If the targetId is null.
If the id of the target (event.target.id
) matches the targetId.
Note:Target is the event.target
object.
The default value is null
.
public function get targetId():String
public function set targetId(value:String):void
prepare | () | method |
protected override function prepare(scope:IScope):void
The first method that trigger
calls.
Usually, this is where the currentInstance
is created or set if needed.
In this method you can also perform any code that must be done first.
scope:IScope |
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 |