| Package | com.degrafa.triggers |
| Class | public class PropertyTrigger |
| Inheritance | PropertyTrigger Trigger DegrafaObject |
| Implements | ITrigger |
| Property | Defined by | ||
|---|---|---|---|
| autoRestoreState : Boolean
If true will set the state to the old state
when rule test is false.
| PropertyTrigger | ||
![]() | 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 | |
| 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 | ||
![]() | 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 | |
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| PropertyTrigger | ||
![]() |
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 ChangeWatcher for the property on the source specified.
| PropertyTrigger | ||
|
initTrigger():void
Sets up a ChangeWatcher for the property on the source specified.
| PropertyTrigger | ||
| autoRestoreState | property |
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
| property | property |
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
| propertyValue | property |
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
| PropertyTrigger | () | constructor |
public function PropertyTrigger()Constructor.
| clearTrigger | () | method |
protected override function clearTrigger():voidClears the ChangeWatcher for the property on the source specified.
| initTrigger | () | method |
protected override function initTrigger():voidSets up a ChangeWatcher for the property on the source specified.