This page was saved using jaction on 2006-09-04 8:33:53.
Address: http://flexdocs.kr/docs/flex2/langref/mx/events/MenuEvent.html
Title: mx.events.MenuEvent (Flex™ 2 레퍼런스 가이드)  •  Size: 75202
Packagemx.events
Classpublic class MenuEvent
InheritanceMenuEvent Inheritance ListEvent Inheritance Event Inheritance Object

MenuEvent 클래스는, Menu, MenuBar, PopUpMenuButton 등의 컨트롤에 있어서의 메뉴 액티버티에 관련지을 수 있었던 이벤트를 나타냅니다.

See also

mx.controls.Menu
mx.controls.MenuBar
mx.controls.PopUpMenuButton


Public property
 property정의
 Inheritedbubbles : Boolean
이벤트가 바브 링 이벤트인가 어떤가를 나타냅니다.
Event
 Inheritedcancelable : Boolean
이벤트에 관련지을 수 있었던 행동을 회피할 수 있을지 어떨지를 나타냅니다.
Event
 InheritedcolumnIndex : int
이벤트가 발생한 아이템 렌더러가 포함되어 있는 열의 0 으로부터 시작되는 인덱스입니다.
ListEvent
 Inheritedconstructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor    함수에의 참조입니다.
Object
 InheritedcurrentTarget : Object
event listener로 Event object를 액티브하게 처리하고 있는 object입니다.
Event
 InheritedeventPhase : uint
event 플로우(flow)의 현재의 단계입니다.
Event
  index : int
관련지을 수 있었던 메뉴 아이템의, 그 친메뉴 또는 부메뉴내의 인덱스입니다.
MenuEvent
  item : Object
dataProvider 내의 특정의 아이템입니다.
MenuEvent
 InheriteditemRenderer : IListItemRenderer
이벤트가 발생한 아이템 렌더러입니다.
ListEvent
  label : String
관련지을 수 있었던 메뉴 아이템의 label 텍스트입니다.
MenuEvent
  menu : Menu
이벤트에 관련지을 수 있었던 특정의 Menu 인스턴스입니다. 예를 들어, 비표시 또는 표시된 메뉴나 부메뉴등이 있습니다.
MenuEvent
  menuBar : MenuBar
선택된 Menu 컨트롤의 부모인 MenuBar 인스턴스입니다. 타겟 Menu 컨트롤의 부모가 MenuBar 컨트롤이 아닌 경우는, null 가 됩니다.
MenuEvent
 Inheritedprototype : Object
[static] 클래스 또는 함수 object의 prototype object에의 참조입니다.
Object
 Inheritedreason : String
itemEditEnd 이벤트가 dispatch된 이유입니다.
ListEvent
 InheritedrowIndex : int
이벤트가 발생한 아이템 렌더러가 포함되어 있는 행의 0 으로부터 시작되는 인덱스입니다. 편집 이벤트의 경우는, 편집중의 데이터 프로바이더내의 아이템의 인덱스입니다.
ListEvent
 Inheritedtarget : Object
event 타겟입니다.
Event
 Inheritedtype : String
이벤트의 형태입니다.
Event
Public Methods
 Methods정의
  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
 Inheritedclone ():Event
Event 서브 클래스의 인스턴스를 복제합니다.
Event
 InheritedformatToString (className:String , ... arguments):String
custom Event 클래스에 toString() Methods를 Implements하기 위한 유틸리티 함수입니다.
Event
 InheritedhasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
Object
 InheritedisDefaultPrevented ():Boolean
이벤트로 preventDefault() 가 불려 갔는지 어떠했는지를 체크합니다.
Event
 InheritedisPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
Object
 InheritedpreventDefault ():void
이벤트의 디폴트 행동을 캔슬할 수 있는 경우에, 그 행동을 캔슬합니다.
Event
 InheritedpropertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
Object
 InheritedsetPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
Object
 InheritedstopImmediatePropagation ():void
event 플로우(flow)의 현재의 노드 및 후속 하는 노드로, event listener가 처리되지 않게 합니다.
Event
 InheritedstopPropagation ():void
event 플로우(flow)의 현재의 노드에 후속 하는 노드로, event listener가 처리되지 않게 합니다.
Event
 InheritedtoString ():String
Event object의 모든 property를 포함한 string를 돌려줍니다.
Event
 InheritedvalueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
Object
Public 정수
 정수정의
 InheritedACTIVATE : String = "activate"
[static] activate event object의 type property의 값을 정의합니다.
Event
 InheritedADDED : String = "added"
[static] added event object의 type property의 값을 정의합니다.
Event
 InheritedCANCEL : String = "cancel"
[static] cancelevent object의 type property의 값을 정의합니다.
Event
 InheritedCHANGE : String = "change"
[static] change event object의 type property의 값을 정의합니다.
Event
 InheritedCLOSE : String = "close"
[static] close event object의 type property의 값을 정의합니다.
Event
 InheritedCOMPLETE : String = "complete"
[static] complete event object의 type property의 값을 정의합니다.
Event
 InheritedCONNECT : String = "connect"
[static] connect event object의 type property의 값을 정의합니다.
Event
 InheritedDEACTIVATE : String = "deactivate"
[static] deactivate event object의 type property의 값을 정의합니다.
Event
 InheritedENTER_FRAME : String = "enterFrame"
[static] enterFrame event object의 type property의 값을 정의합니다.
Event
 InheritedID3 : String = "id3"
[static] id3 event object의 type property의 값을 정의합니다.
Event
 InheritedINIT : String = "init"
[static] init event object의 type property의 값을 정의합니다.
Event
  ITEM_CLICK : String = "itemClick"
[static] MenuEvent.ITEM_CLICK 이벤트형 정수는, 유저가 메뉴 아이템을 선택한 것을 나타냅니다.
MenuEvent
 InheritedITEM_DOUBLE_CLICK : String = "itemDoubleClick"
[static] ListEvent.ITEM_DOUBLE_CLICK 정수는,itemDoubleClick 이벤트에 관한 ListEvent object의 type property의 값을 정의합니다. 이 이벤트는, 컨트롤내의 가시 아이템 위에서 유저가 마우스를 더블 클릭 한 것을 나타냅니다.
ListEvent
 InheritedITEM_EDIT_BEGIN : String = "itemEditBegin"
[static] ListEvent.ITEM_EDIT_BEGIN 정수는 itemEditBegin 이벤트의 event object의 type property치를 정의해, 아이템이 편집 가능한 것을 나타냅니다.
ListEvent
 InheritedITEM_EDIT_BEGINNING : String = "itemEditBeginning"
[static] ListEvent.ITEM_EDIT_BEGINNING 정수는 itemEditBeginning 이벤트의 ListEvent object의 type property치를 정의해, 유저가 아이템상에서 mouse button를 떼어 놓는 등의 조작에 의해 아이템을 편집할 수 있는 상태에 있는 것을 나타냅니다.
ListEvent
 InheritedITEM_EDIT_END : String = "itemEditEnd"
[static] ListEvent.ITEM_EDIT_END 정수에 의해, 편집 세션이 종료하는 것을 나타내는 itemEditEnd 이벤트의 ListEvent object의 type property치가 정의됩니다.
ListEvent
 InheritedITEM_FOCUS_IN : String = "itemFocusIn"
[static] ListEvent.ITEM_FOCUS_IN 정수는 itemFocusIn 이벤트의 ListEvent object의 type property치를 정의해, 아이템이 포커스를 받은 것을 나타냅니다.
ListEvent
 InheritedITEM_FOCUS_OUT : String = "itemFocusOut"
[static] ListEvent.ITEM_FOCUS_OUT 정수는 itemFocusOut 이벤트의 ListEvent object의 type property치를 정의해, 아이템이 포커스를 잃은 것을 나타냅니다.
ListEvent
  ITEM_ROLL_OUT : String = "itemRollOut"
[static] 이 MenuEvent.ITEM_ROLL_OUT 형 정수는, 마우스 포인터가 메뉴 아이템외로 이동한 것을 나타냅니다.
MenuEvent
  ITEM_ROLL_OVER : String = "itemRollOver"
[static] 이 MenuEvent.ITEM_ROLL_OVER 형 정수는, 마우스 포인터가 메뉴 아이템상에 놓여진 것을 나타냅니다.
MenuEvent
  MENU_HIDE : String = "menuHide"
[static] 이 MenuEvent.MENU_HIDE 형 정수는, 메뉴 또는 부메뉴가 닫은 것을 나타냅니다.
MenuEvent
  MENU_SHOW : String = "menuShow"
