MenuShortcutNameMenuShortcut
DescriptionA MenuShortcut is used to associate a keystroke with a menu item. MenuShortcuts are constructed using their corresponding key; they are associated with menu items via MenuItem.setShortcut(MenuShortcut). Class Definition
public class java.awt.MenuShortcut extends java.awt.Event { // Constructors public MenuShortcut (int key); public MenuShortcut (int key, boolean useShiftModifier); // Instance Methods public boolean equals (MenuShortcut s); public int getKey(); public String toString(); public boolean usesShiftModifier(); // Protected Instance Methods protected String paramString(); } ConstructorsMenuShortcutpublic MenuShortcut (int key)
public MenuShortcut (int key, boolean useShiftModifier)
Instance Methodsequalspublic boolean equals (MenuShortcut s)
getKeypublic int getKey()
toStringpublic String toString()
usesShiftModifierpublic boolean usesShiftModifier()
Protected Instance MethodsparamStringprotected String paramString()
See AlsoEvent, MenuItem |
|