Home » openjdk-7 » javax » swing » event » [javadoc | source]
javax.swing.event
public class: MenuKeyEvent [javadoc | source]
java.lang.Object
   java.util.EventObject
      java.awt.AWTEvent
         java.awt.event.ComponentEvent
            java.awt.event.InputEvent
               java.awt.event.KeyEvent
                  javax.swing.event.MenuKeyEvent

All Implemented Interfaces:
    Serializable

MenuKeyEvent is used to notify interested parties that the menu element has received a KeyEvent forwarded to it in a menu tree.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder .

Fields inherited from java.awt.event.KeyEvent:
KEY_FIRST,  KEY_LAST,  KEY_TYPED,  KEY_PRESSED,  KEY_RELEASED,  VK_ENTER,  VK_BACK_SPACE,  VK_TAB,  VK_CANCEL,  VK_CLEAR,  VK_SHIFT,  VK_CONTROL,  VK_ALT,  VK_PAUSE,  VK_CAPS_LOCK,  VK_ESCAPE,  VK_SPACE,  VK_PAGE_UP,  VK_PAGE_DOWN,  VK_END,  VK_HOME,  VK_LEFT,  VK_UP,  VK_RIGHT,  VK_DOWN,  VK_COMMA,  VK_MINUS,  VK_PERIOD,  VK_SLASH,  VK_0,  VK_1,  VK_2,  VK_3,  VK_4,  VK_5,  VK_6,  VK_7,  VK_8,  VK_9,  VK_SEMICOLON,  VK_EQUALS,  VK_A,  VK_B,  VK_C,  VK_D,  VK_E,  VK_F,  VK_G,  VK_H,  VK_I,  VK_J,  VK_K,  VK_L,  VK_M,  VK_N,  VK_O,  VK_P,  VK_Q,  VK_R,  VK_S,  VK_T,  VK_U,  VK_V,  VK_W,  VK_X,  VK_Y,  VK_Z,  VK_OPEN_BRACKET,  VK_BACK_SLASH,  VK_CLOSE_BRACKET,  VK_NUMPAD0,  VK_NUMPAD1,  VK_NUMPAD2,  VK_NUMPAD3,  VK_NUMPAD4,  VK_NUMPAD5,  VK_NUMPAD6,  VK_NUMPAD7,  VK_NUMPAD8,  VK_NUMPAD9,  VK_MULTIPLY,  VK_ADD,  VK_SEPARATER,  VK_SEPARATOR,  VK_SUBTRACT,  VK_DECIMAL,  VK_DIVIDE,  VK_DELETE,  VK_NUM_LOCK,  VK_SCROLL_LOCK,  VK_F1,  VK_F2,  VK_F3,  VK_F4,  VK_F5,  VK_F6,  VK_F7,  VK_F8,  VK_F9,  VK_F10,  VK_F11,  VK_F12,  VK_F13,  VK_F14,  VK_F15,  VK_F16,  VK_F17,  VK_F18,  VK_F19,  VK_F20,  VK_F21,  VK_F22,  VK_F23,  VK_F24,  VK_PRINTSCREEN,  VK_INSERT,  VK_HELP,  VK_META,  VK_BACK_QUOTE,  VK_QUOTE,  VK_KP_UP,  VK_KP_DOWN,  VK_KP_LEFT,  VK_KP_RIGHT,  VK_DEAD_GRAVE,  VK_DEAD_ACUTE,  VK_DEAD_CIRCUMFLEX,  VK_DEAD_TILDE,  VK_DEAD_MACRON,  VK_DEAD_BREVE,  VK_DEAD_ABOVEDOT,  VK_DEAD_DIAERESIS,  VK_DEAD_ABOVERING,  VK_DEAD_DOUBLEACUTE,  VK_DEAD_CARON,  VK_DEAD_CEDILLA,  VK_DEAD_OGONEK,  VK_DEAD_IOTA,  VK_DEAD_VOICED_SOUND,  VK_DEAD_SEMIVOICED_SOUND,  VK_AMPERSAND,  VK_ASTERISK,  VK_QUOTEDBL,  VK_LESS,  VK_GREATER,  VK_BRACELEFT,  VK_BRACERIGHT,  VK_AT,  VK_COLON,  VK_CIRCUMFLEX,  VK_DOLLAR,  VK_EURO_SIGN,  VK_EXCLAMATION_MARK,  VK_INVERTED_EXCLAMATION_MARK,  VK_LEFT_PARENTHESIS,  VK_NUMBER_SIGN,  VK_PLUS,  VK_RIGHT_PARENTHESIS,  VK_UNDERSCORE,  VK_WINDOWS,  VK_CONTEXT_MENU,  VK_FINAL,  VK_CONVERT,  VK_NONCONVERT,  VK_ACCEPT,  VK_MODECHANGE,  VK_KANA,  VK_KANJI,  VK_ALPHANUMERIC,  VK_KATAKANA,  VK_HIRAGANA,  VK_FULL_WIDTH,  VK_HALF_WIDTH,  VK_ROMAN_CHARACTERS,  VK_ALL_CANDIDATES,  VK_PREVIOUS_CANDIDATE,  VK_CODE_INPUT,  VK_JAPANESE_KATAKANA,  VK_JAPANESE_HIRAGANA,  VK_JAPANESE_ROMAN,  VK_KANA_LOCK,  VK_INPUT_METHOD_ON_OFF,  VK_CUT,  VK_COPY,  VK_PASTE,  VK_UNDO,  VK_AGAIN,  VK_FIND,  VK_PROPS,  VK_STOP,  VK_COMPOSE,  VK_ALT_GRAPH,  VK_BEGIN,  VK_UNDEFINED,  CHAR_UNDEFINED,  KEY_LOCATION_UNKNOWN,  KEY_LOCATION_STANDARD,  KEY_LOCATION_LEFT,  KEY_LOCATION_RIGHT,  KEY_LOCATION_NUMPAD,  keyCode,  keyChar,  keyLocation
Fields inherited from java.awt.event.InputEvent:
SHIFT_MASK,  CTRL_MASK,  META_MASK,  ALT_MASK,  ALT_GRAPH_MASK,  BUTTON1_MASK,  BUTTON2_MASK,  BUTTON3_MASK,  SHIFT_DOWN_MASK,  CTRL_DOWN_MASK,  META_DOWN_MASK,  ALT_DOWN_MASK,  BUTTON1_DOWN_MASK,  BUTTON2_DOWN_MASK,  BUTTON3_DOWN_MASK,  ALT_GRAPH_DOWN_MASK,  FIRST_HIGH_BIT,  JDK_1_3_MODIFIERS,  HIGH_MODIFIERS,  when,  modifiers,  serialVersionUID
Fields inherited from java.awt.event.ComponentEvent:
COMPONENT_FIRST,  COMPONENT_LAST,  COMPONENT_MOVED,  COMPONENT_RESIZED,  COMPONENT_SHOWN,  COMPONENT_HIDDEN
Fields inherited from java.awt.AWTEvent:
id,  consumed,  focusManagerIsDispatching,  isPosted,  COMPONENT_EVENT_MASK,  CONTAINER_EVENT_MASK,  FOCUS_EVENT_MASK,  KEY_EVENT_MASK,  MOUSE_EVENT_MASK,  MOUSE_MOTION_EVENT_MASK,  WINDOW_EVENT_MASK,  ACTION_EVENT_MASK,  ADJUSTMENT_EVENT_MASK,  ITEM_EVENT_MASK,  TEXT_EVENT_MASK,  INPUT_METHOD_EVENT_MASK,  INPUT_METHODS_ENABLED_MASK,  PAINT_EVENT_MASK,  INVOCATION_EVENT_MASK,  HIERARCHY_EVENT_MASK,  HIERARCHY_BOUNDS_EVENT_MASK,  MOUSE_WHEEL_EVENT_MASK,  WINDOW_STATE_EVENT_MASK,  WINDOW_FOCUS_EVENT_MASK,  RESERVED_ID_MAX
Fields inherited from java.util.EventObject:
source
Constructor:
 public MenuKeyEvent(Component source,
    int id,
    long when,
    int modifiers,
    int keyCode,
    char keyChar,
    MenuElement[] p,
    MenuSelectionManager m) 
    Constructs a MenuKeyEvent object.
    Parameters:
    source - the Component that originated the event (typically this)
    id - an int specifying the type of event, as defined in java.awt.event.KeyEvent
    when - a long identifying the time the event occurred
    modifiers - an int specifying any modifier keys held down, as specified in java.awt.event.InputEvent
    keyCode - an int specifying the specific key that was pressed
    keyChar - a char specifying the key's character value, if any -- null if the key has no character value
    p - an array of MenuElement objects specifying a path to a menu item affected by the drag
    m - a MenuSelectionManager object that handles selections
Method from javax.swing.event.MenuKeyEvent Summary:
getMenuSelectionManager,   getPath
Methods from java.awt.event.KeyEvent:
getExtendedKeyCode,   getExtendedKeyCodeForChar,   getKeyChar,   getKeyCode,   getKeyLocation,   getKeyModifiersText,   getKeyText,   isActionKey,   paramString,   setKeyChar,   setKeyCode,   setModifiers
Methods from java.awt.event.InputEvent:
consume,   getMaskForButton,   getModifiers,   getModifiersEx,   getModifiersExText,   getWhen,   isAltDown,   isAltGraphDown,   isConsumed,   isControlDown,   isMetaDown,   isShiftDown
Methods from java.awt.event.ComponentEvent:
getComponent,   paramString
Methods from java.awt.AWTEvent:
consume,   convertToOld,   copyPrivateDataInto,   dispatched,   getAccessControlContext,   getID,   isConsumed,   paramString,   setSource,   toString
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.event.MenuKeyEvent Detail:
 public MenuSelectionManager getMenuSelectionManager() 
    Returns the current menu selection manager.
 public MenuElement[] getPath() 
    Returns the path to the menu item referenced by this event.