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 JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Field and Description |
|---|---|
| private MenuSelectionManager | |
| private MenuElement[] |
| Access | Constructor and Description |
|---|---|
| public | MenuKeyEvent(Component
the Component that originated the event
(typically source, int this)an int specifying the type of event, as defined
in id, long java.a long identifying the time the event occurred when, int an int specifying any modifier keys held down,
as specified in modifiers, int java.an int specifying the specific key that was pressed keyCode, char a char specifying the key's character value, if any
-- null if the key has no character value keyChar, MenuElement[] an array of MenuElement objects specifying a path
to a menu item affected by the drag p, MenuSelectionManager a MenuSelectionManager object that handles selections m)Constructs a MenuKeyEvent object. |
| Modifier and Type | Method and Description |
|---|---|
| public MenuSelectionManager | Returns: a MenuSelectionManager objectReturns the current menu selection manager. |
| public MenuElement[] | Returns: an array of MenuElement objects representing the path valueReturns the path to the menu item referenced by this event. |
| manager | back to summary |
|---|---|
| private MenuSelectionManager manager | |
| path | back to summary |
|---|---|
| private MenuElement[] path | |
| MenuKeyEvent | back to summary |
|---|---|
| public MenuKeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar, MenuElement[] p, MenuSelectionManager m) Constructs a MenuKeyEvent object.
| |
| getMenuSelectionManager | back to summary |
|---|---|
| public MenuSelectionManager getMenuSelectionManager() Returns the current menu selection manager.
| |
| getPath | back to summary |
|---|---|
| public MenuElement[] getPath() Returns the path to the menu item referenced by this event.
| |