패키지 | mx.states |
클래스 | public class SetProperty |
상속 | SetProperty OverrideBase OnDemandEventDispatcher Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
overrides
property of the State class.
MXML 구문MXML 구문 숨기기The <mx:SetProperty>
tag
has the following attributes:
<mx:SetProperty Properties name="null" target="null" value="undefined" />
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
name : String
The name of the property to change. | SetProperty | ||
target : Object
The object containing the property to be changed. | SetProperty | ||
value : *
The new value for the property. | SetProperty | ||
valueFactory : IDeferredInstance [쓰기 전용]
An optional write-only property from which to obtain a shared value. | SetProperty |
메서드 | 정의 주체 | ||
---|---|---|---|
SetProperty(target:Object = null, name:String = null, value:*, valueFactory:IDeferredInstance = null)
Constructor. | SetProperty | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | OnDemandEventDispatcher | ||
[재정의]
Applies the override. | SetProperty | ||
Dispatches an event into the event flow. | OnDemandEventDispatcher | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | OnDemandEventDispatcher | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
IOverride interface method; this class implements it as an empty method. | OverrideBase | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
[재정의]
Removes the override. | SetProperty | ||
Removes a listener from the EventDispatcher object. | OnDemandEventDispatcher | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | OnDemandEventDispatcher |
name | 속성 |
public var name:String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The name of the property to change. You must set this property, either in the SetProperty constructor or by setting the property value directly.
target | 속성 |
public var target:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The object containing the property to be changed.
If the property value is null
, Flex uses the
immediate parent of the State object.
기본값: null.
value | 속성 |
valueFactory | 속성 |
valueFactory:IDeferredInstance
[쓰기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 9, AIR 1.1 |
An optional write-only property from which to obtain a shared value. This is primarily used when this override's value is shared by multiple states or state groups.
기본값: undefined.
구현
public function set valueFactory(value:IDeferredInstance):void
SetProperty | () | 생성자 |
public function SetProperty(target:Object = null, name:String = null, value:*, valueFactory:IDeferredInstance = null)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
매개 변수target:Object (default = null ) — The object whose property is being set.
By default, Flex uses the immediate parent of the State object.
| |
name:String (default = null ) — The property to set.
| |
value:* (default = NaN ) — The value of the property in the view state.
| |
valueFactory:IDeferredInstance (default = null ) — An optional write-only property from which to obtain
a shared value. This is primarily used when this override's value is
shared by multiple states or state groups.
|
apply | () | 메서드 |
override public function apply(parent:UIComponent):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Applies the override. Flex retains the original value, so that it can
restore the value later in the remove()
method.
This method is called automatically when the state is entered. It should not be called directly.
매개 변수
parent:UIComponent — The parent of the state object containing this override.
The override should use this as its target if an explicit target was
not specified.
|
remove | () | 메서드 |
override public function remove(parent:UIComponent):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Removes the override. The value remembered in the apply()
method is restored.
This method is called automatically when the state is entered. It should not be called directly.
매개 변수
parent:UIComponent — The parent of the state object containing this override.
The override should use this as its target if an explicit target was
not specified.
|
Tue Jun 12 2018, 03:17 PM Z