패키지 | mx.events |
클래스 | public class MenuEvent |
상속 | MenuEvent ListEvent Event Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
bubbles : Boolean [읽기 전용]
이벤트가 버블링 이벤트인지 여부를 나타냅니다. | Event | ||
cancelable : Boolean [읽기 전용]
해당 이벤트와 연관된 비헤이비어를 차단할 수 있는지 여부를 나타냅니다. | Event | ||
columnIndex : int
The zero-based index of the column that contains
the item renderer where the event occurred. | ListEvent | ||
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
currentTarget : Object [읽기 전용]
이벤트 리스너를 통해 Event 객체를 처리하고 있는 객체입니다. | Event | ||
eventPhase : uint [읽기 전용]
이벤트 흐름에서 현재 단계입니다. | Event | ||
index : int
The index of the associated menu item within its parent menu or submenu. | MenuEvent | ||
item : Object
The specific item in the dataProvider. | MenuEvent | ||
itemRenderer : IListItemRenderer
The item renderer where the event occurred. | ListEvent | ||
label : String
The label text of the associated menu item. | MenuEvent | ||
menu : Menu
The specific Menu instance associated with the event,
such as the menu or submenu that was hidden or opened. | MenuEvent | ||
menuBar : MenuBar
The MenuBar instance that is the parent of the selected Menu control,
or null when the target Menu control is not parented by a
MenuBar control. | MenuEvent | ||
reason : String
The reason the itemEditEnd event was dispatched. | ListEvent | ||
rowIndex : int
In the zero-based index of the row that contains
the item renderer where the event occured, or for editing events,
the index of the item in the data provider that is being edited. | ListEvent | ||
target : Object [읽기 전용]
이벤트 대상입니다. | Event | ||
type : String [읽기 전용]
이벤트 유형입니다. | Event |
메서드 | 정의 주체 | ||
---|---|---|---|
MenuEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, menuBar:MenuBar = null, menu:Menu = null, item:Object = null, itemRenderer:IListItemRenderer = null, label:String = null, index:int = -1)
Constructor. | MenuEvent | ||
Event 하위 클래스의 인스턴스를 복제합니다. | Event | ||
사용자 정의 ActionScript 3.0 Event 클래스에서 toString() 메서드를 구현하기 위한 유틸리티 함수입니다. | Event | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
이벤트에서 preventDefault() 메서드가 호출되었는지 여부를 확인합니다. | Event | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
이벤트의 기본 비헤이비어를 취소할 수 있는 경우, 그 비헤이비어를 취소합니다. | Event | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
이벤트 흐름에서 현재 노드 및 그 후속 노드에 있는 모든 이벤트 리스너가 처리되지 않도록 합니다. | Event | ||
이벤트 흐름에서 현재 노드의 후속 노드에 있는 모든 이벤트 리스너가 처리되지 않도록 합니다. | Event | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
Event 객체의 속성이 모두 포함된 문자열을 반환합니다. | Event | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
상수 | 정의 주체 | ||
---|---|---|---|
CHANGE : String = "change" [정적]
The MenuEvent.CHANGE event type constant indicates that selection
changed as a result of user interaction. | MenuEvent | ||
ITEM_CLICK : String = "itemClick" [정적]
The MenuEvent.ITEM_CLICK event type constant indicates that the
user selected a menu item. | MenuEvent | ||
ITEM_ROLL_OUT : String = "itemRollOut" [정적]
The MenuEvent.ITEM_ROLL_OUT type constant indicates that
the mouse pointer rolled out of a menu item. | MenuEvent | ||
ITEM_ROLL_OVER : String = "itemRollOver" [정적]
The MenuEvent.ITEM_ROLL_OVER type constant indicates that
the mouse pointer rolled over a menu item. | MenuEvent | ||
MENU_HIDE : String = "menuHide" [정적]
The MenuEvent.MENU_HIDE event type constant indicates that
a menu or submenu closed. | MenuEvent | ||
MENU_SHOW : String = "menuShow" [정적]
The MenuEvent.MENU_SHOW type constant indicates that
the mouse pointer rolled a menu or submenu opened. | MenuEvent |
index | 속성 |
public var index:int
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The index of the associated menu item within its parent menu or submenu. This is -1 for the menuShow and menuHide events.
item | 속성 |
public var item:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The specific item in the dataProvider. This is null for the menuShow and menuHide events.
label | 속성 |
public var label:String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The label text of the associated menu item. This is null for the menuShow and menuHide events.
menu | 속성 |
public var menu:Menu
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The specific Menu instance associated with the event, such as the menu or submenu that was hidden or opened. This property is null if a MenuBar item is dispatching the event.
menuBar | 속성 |
public var menuBar:MenuBar
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The MenuBar instance that is the parent of the selected Menu control, or null when the target Menu control is not parented by a MenuBar control.
MenuEvent | () | 생성자 |
public function MenuEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, menuBar:MenuBar = null, menu:Menu = null, item:Object = null, itemRenderer:IListItemRenderer = null, label:String = null, index:int = -1)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor. Normally called by the Menu object.
매개 변수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 = true ) — Specifies whether the behavior
associated with the event can be prevented.
| |
menuBar:MenuBar (default = null ) — The MenuBar instance that is the parent
of the selected Menu control, or null when the target Menu control
is not parented by a MenuBar control.
| |
menu:Menu (default = null ) — The specific Menu instance associated with the event,
such as the menu or submenu that was hidden or opened. This property
is null if a MenuBar item dispatches the event.
| |
item:Object (default = null ) — The item in the dataProvider of the associated menu item.
| |
itemRenderer:IListItemRenderer (default = null ) — The ListItemRenderer of the associated menu item.
| |
label:String (default = null ) — The label text of the associated menu item.
| |
index:int (default = -1 ) — The index in the menu of the associated menu item.
|
CHANGE | 상수 |
public static const CHANGE:String = "change"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The MenuEvent.CHANGE event type constant indicates that selection changed as a result of user interaction.
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 |
---|---|
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 . |
index | The index in the menu of the selected menu item. |
item | The item in the dataProvider that was selected. |
itemRenderer | The item renderer of the selected menu item. |
label | The label text of the selected menu item. |
menu | The specific Menu instance associated with this event, or
null if a MenuBar item is dispatching the event. |
menuBar | The MenuBar instance that is the parent of the
Menu control, or null if the Menu control is not
parented by a MenuBar control. |
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 | MenuEvent.CHANGE |
ITEM_CLICK | 상수 |
public static const ITEM_CLICK:String = "itemClick"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The MenuEvent.ITEM_CLICK event type constant indicates that the user selected a menu item.
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 |
---|---|
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 . |
index | The index in the menu of the selected menu item. |
item | The item in the dataProvider that was selected. |
itemRenderer | The ListItemRenderer of the selected menu item. |
label | The label text of the selected menu item. |
menu | The specific Menu instance associated with this event, or
null if a MenuBar item is dispatching the event. |
menuBar | The MenuBar instance that is the parent of the
Menu control, or null if the Menu control is not
parented by a MenuBar control. |
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 | MenuEvent.ITEM_CLICK |
ITEM_ROLL_OUT | 상수 |
public static const ITEM_ROLL_OUT:String = "itemRollOut"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The MenuEvent.ITEM_ROLL_OUT type constant indicates that the mouse pointer rolled out of a menu item.
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 |
---|---|
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 . |
index | The index in the menu of the menu item that was rolled out of. |
item | The item in the dataProvider corresponding to the menu item that was rolled out of. |
itemRenderer | The ListItemRenderer of the menu item that was rolled out of. |
label | The label text of the menu item that was rolled out of. |
menu | The specific Menu instance associated with this event, or
null if a MenuBar item is dispatching the event. |
menuBar | The MenuBar instance that is the parent of the
Menu control, or null if the Menu control is not
parented by a MenuBar control. |
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 | MenuEvent.ITEM_ROLL_OUT |
ITEM_ROLL_OVER | 상수 |
public static const ITEM_ROLL_OVER:String = "itemRollOver"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The MenuEvent.ITEM_ROLL_OVER type constant indicates that the mouse pointer rolled over a menu item.
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 |
---|---|
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 . |
index | The index in the menu of the menu item that was rolled over. |
item | The item in the dataProvider associated with the rolled over menu item. |
itemRenderer | The ListItemRenderer of the menu item that was rolled over. |
label | The label text of the menu item that was rolled over. |
menu | The specific Menu instance associated with this event, or
null if a MenuBar item is dispatching the event. |
menuBar | The MenuBar instance that is the parent of the
Menu control, or null if the Menu control is not
parented by a MenuBar control. |
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 | MenuEvent.ITEM_ROLL_OVER |
MENU_HIDE | 상수 |
public static const MENU_HIDE:String = "menuHide"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The MenuEvent.MENU_HIDE event type constant indicates that a menu or submenu closed.
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 |
---|---|
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 . |
index | -1. This property is not set for this type of event. |
item | null. This property is not set for this type of event. |
itemRenderer | null. This property is not set for this type of event. |
label | null. This property is not set for this type of event. |
menu | The specific Menu instance associated with this event, or
null if a MenuBar item is dispatching the event. |
menuBar | The MenuBar instance that is the parent of the
Menu control, or null if the Menu control is not
parented by a MenuBar control. |
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 | MenuEvent.MENU_HIDE |
MENU_SHOW | 상수 |
public static const MENU_SHOW:String = "menuShow"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The MenuEvent.MENU_SHOW type constant indicates that the mouse pointer rolled a menu or submenu opened.
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 |
---|---|
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 . |
index | -1. This property is not set for this type of event. |
item | null. This property is not set for this type of event. |
itemRenderer | null. This property is not set for this type of event. |
label | null. This property is not set for this type of event. |
menu | The specific Menu instance associated with this event, or
null if a MenuBar item is dispatching the event. |
menuBar | The MenuBar instance that is the parent of the
Menu control, or null if the Menu control is not
parented by a MenuBar control. |
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 | MenuEvent.MENU_SHOW |
Tue Jun 12 2018, 03:17 PM Z