Lines Matching defs:MenuShortcut

30  * The <code>MenuShortcut</code>class represents a keyboard accelerator
37 * <code>MenuShortcut ms = new MenuShortcut(KeyEvent.VK_A, false);</code>
40 * <code>MenuShortcut ms = new MenuShortcut(KeyEvent.getExtendedKeyCodeForChar('A'), false);</code>
46 * <code>MenuShortcut ms = new MenuShortcut(KeyEvent.getExtendedKeyCodeForChar('\u0444'), false);</code>
59 public class MenuShortcut implements java.io.Serializable
95 * Constructs a new MenuShortcut for the specified virtual keycode.
96 * @param key the raw keycode for this MenuShortcut, as would be returned
101 public MenuShortcut(int key) {
106 * Constructs a new MenuShortcut for the specified virtual keycode.
107 * @param key the raw keycode for this MenuShortcut, as would be returned
110 * @param useShiftModifier indicates whether this MenuShortcut is invoked
114 public MenuShortcut(int key, boolean useShiftModifier) {
120 * Returns the raw keycode of this MenuShortcut.
121 * @return the raw keycode of this MenuShortcut.
130 * Returns whether this MenuShortcut must be invoked using the SHIFT key.
131 * @return <code>true</code> if this MenuShortcut must be invoked using the
140 * Returns whether this MenuShortcut is the same as another:
143 * @param s the MenuShortcut to compare with this.
144 * @return <code>true</code> if this MenuShortcut is the same as another,
148 public boolean equals(MenuShortcut s) {
154 * Returns whether this MenuShortcut is the same as another:
158 * @return <code>true</code> if this MenuShortcut is the same as another,
163 if (obj instanceof MenuShortcut) {
164 return equals( (MenuShortcut) obj );
170 * Returns the hashcode for this MenuShortcut.
171 * @return the hashcode for this MenuShortcut.
179 * Returns an internationalized description of the MenuShortcut.
180 * @return a string representation of this MenuShortcut.
197 * MenuShortcut. This string is useful for debugging.
198 * @return the parameter string of this MenuShortcut.