패키지 | mx.events |
클래스 | public class TreeEvent |
상속 | TreeEvent Event Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
animate : Boolean
Whether to animate an opening or closing operation; used for
ITEM_OPENING type events only. | TreeEvent | ||
bubbles : Boolean [읽기 전용]
이벤트가 버블링 이벤트인지 여부를 나타냅니다. | Event | ||
cancelable : Boolean [읽기 전용]
해당 이벤트와 연관된 비헤이비어를 차단할 수 있는지 여부를 나타냅니다. | Event | ||
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
currentTarget : Object [읽기 전용]
이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다. | Event | ||
dispatchEvent : Boolean
Whether to dispatch an event (ITEM_OPEN or
ITEM_CLOSE) after the open or close animation
is complete. | TreeEvent | ||
eventPhase : uint [읽기 전용]
이벤트 흐름에서 현재 단계입니다. | Event | ||
item : Object
Storage for the item property. | TreeEvent | ||
itemRenderer : IListItemRenderer
The ListItemRenderer for the node that closed or opened. | TreeEvent | ||
opening : Boolean
Used for an ITEM_OPENING type events only. | TreeEvent | ||
target : Object [읽기 전용]
이벤트 대상입니다. | Event | ||
triggerEvent : Event
The low level MouseEvent or KeyboardEvent that triggered this
event or null if this event was triggered programatically. | TreeEvent | ||
type : String [읽기 전용]
이벤트 유형입니다. | Event |
메서드 | 정의 주체 | ||
---|---|---|---|
TreeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, item:Object = null, itemRenderer:IListItemRenderer = null, triggerEvent:Event = null)
Constructor. | TreeEvent | ||
Event 하위 클래스의 인스턴스를 복제합니다. | Event | ||
사용자 정의 ActionScript 3.0 Event 클래스에서 toString() 메서드를 구현하기 위한 유틸리티 함수입니다. | Event | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
이벤트에서 preventDefault() 메서드가 호출되었는지 여부를 확인합니다. | Event | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
이벤트의 기본 비헤이비어를 취소할 수 있는 경우, 그 비헤이비어를 취소합니다. | Event | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
이벤트 흐름에서 현재 노드 및 그 후속 노드에 있는 모든 이벤트 리스너가 처리되지 않도록 합니다. | Event | ||
이벤트 흐름에서 현재 노드의 후속 노드에 있는 모든 이벤트 리스너가 처리되지 않도록 합니다. | Event | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
Event 객체의 속성이 모두 포함된 문자열을 반환합니다. | Event | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
상수 | 정의 주체 | ||
---|---|---|---|
ITEM_CLOSE : String = "itemClose" [정적]
The TreeEvent.ITEM_CLOSE event type constant indicates that a tree
branch closed or collapsed. | TreeEvent | ||
ITEM_OPEN : String = "itemOpen" [정적]
The TreeEvent.ITEM_OPEN event type constant indicates that a tree
branch opened or expanded. | TreeEvent | ||
ITEM_OPENING : String = "itemOpening" [정적]
The TreeEvent.ITEM_OPENING event type constant is dispatched immediately
before a tree opens or closes. | TreeEvent |
animate | 속성 |
public var animate:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Whether to animate an opening or closing operation; used for ITEM_OPENING type events only.
dispatchEvent | 속성 |
public var dispatchEvent:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Whether to dispatch an event (ITEM_OPEN
or
ITEM_CLOSE
) after the open or close animation
is complete. Used for ITEM_OPENING type events only.
item | 속성 |
public var item:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Storage for the item property.
If you populate the Tree from XML data, access
the properties for the node as
event.item.@attribute_name
.
itemRenderer | 속성 |
public var itemRenderer:IListItemRenderer
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The ListItemRenderer for the node that closed or opened.
opening | 속성 |
public var opening:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Used for an ITEM_OPENING
type events only.
Indicates whether the item
is opening true
, or closing false
.
triggerEvent | 속성 |
public var triggerEvent:Event
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The low level MouseEvent or KeyboardEvent that triggered this
event or null
if this event was triggered programatically.
TreeEvent | () | 생성자 |
public function TreeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, item:Object = null, itemRenderer:IListItemRenderer = null, triggerEvent:Event = null)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor. Normally called by the Flex Tree control; not used in application code.
매개 변수type:String — The event type; indicates the action that caused the event.
| |
bubbles:Boolean (default = false ) — Specifies whether the event can bubble
up the display list hierarchy.
| |
cancelable:Boolean (default = false ) — Specifies whether the behavior associated with the event
can be prevented.
| |
item:Object (default = null ) — The Tree node (item) to which this event applies.
| |
itemRenderer:IListItemRenderer (default = null ) — The item renderer object for the cell.
| |
triggerEvent:Event (default = null ) — If the node opened or closed in response to a
user action, indicates the type of input action.
|
ITEM_CLOSE | 상수 |
public static const ITEM_CLOSE:String = "itemClose"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The TreeEvent.ITEM_CLOSE event type constant indicates that a tree branch closed or collapsed.
The properties of the event object for this event type have the following values. Not all properties are meaningful for all kinds of events. See the detailed property descriptions for more information.
Property | Value |
---|---|
itemRenderer | The ListItemRenderer for the node that closed |
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
triggerEvent | If the node closed in response to a user action, identifies it as a keyboard action or a mouse action. |
item | the Tree item (node) that closed |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
type | TreeEvent.ITEM_CLOSE |
ITEM_OPEN | 상수 |
public static const ITEM_OPEN:String = "itemOpen"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The TreeEvent.ITEM_OPEN event type constant indicates that a tree branch opened or expanded.
The properties of the event object for this event type have the following values. Not all properties are meaningful for all kinds of events. See the detailed property descriptions for more information.
Property | Value |
---|---|
itemRenderer | The ListItemRenderer for the item (node) that opened |
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
triggerEvent | If the item (node) opened in response to a user action, identifies it as a keyboard action or a mouse action. |
item | the Tree node that opened. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
type | TreeEvent.ITEM_OPEN |
ITEM_OPENING | 상수 |
public static const ITEM_OPENING:String = "itemOpening"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The TreeEvent.ITEM_OPENING event type constant is dispatched immediately before a tree opens or closes.
The properties of the event object for this event type have the following values. Not all properties are meaningful for all kinds of events. See the detailed property descriptions for more information.
Property | Value |
---|---|
animate | Whether to animate the opening or closing operation. |
bubbles | false |
cancelable | true |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event
listener, myButton is the value of the currentTarget . |
dispatchEvent | Whether to dispatch an
ITEM_OPEN or ITEM_CLOSE event
after the open or close animation is complete. true |
itemRenderer | The ListItemRenderer for the item (node) that opened |
item | the Tree node that opened. |
opening | true if the item is opening, false if it is closing. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
triggerEvent | If the item opened in response to a user action, identifies it as a keyboard action or a mouse action. |
type | TreeEvent.ITEM_OPENING |
Tue Jun 12 2018, 03:17 PM Z