패키지 | mx.binding.utils |
클래스 | public class BindingUtils |
상속 | BindingUtils Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
기타 예제
메서드 | 정의 주체 | ||
---|---|---|---|
bindProperty(site:Object, prop:String, host:Object, chain:Object, commitOnly:Boolean = false, useWeakReference:Boolean = false):ChangeWatcher [정적]
Binds a public property, prop on the site
Object, to a bindable property or property chain. | BindingUtils | ||
bindSetter(setter:Function, host:Object, chain:Object, commitOnly:Boolean = false, useWeakReference:Boolean = false):ChangeWatcher [정적]
Binds a setter function, setter, to a bindable property
or property chain. | BindingUtils | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
bindProperty | () | 메서드 |
public static function bindProperty(site:Object, prop:String, host:Object, chain:Object, commitOnly:Boolean = false, useWeakReference:Boolean = false):ChangeWatcher
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Binds a public property, prop
on the site
Object, to a bindable property or property chain.
If a ChangeWatcher instance is successfully created, prop
is initialized to the current value of chain
.
매개 변수
site:Object — The Object defining the property to be bound
to chain .
| |
prop:String — The name of the public property defined in the
site Object to be bound.
The property will receive the current value of chain ,
when the value of chain changes.
| |
host:Object — The object that hosts the property or property chain
to be watched.
The host maintains a list of sites to update
when prop changes.
| |
chain:Object — A value specifying the property or chain to be watched.
Legal values are:
Note: The property or properties named in the | |
commitOnly:Boolean (default = false ) — Set to true if the handler
should be called only on committing change events;
set to false if the handler should be called
on both committing and non-committing change events.
Note: the presence of non-committing change events for a property
is indicated by the [NonCommittingChangeEvent(<event-name>)]
metadata tag.
Typically these tags are used to indicate fine-grained value changes,
such as modifications in a text field prior to confirmation.
| |
useWeakReference:Boolean (default = false ) — Determines whether the reference to site
is strong or weak.
A strong reference (the default) prevents site from being garbage-collected.
A weak reference does not.
Added for Flex 4.
|
ChangeWatcher — A ChangeWatcher instance, if at least one property name has
been specified to the chain argument; null otherwise.
|
bindSetter | () | 메서드 |
public static function bindSetter(setter:Function, host:Object, chain:Object, commitOnly:Boolean = false, useWeakReference:Boolean = false):ChangeWatcher
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Binds a setter function, setter
, to a bindable property
or property chain.
If a ChangeWatcher instance is successfully created,
the setter function is invoked.
The setter must have the following function signature:
function mySetterFunction(object:Object):void { //Do whatever you want with the value of the bound property. }
where object
contains the
current value of chain
.
매개 변수
setter:Function — Setter method to invoke with an argument of the current
value of chain when that value changes.
| |
host:Object — The host of the property.
See the bindProperty() method for more information.
The host maintains a list of setters to update
when prop changes.
| |
chain:Object — The name of the property, or property chain.
See the bindProperty() method for more information.
| |
commitOnly:Boolean (default = false ) — Set to true if the handler should be
called only on committing change events.
See the bindProperty() method for more information.
| |
useWeakReference:Boolean (default = false ) — Determines whether the reference to setter
is strong or weak.
A strong reference (the default) prevents setter from being garbage-collected.
A weak reference does not.
Added for Flex 4.
|
ChangeWatcher — A ChangeWatcher instance, if at least one property name
has been specified to the chain argument; null otherwise.
|
Tue Jun 12 2018, 03:17 PM Z