| Package | com.degrafa.triggers |
| Class | public class Trigger |
| Inheritance | Trigger DegrafaObject |
| Subclasses | EventTrigger, PropertyTrigger |
| Property | Defined by | ||
|---|---|---|---|
![]() | document : Object
The MXML document that created this object.
| DegrafaObject | |
![]() | enableEvents : Boolean
Enable events for this object.
| DegrafaObject | |
![]() | hasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
| DegrafaObject | |
![]() | id : String
The identifier used by document to refer to this object.
| DegrafaObject | |
![]() | isInitialized : Boolean | DegrafaObject | |
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
![]() | objectBindings : Array | DegrafaObject | |
![]() | parent : IDegrafaObject
The current degrafa object parent.
| DegrafaObject | |
| ruleFunction : Function
Function that gets evaluated on the event trigger and
if true the state change will take place.
| Trigger | ||
| setState : String | Trigger | ||
| source : IEventDispatcher
The source of the property or event we want to be notified about.
| Trigger | ||
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
| triggerParent : IDegrafaStateClient
The parent for this trigger.
| Trigger | ||
| Property | Defined by | ||
|---|---|---|---|
![]() | eventDispatcher : EventDispatcher
EventDispatcher instance for this object.
| DegrafaObject | |
| _ruleFunction : Function | Trigger | ||
| Method | Defined by | ||
|---|---|---|---|
|
Trigger()
Constructor.
| Trigger | ||
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
| DegrafaObject | |
![]() |
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
| DegrafaObject | |
![]() |
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
| DegrafaObject | |
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| DegrafaObject | |
![]() |
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
| DegrafaObject | |
![]() |
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
| DegrafaObject | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| DegrafaObject | |
![]() |
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
| DegrafaObject | |
| Method | Defined by | ||
|---|---|---|---|
|
clearTrigger():void
Clears the trigger overrideen by subclasses.
| Trigger | ||
|
initTrigger():void
Inits the trigger overrideen by subclasses.
| Trigger | ||
| _ruleFunction | property |
protected var _ruleFunction:Function
| ruleFunction | property |
ruleFunction:Function [read-write]Function that gets evaluated on the event trigger and if true the state change will take place. The default for any evaluation if no rules exist is true The arguments passed to the function call are: 1 : the event the trigger received. 2 : the trigger.
Implementation public function get ruleFunction():Function
public function set ruleFunction(value:Function):void
| setState | property |
setState:String [read-write]Implementation
public function get setState():String
public function set setState(value:String):void
| source | property |
source:IEventDispatcher [read-write]The source of the property or event we want to be notified about. Any valid IEventDispatcher.
Implementation public function get source():IEventDispatcher
public function set source(value:IEventDispatcher):void
| triggerParent | property |
triggerParent:IDegrafaStateClient [read-write]The parent for this trigger. A valide IDegrafaStateClient.
Implementation public function get triggerParent():IDegrafaStateClient
public function set triggerParent(value:IDegrafaStateClient):void
| Trigger | () | constructor |
public function Trigger()Constructor.
| clearTrigger | () | method |
protected function clearTrigger():voidClears the trigger overrideen by subclasses.
| initTrigger | () | method |
protected function initTrigger():voidInits the trigger overrideen by subclasses.