[static] 이 MenuEvent.MENU_SHOW 형 정수는, 마우스 포인터가 메뉴상에 놓여졌는지, 부메뉴가 열린 것을 나타냅니다.
MenuEvent
 InheritedMOUSE_LEAVE : String = "mouseLeave"
[static] mouseLeave event object의 type property의 값을 정의합니다.
Event
 InheritedOPEN : String = "open"
[static] open event object의 type property의 값을 정의합니다.
Event
 InheritedREMOVED : String = "removed"
[static] removed event object의 type property의 값을 정의합니다.
Event
 InheritedRENDER : String = "render"
[static] render event object의 type property의 값을 정의합니다.
Event
 InheritedRESIZE : String = "resize"
[static] resize event object의 type property의 값을 정의합니다.
Event
 InheritedSCROLL : String = "scroll"
[static] scroll event object의 type property의 값을 정의합니다.
Event
 InheritedSELECT : String = "select"
[static] select event object의 type property의 값을 정의합니다.
Event
 InheritedSOUND_COMPLETE : String = "soundComplete"
[static] soundComplete event object의 type property의 값을 정의합니다.
Event
 InheritedTAB_CHILDREN_CHANGE : String = "tabChildrenChange"
[static] tabChildrenChange event object의 type property의 값을 정의합니다.
Event
 InheritedTAB_ENABLED_CHANGE : String = "tabEnabledChange"
[static] tabEnabledChange event object의 type property의 값을 정의합니다.
Event
 InheritedTAB_INDEX_CHANGE : String = "tabIndexChange"
[static] tabIndexChange event object의 type property의 값을 정의합니다.
Event
 InheritedUNLOAD : String = "unload"
[static] unload event object의 type property의 값을 정의합니다.
Event
property의 상세
indexproperty
public var index:int

관련지을 수 있었던 메뉴 아이템의, 그 친메뉴 또는 부메뉴내의 인덱스입니다. menuShow event 및 menuHide 이벤트의 경우, 이것은 -1 이 됩니다.

itemproperty 
public var item:Object

dataProvider 내의 특정의 아이템입니다. menuShow event 및 menuHide 이벤트의 경우, 이것은 null 가 됩니다.

labelproperty 
public var label:String

관련지을 수 있었던 메뉴 아이템의 label 텍스트입니다. menuShow event 및 menuHide 이벤트의 경우, 이것은 null 가 됩니다.

menuproperty 
public var menu:Menu

이벤트에 관련지을 수 있었던 특정의 Menu 인스턴스입니다. 예를 들어, 비표시 또는 표시된 메뉴나 부메뉴등이 있습니다.

menuBarproperty 
public var menuBar:MenuBar

선택된 Menu 컨트롤의 부모인 MenuBar 인스턴스입니다. 타겟 Menu 컨트롤의 부모가 MenuBar 컨트롤이 아닌 경우는, null 가 됩니다.

constructor    의 상세
MenuEvent()constructor   
public 함수 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   . 통상은 Menu object에 의해 불려 갑니다.

Parameters
type:String — event 타입. 이벤트의 기가 되는 액션을 나타냅니다.
 
bubbles:Boolean (default = false) — 이벤트가 표시 리스트 계층을 윗쪽에 버블 할 수 있을지 어떨지를 지정합니다.
 
cancelable:Boolean (default = true) — 이벤트에 관련지을 수 있었던 동작을 캔슬할 수 있을지 어떨지를 지정합니다.
 
menuBar:MenuBar (default = null) — 선택된 Menu 컨트롤의 부모인 MenuBar 인스턴스입니다. 타겟 Menu 컨트롤의 부모가 MenuBar 컨트롤이 아닌 경우는, null 가 됩니다.
 
menu:Menu (default = null) — 이벤트에 관련지을 수 있었던 특정의 Menu 인스턴스입니다. 예를 들어, 비표시 또는 표시된 메뉴나 부메뉴등이 있습니다.
 
item:Object (default = null) — 관련지을 수 있었던 메뉴 아이템의 dataProvider 에 포함되는 아이템입니다.
 
itemRenderer:IListItemRenderer (default = null) — 관련지을 수 있었던 메뉴 아이템의 ListItemRenderer 입니다.
 
label:String (default = null) — 관련지을 수 있었던 메뉴 아이템의 label 텍스트입니다.
 
index:int (default = -1) — 메뉴내에서 관련지을 수 있었던 메뉴 아이템의 인덱스입니다.
정수의 상세
ITEM_CLICK정수
public static const ITEM_CLICK:String = "itemClick"

