java.awt
public class MenuShortcut extends Object implements Serializable
Constructor Summary | |
---|---|
MenuShortcut(int key)
Initializes a new instance of MenuShortcut with the
specified virtual key value.
| |
MenuShortcut(int key, boolean usesShift)
Initializes a new instance of MenuShortcut with the
specified virtual key value and shift setting.
|
Method Summary | |
---|---|
boolean | equals(MenuShortcut obj)
Tests this object for equality against the specified object. |
boolean | equals(Object obj) |
int | getKey()
Returns the virtual keycode for this shortcut.
|
int | hashCode() |
protected String | paramString()
Returns a debugging string for this object.
|
String | toString()
Returns a string representation of this shortcut.
|
boolean | usesShiftModifier()
Returns the shift setting for this shortcut.
|
MenuShortcut
with the
specified virtual key value.
Parameters: key The virtual keycode for the shortcut.
MenuShortcut
with the
specified virtual key value and shift setting.
Parameters: key The virtual keycode for the shortcut. usesShift true
if the shift key was pressed,
false
otherwise.
MenuShortcut
and has the same key value
and shift setting as this object.
Parameters: obj The object to test for equality against.
Returns: true
if the two objects are equal, false
otherwise.
Returns: The virtual keycode for this shortcut.
Returns: A debugging string for this object.
Returns: A string representation of this shortcut.
Returns: true
if the shift key was pressed, false
otherwise.