패키지 | mx.states |
클래스 | public class AddItems |
상속 | AddItems OverrideBase OnDemandEventDispatcher Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
기본 MXML 속성itemsFactory
속성 | 정의 주체 | ||
---|---|---|---|
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
creationPolicy : String
The creation policy for the items. | AddItems | ||
destination : Object
The object relative to which the child is added. | AddItems | ||
destructionPolicy : String
The destruction policy for the items. | AddItems | ||
isArray : Boolean = false
Denotes whether or not the collection represented by the
target property is to be treated as a single array instance
instead of a collection of items (the default). | AddItems | ||
isStyle : Boolean = false
Denotes whether or not the collection represented by the
target property is a style. | AddItems | ||
items : *
The items to be added. | AddItems | ||
itemsFactory : mx.core:ITransientDeferredInstance
The factory that creates the items. | AddItems | ||
position : String = "last"
The position of the child in the display list, relative to the
object specified by the relativeTo property. | AddItems | ||
propertyName : String
The name of the Array property that is being modified. | AddItems | ||
relativeTo : Object
The object relative to which the child is added. | AddItems | ||
vectorClass : Class
When the collection represented by the target property is a
Vector, vectorClass is the type of the target. | AddItems |
메서드 | 정의 주체 | ||
---|---|---|---|
AddItems()
Constructor. | AddItems | ||
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. | AddItems | ||
Creates the items instance from the factory. | AddItems | ||
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. | AddItems | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
[재정의]
Removes the override. | AddItems | ||
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 |
상수 | 정의 주체 | ||
---|---|---|---|
AFTER : String = "after" [정적]
Documentation is not currently available. | AddItems | ||
BEFORE : String = "before" [정적]
Documentation is not currently available. | AddItems | ||
FIRST : String = "first" [정적]
Documentation is not currently available. | AddItems | ||
LAST : String = "last" [정적]
Documentation is not currently available. | AddItems |
creationPolicy | 속성 |
creationPolicy:String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The creation policy for the items.
This property determines when the itemsFactory
will create
the instance of the items.
Flex uses this property only if you specify an itemsFactory
property.
The following values are valid:
Value | Meaning |
---|---|
auto | (default)Create the instance the first time it is needed. |
all | Create the instance when the application started up. |
none | Do not automatically create the instance.
You must call the createInstance() method to create
the instance. |
기본값: "auto".
구현
public function get creationPolicy():String
public function set creationPolicy(value:String):void
destination | 속성 |
public var destination:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The object relative to which the child is added. This property is used
in conjunction with the position
property.
This property is optional; if
you omit it, Flex uses the immediate parent of the State
object, that is, the component that has the states
property, or <mx:states>
tag that specifies the State
object.
destructionPolicy | 속성 |
destructionPolicy:String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The destruction policy for the items.
This property determines when the itemsFactory
will destroy
the deferred instances it manages. By default once instantiated, all
instances are cached (destruction policy of 'never').
Flex uses this property only if you specify an itemsFactory
property.
The following values are valid:
Value | Meaning |
---|---|
never | (default)Once created never destroy the instance. |
auto | Destroy the instance when the override no longer applies. |
기본값: "never".
구현
public function get destructionPolicy():String
public function set destructionPolicy(value:String):void
isArray | 속성 |
public var isArray:Boolean = false
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Denotes whether or not the collection represented by the target property is to be treated as a single array instance instead of a collection of items (the default).
기본값: false.
isStyle | 속성 |
public var isStyle:Boolean = false
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Denotes whether or not the collection represented by the target property is a style.
기본값: false.
items | 속성 |
items:*
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The items to be added.
If you set this property, the items are created at app startup.
Setting this property is equivalent to setting a itemsFactory
property with a creationPolicy
of "all"
.
Do not set this property if you set the itemsFactory
property.
구현
public function get items():*
public function set items(value:any):void
itemsFactory | 속성 |
itemsFactory:mx.core:ITransientDeferredInstance
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The factory that creates the items.
If you set this property, the items are instantiated at the time
determined by the creationPolicy
property.
Do not set this property if you set the items
property.
This propety is the AddItems
class default property.
Setting this property with a creationPolicy
of "all"
is equivalent to setting a items
property.
구현
public function get itemsFactory():mx.core:ITransientDeferredInstance
public function set itemsFactory(value:mx.core:ITransientDeferredInstance):void
position | 속성 |
public var position:String = "last"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The position of the child in the display list, relative to the
object specified by the relativeTo
property.
기본값: AddItems.LAST.
propertyName | 속성 |
public var propertyName:String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The name of the Array property that is being modified. If the destination
property is a Group or Container, this property is optional. If not defined, the
items will be added as children of the Group/Container.
relativeTo | 속성 |
public var relativeTo:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
The object relative to which the child is added. This property is only
used when the position
property is AddItems.BEFORE
or AddItems.AFTER
.
vectorClass | 속성 |
public var vectorClass:Class
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4.5 |
런타임 버전: | Flash Player 10, AIR 1.5 |
When the collection represented by the target property is a Vector, vectorClass is the type of the target. It is used to initialize the target property.
AddItems | () | 생성자 |
public function AddItems()
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Constructor.
apply | () | 메서드 |
override public function apply(parent:UIComponent):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
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.
|
createInstance | () | 메서드 |
public function createInstance():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Creates the items instance from the factory.
You must use this method only if you specify a targetItems
property and a creationPolicy
value of "none"
.
Flex automatically calls this method if the creationPolicy
property value is "auto"
or "all"
.
If you call this method multiple times, the items instance is
created only on the first call.
initialize | () | 메서드 |
override public function initialize():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
IOverride interface method; this class implements it as an empty method.
remove | () | 메서드 |
override public function remove(parent:UIComponent):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
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.
|
AFTER | 상수 |
public static const AFTER:String = "after"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Documentation is not currently available.
BEFORE | 상수 |
public static const BEFORE:String = "before"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Documentation is not currently available.
FIRST | 상수 |
public static const FIRST:String = "first"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Documentation is not currently available.
LAST | 상수 |
public static const LAST:String = "last"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Documentation is not currently available.
Tue Jun 12 2018, 03:17 PM Z