MenuEvent.ITEM_CLICK 이벤트형 정수는, 유저가 메뉴 아이템을 선택한 것을 나타냅니다.

이 event 타입의 event object의 각 property에는 다음의 값이 설정되어 있습니다. 이벤트의 종류에 따라서는 무효인 property도 있습니다. 상세한 것에 대하여는, 각 property의 설명을 참조해 주세요.

PropertyValue
bubblesfalse
cancelabletrue
currentTarget이벤트를 처리하는 event listener를 정의하는 object. 예를 들어, event listener의 등록에 myButton.addEventListener() 를 사용하면,currentTarget 의 값은 "myButton" 가 됩니다.
index 선택된 메뉴 아이템의 메뉴내에 있어서의 인덱스입니다.
item 선택된 dataProvider 내의 아이템입니다.
itemRenderer 선택된 메뉴 아이템의 ListItemRenderer 입니다.
label 선택된 메뉴 아이템의 label 텍스트입니다.
menu 이벤트에 관련지을 수 있었던 특정의 Menu 인스턴스입니다.
menuBar Menu 컨트롤의 부모인 MenuBar 인스턴스입니다. 다만, Menu 컨트롤의 부모가 MenuBar 컨트롤이 아닌 경우는,null 가 됩니다.
target이벤트를 dispatch한 object를 나타냅니다. 이 object는 반드시 이벤트를 받는 object라고는 할 수 없습니다. 이벤트를 받는 object에 항상 액세스 하려면 ,currentTarget property를 사용해 주세요.
typeMenuEvent.ITEM_CLICK
ITEM_ROLL_OUT정수 
public static const ITEM_ROLL_OUT:String = "itemRollOut"

이 MenuEvent.ITEM_ROLL_OUT 형 정수는, 마우스 포인터가 메뉴 아이템외로 이동한 것을 나타냅니다.

이 event 타입의 event object의 각 property에는 다음의 값이 설정되어 있습니다. 이벤트의 종류에 따라서는 무효인 property도 있습니다. 상세한 것에 대하여는, 각 property의 설명을 참조해 주세요.

PropertyValue
bubblesfalse
cancelabletrue
currentTarget이벤트를 처리하는 event listener를 정의하는 object. 예를 들어, event listener의 등록에 myButton.addEventListener() 를 사용하면,currentTarget 의 값은 "myButton" 가 됩니다.
index 마우스 포인터가 떨어진 메뉴 아이템의 메뉴내에 있어서의 인덱스입니다.
item 마우스 포인터가 떨어진 메뉴 아이템에 대응하는 dataProvider 내의 아이템입니다.
itemRenderer 마우스 포인터가 떨어진 메뉴 아이템의 ListItemRenderer 입니다.
label 마우스 포인터가 떨어진 메뉴 아이템의 label 텍스트입니다.
menu 이벤트에 관련지을 수 있었던 특정의 Menu 인스턴스입니다.
menuBar Menu 컨트롤의 부모인 MenuBar 인스턴스입니다. 다만, Menu 컨트롤의 부모가 MenuBar 컨트롤이 아닌 경우는,null 가 됩니다.
target이벤트를 dispatch한 object를 나타냅니다. 이 object는 반드시 이벤트를 받는 object라고는 할 수 없습니다. 이벤트를 받는 object에 항상 액세스 하려면 ,currentTarget property를 사용해 주세요.
typeMenuEvent.ITEM_ROLL_OUT
ITEM_ROLL_OVER정수 
public static const ITEM_ROLL_OVER:String = "itemRollOver"

이 MenuEvent.ITEM_ROLL_OVER 형 정수는, 마우스 포인터가 메뉴 아이템상에 놓여진 것을 나타냅니다.

이 event 타입의 event object의 각 property에는 다음의 값이 설정되어 있습니다. 이벤트의 종류에 따라서는 무효인 property도 있습니다. 상세한 것에 대하여는, 각 property의 설명을 참조해 주세요.

