API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. MenuShortcut View Source
Author(s)
Thomas Ball
Since
JDK1.1
Version
1.26, 11/17/05
Serial
Hierarchy
 Object
      MenuShortcut
Implements
 Serializable
Subclasses
Description
public class MenuShortcut
  The MenuShortcutclass represents a keyboard accelerator for a MenuItem.
See also:   
Constructors
public MenuShortcut (int key)
  Constructs a new MenuShortcut for the specified virtual keycode.
public MenuShortcut (int key, boolean useShiftModifier)
  Constructs a new MenuShortcut for the specified virtual keycode.
Methods
Hide/Show inherited methods
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.
public int getKey ()
  Returns the raw keycode of this MenuShortcut.
public int hashCode ()
  Returns the hashcode for this MenuShortcut.
protected String paramString ()
  Returns the parameter string representing the state of this MenuShortcut.
public String toString ()
  Returns an internationalized description of the MenuShortcut.
public boolean usesShiftModifier ()
  Returns whether this MenuShortcut must be invoked using the SHIFT key.
Fields
Hide/Show inherited fields
pack-private int key
  The virtual keycode for the menu shortcut.
pack-private boolean usesShift
  Indicates whether the shft key was pressed.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar