| Package | mx.core |
| Class | public class UIComponentDescriptor |
| Inheritance | UIComponentDescriptor ComponentDescriptor Object |
MXML 파일내의 대부분의 태그는, UIComponent object의 트리를 설명하는 것입니다. 예를 들어,<mx:Application> 태그는 UIComponent object를 나타내, 그 child containers와 컨트롤도 모두 UIComponent object입니다.
MXML 컴파일러는, 각각의 MXML 태그를 UIComponentDescriptor 인스턴스에 컴파일 합니다. 엄밀하게는, MXML 컴파일러는 ActionScript 데이터 구조를 자동 생성합니다. 이것은, UIComponentDescriptor object의 트리가 됩니다.
실행시에, Container 클래스의 createComponentsFromDescriptors() Methods는, 컨테이너의 childDescriptors 배열의 UIComponentDescriptor object내의 정보를 사용해, 컨테이너의 아이인 실제의 UIComponent object, 및 한층 더 깊은 자손을 작성합니다. 컨테이너의 property creationPolicy 의 값에 따라서는, 어플리케이션의 기동시에 컴퍼넌트의 일부가 표시될 때, 또는 어플리케이션의 개발자가 수동으로 createComponentsFromDescriptors() Methods를 호출했을 때에, 자손이 작성되는 일이 있습니다.
통상, UIComponentDescriptor 인스턴스를 스스로 작성할 것은 없습니다. Container 클래스의 childDescriptors 배열을 경유해, MXML 컴파일러가 자동 생성한 인스턴스에 액세스 할 수 있습니다.
See also
| property | 정의 | ||
|---|---|---|---|
![]() | constructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor 함수에의 참조입니다.
| Object | |
![]() | document : Object
컴퍼넌트가 작성되는 문서 object에의 참조입니다.
| ComponentDescriptor | |
| effects : Array
MXML 로 지정된, 컴퍼넌트의 effect를 포함한 배열입니다.
| UIComponentDescriptor | ||
![]() | events : Object
MXML 로 지정된, 컴퍼넌트의 event 핸들러의 이름과 값의 페어를 포함한 object입니다.
| ComponentDescriptor | |
![]() | id : String
MXML 로 지정된 컴퍼넌트의 식별자입니다.
| ComponentDescriptor | |
![]() | properties : Object
MXML 로 지정된, 컴퍼넌트의 property의 이름과 값의 페어를 포함한 object입니다.
| ComponentDescriptor | |
![]() | propertiesFactory : Function
MXML 로 지정된, 컴퍼넌트의 property의 이름과 값의 페어를 포함한 object를 돌려주는 함수입니다.
| ComponentDescriptor | |
![]() | prototype : Object
[static]
클래스 또는 함수 object의 prototype object에의 참조입니다.
| Object | |
| stylesFactory : Function
MXML 로 지정된, 컴퍼넌트의 인스턴스 스타일의 이름과 값의 페어를 포함한 object를 작성하는 함수입니다.
| UIComponentDescriptor | ||
![]() | type : Class
MXML 로 지정된 컴퍼넌트의 클래스입니다.
| ComponentDescriptor | |
| Methods | 정의 | ||
|---|---|---|---|
| UIComponentDescriptor (descriptorProperties:Object )
constructor .
| UIComponentDescriptor | ||
![]() | hasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
| Object | |
![]() | invalidateProperties ():void
캐쉬된
properties property를 무효화합니다. | ComponentDescriptor | |
![]() | isPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
| Object | |
![]() | propertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
| Object | |
![]() | setPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
| Object | |
![]() | toString ():String
"ComponentDescriptor_" 및
id property의 값을 포함한 string를 돌려줍니다. | ComponentDescriptor | |
![]() | valueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
| Object | |
| effects | property |
public var effects:Array MXML 로 지정된, 컴퍼넌트의 effect를 포함한 배열입니다.
예를 들어, 다음과 같은 코드를 작성한다고 합니다.
<mx:TextInput showEffect="Fade" hideEffect="Fade"/>
기술자의 effects property는 배열 [ "showEffect", "hideEffect" ] 입니다.
컴퍼넌트에 MXML effect가 지정되어 있지 않은 경우,effects property는 null 가 됩니다.
이 property에는 effect 속성의 값은 지정되고 있지 않습니다. effect는 스타일과 같이 다루어지기 (위해)때문에,stylesFactory property에 포함됩니다. effect 배열은,stylesFactory 목의 스타일이 실제로 effect가 되는지를 추적할 뿐입니다.
Container Methods createComponentsFromDescriptors() 는 이 property를 사용해 EffectManager 에 effect를 등록합니다.
| stylesFactory | property |
public var stylesFactory:Function MXML 로 지정된, 컴퍼넌트의 인스턴스 스타일의 이름과 값의 페어를 포함한 object를 작성하는 함수입니다.
예를 들어, 다음과 같은 코드를 작성한다고 합니다.
<mx:TextInput borderColor="0x888888" color="0xDDDDDD"/>
기술자의 stylesFactory property가 이 함수입니다.
function() :void { this.borderColor = 0x888888; this.color = 0xDDDDDD };
컴퍼넌트 인스턴스에 MXML 스타일이 지정되어 있지 않은 경우,stylesFactory property는 null 가 됩니다.
| UIComponentDescriptor | () | constructor |
public 함수 UIComponentDescriptor(descriptorProperties:Object )constructor .
ParametersdescriptorProperties:Object — UIComponentDescriptor object의 property, 예를 들어 type,id,propertiesFactory,events,stylesFactory,effects 등의 이름과 값의 페어를 포함한 object입니다.
|
코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트
현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/core/UIComponentDescriptor.html