Field Summary |
public
| bindType: String |
| The binding type - one of the BindType constants
|
|
public
| dataItem: Object |
| the current data item
|
|
public
| defaultValue: Object |
| def value to use if no src value is available
|
|
public static
| Explicit: String |
| Constant - when to update source - only when manually called
|
|
public
| formatter: Object |
| Format objects
|
|
public static
| Immediate: String |
| Constant - when to update source - as soon as the target changes the value
|
|
public
| inverse: Boolean |
| Is the eventHandler triggered in forward(src>tgt) or reverse mode(src
|
|
public
| isDataBound: Boolean |
| whether this instance of a binding is bound to a datasource
|
|
public
| isExecuting: Boolean |
| Are we currently running - to stop recursive trigger
|
|
public static
| logEnabled: Boolean |
| Is logging enabled
|
|
public static
| OneTime: String |
| Constant - BindType - only updates the target when the binding is established.
|
|
public static
| OneWay: String |
| Constant - BindType - only updates the target when the source changes.
|
|
public static
| OnLostFocus: String |
| Constant - when to update source - when the target loses focus
|
|
public
| path: String |
| The (possibly qualified) name of a readable property or method of the incoming event(alias-path)
|
|
public
| property: String |
| The (possibly qualified) name of a writable property or method on the target(alias-property)
|
|
public
| source: Object |
| The object that will be invoked with the path
|
|
public
| sourceEvent: String |
| Event emitted by source that will trigger the eventHandler
|
|
public
| sourceEventName: String |
| An eventEventName that filters the firing of trigger
|
|
public
| status: Number |
| 0-exists,1-attached to target,2-attached to source
|
|
public
| target: Object |
| The object that will be invoked with the property
|
|
public
| targetEvent: String |
| Event emitted by target that will trigger the eventHandler
|
|
public
| targetEventName: String |
| An eventEventName that filters the firing of execute
|
|
public static
| TwoWay: String |
| Constant - BindType - updates the target or the source whenever either changes.
|
|
public
| validator: Object |
| Validate objects
|
|
Constructor |
public
| Binding (
bind: Object)
|
| Construct a new Binding optionally from a Bind definition
|
|
Method Summary |
public static
| addBinding (
target: Object, bind: Object
): Binding |
| This is called from an component or an object when its addXXXBinding method is called it is not called by Flash during buidling a Collection
|
|
public static
| addStaticBinding (
bind: Object
): Binding |
| Creates a binding that simply binds to itself and is fired manually the source will be set dynamically before trigger is called
|
|
public static
| attachBinding (
binding: Binding
): Boolean |
| Attaches a binding to its source
|
|
public static
| cloneBinding (
bind: Object
): Object |
| Creates a new copy of the the bind
|
|
public static
| cloneBindings (
bind: Object
): Object |
| Creates a new copy of the the set of bindings
|
|
public static
| detachBinding (
binding: Binding
): Boolean |
| Detaches a binding from its source
|
|
public
| execute (
dir: Boolean
): Void |
| Triggers or executes the binding
|
|
public static
| getBinding (
target: Object, property: String
): Binding |
| Gets the binding attached to the target property
|
|
public static
| getBindingIndex (
target: Object, property: String
): Number |
| Get the index of a binding in the bindings array
|
|
public
| handleEvent (
e: Event
): Void |
| Internal event handler that may be called by either the source or target objects
|
|
public static
| initBinding (
target: Object, binding: Object
): Object |
| Create a standard field data binding-bind def specs everything but the target -- this is called from UIControl DONT CHANGE!!! assumes we are binding to the modelChanged event of the target and that we will access the event target.data
|
|
public static
| initBindings (
target: Object
): Void |
| Initializes binding on the target
|
|
public static
| refreshFromSources (
target: Object, property: String
): Boolean |
| Force the target to update from its sources Used when the source doesnt emit events
|
|
public static
| refreshTargets (
source: Object
) |
| Forces all targets to get refreshed from this source
|
|
public static
| removeAllBindings (
target: Object
): Void |
| Removes all bindings from the target
|
|
public static
| removeBinding (
target: Object, binding: Binding
): Void |
| Removes a binding from a target
|
|
public
| toString (
): String |
| Summary info
|
|
|
Binding can handle complex paths on both the source and target
"a.b.c['dog'].methodX().y[1].methodZ()"
format value to string / parse string to value
target - the object that will be invoked with the property
property - the (possibly qualified) name of a writable property or method on the target(alias-property)
source - the object that will be invoked with the path
path - the (possibly qualified) name of a readable property or method of the incoming event(alias-path)
sourceEvent - the type of the event in the listener interface that should trigger the targetPropertyPath
sourceEventName - the eventName of the event in the listener interface that should trigger the targetPropertyPath
targetEvent - the type of the event in the listener interface that should trigger the sourcePropertyPath
targetEventName - the eventName of the event in the listener interface that should trigger the sourcePropertyPath
inverse - if set to true the execute will invoke the source and targets in reverse