Packagecom.degrafa.triggers
Classpublic class Trigger
InheritanceTrigger Inheritance DegrafaObject
SubclassesEventTrigger, PropertyTrigger

Trigger is the base class that other triggers extend from.



Public Properties
 PropertyDefined by
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 InheritedhasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
DegrafaObject
 Inheritedid : String
The identifier used by document to refer to this object.
DegrafaObject
 InheritedisInitialized : Boolean
DegrafaObject
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedobjectBindings : Array
DegrafaObject
 Inheritedparent : 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
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  triggerParent : IDegrafaStateClient
The parent for this trigger.
Trigger
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
  _ruleFunction : Function
Trigger
Public Methods
 MethodDefined by
  
Constructor.
Trigger
 Inherited
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
 Inherited
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
DegrafaObject
 Inherited
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
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
DegrafaObject
 Inherited
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
DegrafaObject
 Inherited
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
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
DegrafaObject
 Inherited
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
Protected Methods
 MethodDefined by
  
clearTrigger():void
Clears the trigger overrideen by subclasses.
Trigger
  
initTrigger():void
Inits the trigger overrideen by subclasses.
Trigger
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
_ruleFunctionproperty
protected var _ruleFunction:Function
ruleFunctionproperty 
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
setStateproperty 
setState:String  [read-write]Implementation
    public function get setState():String
    public function set setState(value:String):void
sourceproperty 
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
triggerParentproperty 
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
Constructor detail
Trigger()constructor
public function Trigger()

Constructor.

Method detail
clearTrigger()method
protected function clearTrigger():void

Clears the trigger overrideen by subclasses.

initTrigger()method 
protected function initTrigger():void

Inits the trigger overrideen by subclasses.