Home » openjdk-7 » javax » swing » event » [javadoc | source]
public class: MenuKeyEvent [javadoc | source]

All Implemented Interfaces:

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:
Fields inherited from java.awt.event.InputEvent:
Fields inherited from java.awt.event.ComponentEvent:
Fields inherited from java.awt.AWTEvent:
Fields inherited from java.util.EventObject:
 public MenuKeyEvent(Component source,
    int id,
    long when,
    int modifiers,
    int keyCode,
    char keyChar,
    MenuElement[] p,
    MenuSelectionManager m) 
    Constructs a MenuKeyEvent object.
    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.