|
Swing 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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. A future release of Swing will provide support for long term persistence.
Fields inherited from class java.awt.event.InputEvent |
ALT_MASK,
BUTTON1_MASK,
BUTTON2_MASK,
BUTTON3_MASK,
CTRL_MASK,
META_MASK,
SHIFT_MASK |
Fields inherited from class java.awt.event.ComponentEvent |
COMPONENT_FIRST,
COMPONENT_HIDDEN,
COMPONENT_LAST,
COMPONENT_MOVED,
COMPONENT_RESIZED,
COMPONENT_SHOWN |
Fields inherited from class java.awt.AWTEvent |
ACTION_EVENT_MASK,
ADJUSTMENT_EVENT_MASK,
COMPONENT_EVENT_MASK,
consumed,
CONTAINER_EVENT_MASK,
FOCUS_EVENT_MASK,
id,
ITEM_EVENT_MASK,
KEY_EVENT_MASK,
MOUSE_EVENT_MASK,
MOUSE_MOTION_EVENT_MASK,
RESERVED_ID_MAX,
TEXT_EVENT_MASK,
WINDOW_EVENT_MASK |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
MenuKeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar,
MenuElement[] p,
MenuSelectionManager m)
Constructs a MenuKeyEvent object. |
Method Summary | |
MenuSelectionManager |
getMenuSelectionManager()
Returns the current menu selection manager. |
MenuElement[] |
getPath()
Returns the path to the menu item referenced by this event. |
Methods inherited from class java.awt.event.KeyEvent |
getKeyChar,
getKeyCode,
getKeyModifiersText,
getKeyText,
isActionKey,
paramString,
setKeyChar,
setKeyCode,
setModifiers |
Methods inherited from class java.awt.event.InputEvent |
consume,
getModifiers,
getWhen,
isAltDown,
isConsumed,
isControlDown,
isMetaDown,
isShiftDown |
Methods inherited from class java.awt.event.ComponentEvent |
getComponent |
Methods inherited from class java.awt.AWTEvent |
getID,
toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public MenuKeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar, MenuElement[] p, MenuSelectionManager m)
source
- the Component that originated the event
(typically this
)id
- an int specifying the type of event, as defined
in KeyEvent
when
- a long identifying the time the event occurredmodifiers
- an int specifying any modifier keys held down,
as specified in InputEvent
keyCode
- an int specifying the specific key that was pressedkeyChar
- a char specifying the key's character value, if any
-- null if the key has no character valuep
- an array of MenuElement objects specifying a path
to a menu item affected by the dragm
- a MenuSelectionManager object that handles selectionsMethod Detail |
public MenuElement[] getPath()
public MenuSelectionManager getMenuSelectionManager()
|
Swing 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |