| |
|
| java.lang.Object java.awt.MenuShortcut
MenuShortcut | public class MenuShortcut implements java.io.Serializable(Code) | | A class which represents a keyboard accelerator for a MenuItem.
version: %I, 08/19/02 author: Thomas Ball |
Constructor Summary | |
public | MenuShortcut(int key) Constructs a new MenuShortcut for the specified key. | public | MenuShortcut(int key, boolean useShiftModifier) Constructs a new MenuShortcut for the specified key. |
Method Summary | |
public boolean | equals(MenuShortcut s) Returns whether this MenuShortcut is the same as another:
equality is defined to mean that both MenuShortcuts use the same key
and both either use or don't use the SHIFT key. | public boolean | equals(Object obj) Returns whether this MenuShortcut is the same as another:
equality is defined to mean that both MenuShortcuts use the same key
and both either use or don't use the SHIFT key.
Parameters: obj - the Object to compare with this. | public int | getKey() Return the raw keycode of this MenuShortcut. | public int | hashCode() Returns the hashcode for this MenuShortcut. | protected String | paramString() | public String | toString() Returns an internationalized description of the MenuShortcut. | public boolean | usesShiftModifier() Return whether this MenuShortcut must be invoked using the SHIFT key. |
usesShift | boolean usesShift(Code) | | |
MenuShortcut | public MenuShortcut(int key)(Code) | | Constructs a new MenuShortcut for the specified key.
Parameters: key - the raw keycode for this MenuShortcut, as would be returnedin the keyCode field of a KeyEvent if this key were pressed. exception: UnsupportedOperationException - if the class is not supported |
MenuShortcut | public MenuShortcut(int key, boolean useShiftModifier)(Code) | | Constructs a new MenuShortcut for the specified key.
Parameters: key - the raw keycode for this MenuShortcut, as would be returnedin the keyCode field of a KeyEvent if this key were pressed. Parameters: useShiftModifier - indicates whether this MenuShortcut is invokedwith the SHIFT key down. exception: UnsupportedOperationException - if the class is not supported |
equals | public boolean equals(MenuShortcut s)(Code) | | Returns whether this MenuShortcut is the same as another:
equality is defined to mean that both MenuShortcuts use the same key
and both either use or don't use the SHIFT key.
Parameters: s - the MenuShortcut to compare with this. |
equals | public boolean equals(Object obj)(Code) | | Returns whether this MenuShortcut is the same as another:
equality is defined to mean that both MenuShortcuts use the same key
and both either use or don't use the SHIFT key.
Parameters: obj - the Object to compare with this. true if this MenuShortcut is the same as another,false otherwise. since: 1.2 |
getKey | public int getKey()(Code) | | Return the raw keycode of this MenuShortcut.
|
hashCode | public int hashCode()(Code) | | Returns the hashcode for this MenuShortcut.
the hashcode for this MenuShortcut. since: 1.2 |
toString | public String toString()(Code) | | Returns an internationalized description of the MenuShortcut.
|
usesShiftModifier | public boolean usesShiftModifier()(Code) | | Return whether this MenuShortcut must be invoked using the SHIFT key.
|
|
|
|