| Package | com.asfusion.mate.actionLists |
| Class | public class Scope |
| Implements | IScope |
| Subclasses | MessageScope, ServiceScope |
IActionList.
It represents the running scope of a IActionList.
The IActionList and its actions share this object to transfer data
between them.
| Property | Defined by | ||
|---|---|---|---|
| currentEvent : Event
Current Event, different from the original event when
a sub-action-list is running.
| Scope | ||
| currentTarget : Object
The current target that is using this scope.
| Scope | ||
| data : Object
Data Object (holder for custom data)
| Scope | ||
| dispatcher : IEventDispatcher
Instance of the
IEventDispatcher that will be used to dispatch events
or to register to events. | Scope | ||
| event : Event
Original Event that triggered the
IActionList. | Scope | ||
| eventMap : IEventMap
Instance of the
EventMap where this scope lives. | Scope | ||
| lastReturn : *
return from the last
IAction run
| Scope | ||
| owner : IActionList
The
IActionList that created this scope. | Scope | ||
| running : Boolean = true
Flag that indicates whether
IActionList is running or not. | Scope | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor
| Scope | ||
|
errorString():String
Retuns the default error string to be used by the debugger.
| Scope | ||
|
getCurrentTarget():Object
Returns the current target that is using this scope.
| Scope | ||
|
getDocument():Object
A reference to the document object associated with this
ILoggerProvider. | Scope | ||
|
Returns an
IMateLogger used to log errors. | Scope | ||
|
Returns an instance of
IMateManager used to get the logger and dispatcher. | Scope | ||
|
isRunning():Boolean
Returns a boolean indicating if the
IActionList is running or not. | Scope | ||
|
stopRunning():void
Stops the
IActionList flow. | Scope | ||
| currentEvent | property |
public var currentEvent:EventCurrent Event, different from the original event when a sub-action-list is running.
| currentTarget | property |
currentTarget:Object [read-write]
The current target that is using this scope.
This target is usually set by the IActionList before
calling trigger on its actions.
public function get currentTarget():Object
public function set currentTarget(value:Object):void
| data | property |
data:Object [read-write]Data Object (holder for custom data)
Implementation public function get data():Object
public function set data(value:Object):void
| dispatcher | property |
dispatcher:IEventDispatcher [read-write]
Instance of the IEventDispatcher that will be used to dispatch events
or to register to events.
public function get dispatcher():IEventDispatcher
public function set dispatcher(value:IEventDispatcher):void
| event | property |
event:Event [read-write]
Original Event that triggered the IActionList.
public function get event():Event
public function set event(value:Event):void
| eventMap | property |
eventMap:IEventMap [read-write]
Instance of the EventMap where this scope lives.
public function get eventMap():IEventMap
public function set eventMap(value:IEventMap):void
| lastReturn | property |
lastReturn:* [read-write]
return from the last IAction run
public function get lastReturn():*
public function set lastReturn(value:*):void
| logger | property |
mate var logger:IMateLogger
An IMateLogger used to log errors.
Similar to Flex ILogger
| manager | property |
mate var manager:IMateManager
Instance of IMateManager used to get the logger and dispatcher.
| owner | property |
owner:IActionList [read-write]
The IActionList that created this scope.
public function get owner():IActionList
public function set owner(value:IActionList):void
| running | property |
public var running:Boolean = true
Flag that indicates whether IActionList is running or not.
| Scope | () | constructor |
public function Scope(event:Event, active:Boolean, map:IEventMap, inheritScope:IScope = null)Constructor
Parametersevent:Event |
|
active:Boolean |
|
map:IEventMap |
|
inheritScope:IScope (default = null) |
| errorString | () | method |
public function errorString():StringRetuns the default error string to be used by the debugger.
ReturnsString |
| getCurrentTarget | () | method |
public function getCurrentTarget():Object
Returns the current target that is using this scope.
This target is usually set by the IActionList before
calling trigger on its actions.
Object |
| getDocument | () | method |
public function getDocument():Object
A reference to the document object associated with this ILoggerProvider.
A document object is an Object at the top of the hierarchy of a Flex
application, MXML component, or AS component.
Object |
| getLogger | () | method |
public function getLogger():IMateLogger
Returns an IMateLogger used to log errors.
Similar to Flex ILogger
IMateLogger |
| getManager | () | method |
public function getManager():IMateManager
Returns an instance of IMateManager used to get the logger and dispatcher.
IMateManager |
| isRunning | () | method |
public function isRunning():Boolean
Returns a boolean indicating if the IActionList is running or not.
Boolean |
| stopRunning | () | method |
public function stopRunning():void
Stops the IActionList flow.
The next IAction will be not be called.