Packagecom.degrafa.triggers
Classpublic class PropertyTrigger
InheritancePropertyTrigger Inheritance Trigger Inheritance DegrafaObject
ImplementsITrigger

Used for notification of a property change on a source object.



Public Properties
 PropertyDefined by
  autoRestoreState : Boolean
If true will set the state to the old state when rule test is false.
PropertyTrigger
 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
  property : String
The property on the source to be watched for changes.
PropertyTrigger
  propertyValue : String
Property value is used as an initial rule and is optional when set the value being set on the target property must be equal to this value before the trigger will occure.
PropertyTrigger
 InheritedruleFunction : Function
Function that gets evaluated on the event trigger and if true the state change will take place.
Trigger
 InheritedsetState : String
Trigger
 Inheritedsource : 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
 InheritedtriggerParent : IDegrafaStateClient
The parent for this trigger.
Trigger
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
 Inherited_ruleFunction : Function
Trigger
Public Methods
 MethodDefined by
  
Constructor.
PropertyTrigger
 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 ChangeWatcher for the property on the source specified.
PropertyTrigger
  
initTrigger():void
Sets up a ChangeWatcher for the property on the source specified.
PropertyTrigger
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
autoRestoreStateproperty
autoRestoreState:Boolean  [read-write]

If true will set the state to the old state when rule test is false.

Implementation
    public function get autoRestoreState():Boolean
    public function set autoRestoreState(value:Boolean):void
propertyproperty 
property:String  [read-write]

The property on the source to be watched for changes.

Implementation
    public function get property():String
    public function set property(value:String):void
propertyValueproperty 
propertyValue:String  [read-write]

Property value is used as an initial rule and is optional when set the value being set on the target property must be equal to this value before the trigger will occure. If not set this test is ignored.

Implementation
    public function get propertyValue():String
    public function set propertyValue(value:String):void
Constructor detail
PropertyTrigger()constructor
public function PropertyTrigger()

Constructor.

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

Clears the ChangeWatcher for the property on the source specified.

initTrigger()method 
protected override function initTrigger():void

Sets up a ChangeWatcher for the property on the source specified.