PropertyValue
bubblesfalse
cancelabletrue
currentTarget이벤트를 처리하는 event listener를 정의하는 object. 예를 들어, event listener의 등록에 myButton.addEventListener() 를 사용하면,currentTarget 의 값은 "myButton" 가 됩니다.
index 마우스 포인터가 놓여진 메뉴 아이템의 메뉴내에 있어서의 인덱스입니다.
item 마우스 포인터가 놓여진 메뉴 아이템에 관련지을 수 있고 있는 dataProvider 내의 아이템입니다.
itemRenderer 마우스 포인터가 놓여진 메뉴 아이템의 ListItemRenderer 입니다.
label 마우스 포인터가 놓여진 메뉴 아이템의 label 텍스트입니다.
menu 이벤트에 관련지을 수 있었던 특정의 Menu 인스턴스입니다.
menuBar Menu 컨트롤의 부모인 MenuBar 인스턴스입니다. 다만, Menu 컨트롤의 부모가 MenuBar 컨트롤이 아닌 경우는,null 가 됩니다.
target이벤트를 dispatch한 object를 나타냅니다. 이 object는 반드시 이벤트를 받는 object라고는 할 수 없습니다. 이벤트를 받는 object에 항상 액세스 하려면 ,currentTarget property를 사용해 주세요.
typeMenuEvent.ITEM_ROLL_OVER
MENU_HIDE정수 
public static const MENU_HIDE:String = "menuHide"

이 MenuEvent.MENU_HIDE 형 정수는, 메뉴 또는 부메뉴가 닫은 것을 나타냅니다.

이 event 타입의 event object의 각 property에는 다음의 값이 설정되어 있습니다. 이벤트의 종류에 따라서는 무효인 property도 있습니다. 상세한 것에 대하여는, 각 property의 설명을 참조해 주세요.

PropertyValue
bubblesfalse
cancelabletrue
currentTarget이벤트를 처리하는 event listener를 정의하는 object. 예를 들어, event listener의 등록에 myButton.addEventListener() 를 사용하면,currentTarget 의 값은 "myButton" 가 됩니다.
index -1. 이 property는, 이 타입의 이벤트의 경우는 설정되지 않습니다.
item null 이 property는, 이 타입의 이벤트의 경우는 설정되지 않습니다.
itemRenderer null 이 property는, 이 타입의 이벤트의 경우는 설정되지 않습니다.
label null 이 property는, 이 타입의 이벤트의 경우는 설정되지 않습니다.
menu 비표시가 된 특정의 Menu 인스턴스입니다.
menuBar Menu 컨트롤의 부모인 MenuBar 인스턴스입니다. 다만, Menu 컨트롤의 부모가 MenuBar 컨트롤이 아닌 경우는,null 가 됩니다.
target이벤트를 dispatch한 object를 나타냅니다. 이 object는 반드시 이벤트를 받는 object라고는 할 수 없습니다. 이벤트를 받는 object에 항상 액세스 하려면 ,currentTarget property를 사용해 주세요.
typeMenuEvent.MENU_HIDE
MENU_SHOW정수 
public static const MENU_SHOW:String = "menuShow"

이 MenuEvent.MENU_SHOW 형 정수는, 마우스 포인터가 메뉴상에 놓여졌는지, 부메뉴가 열린 것을 나타냅니다.

이 event 타입의 event object의 각 property에는 다음의 값이 설정되어 있습니다. 이벤트의 종류에 따라서는 무효인 property도 있습니다. 상세한 것에 대하여는, 각 property의 설명을 참조해 주세요.

PropertyValue
bubblesfalse
cancelabletrue
currentTarget이벤트를 처리하는 event listener를 정의하는 object. 예를 들어, event listener의 등록에 myButton.addEventListener() 를 사용하면,currentTarget 의 값은 "myButton" 가 됩니다.
index -1. 이 property는, 이 타입의 이벤트의 경우는 설정되지 않습니다.
item null 이 property는, 이 타입의 이벤트의 경우는 설정되지 않습니다.
itemRenderer null 이 property는, 이 타입의 이벤트의 경우는 설정되지 않습니다.
label null. This property is not set for this type of event.
menu 이벤트에 관련지을 수 있었던 특정의 Menu 인스턴스입니다.
menuBar Menu 컨트롤의 부모인 MenuBar 인스턴스입니다. 다만, Menu 컨트롤의 부모가 MenuBar 컨트롤이 아닌 경우는,null 가 됩니다.
target이벤트를 dispatch한 object를 나타냅니다. 이 object는 반드시 이벤트를 받는 object라고는 할 수 없습니다. 이벤트를 받는 object에 항상 액세스 하려면 ,currentTarget property를 사용해 주세요.
typeMenuEvent.MENU_SHOW






 

코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트

현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/events/MenuEvent.html