< prev index next >

src/java.desktop/share/classes/javax/swing/KeyStroke.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  35  * can correspond to typing a specific Java character, just as KEY_TYPED
  36  * KeyEvents do. In all cases, KeyStrokes can specify modifiers (alt, shift,
  37  * control, meta, altGraph, or a combination thereof) which must be present during the
  38  * action for an exact match.
  39  * <p>
  40  * KeyStrokes are used to define high-level (semantic) action events. Instead
  41  * of trapping every keystroke and throwing away the ones you are not
  42  * interested in, those keystrokes you care about automatically initiate
  43  * actions on the Components with which they are registered.
  44  * <p>
  45  * KeyStrokes are immutable, and are intended to be unique. Client code cannot
  46  * create a KeyStroke; a variant of <code>getKeyStroke</code> must be used
  47  * instead. These factory methods allow the KeyStroke implementation to cache
  48  * and share instances efficiently.
  49  * <p>
  50  * <strong>Warning:</strong>
  51  * Serialized objects of this class will not be compatible with
  52  * future Swing releases. The current serialization support is
  53  * appropriate for short term storage or RMI between applications running
  54  * the same version of Swing.  As of 1.4, support for long term storage
  55  * of all JavaBeans&trade;
  56  * has been added to the <code>java.beans</code> package.
  57  * Please see {@link java.beans.XMLEncoder}.
  58  *
  59  * @see javax.swing.text.Keymap
  60  * @see #getKeyStroke
  61  *
  62  * @author Arnaud Weber
  63  * @author David Mendenhall
  64  * @since 1.2
  65  */
  66 @SuppressWarnings("serial") // Same-version serialization only
  67 public class KeyStroke extends AWTKeyStroke {
  68 
  69     /**
  70      * Serial Version ID.
  71      */
  72     private static final long serialVersionUID = -9060180771037902530L;
  73 
  74     static {
  75         SwingAccessor.setKeyStrokeAccessor(new SwingAccessor.KeyStrokeAccessor() {




  35  * can correspond to typing a specific Java character, just as KEY_TYPED
  36  * KeyEvents do. In all cases, KeyStrokes can specify modifiers (alt, shift,
  37  * control, meta, altGraph, or a combination thereof) which must be present during the
  38  * action for an exact match.
  39  * <p>
  40  * KeyStrokes are used to define high-level (semantic) action events. Instead
  41  * of trapping every keystroke and throwing away the ones you are not
  42  * interested in, those keystrokes you care about automatically initiate
  43  * actions on the Components with which they are registered.
  44  * <p>
  45  * KeyStrokes are immutable, and are intended to be unique. Client code cannot
  46  * create a KeyStroke; a variant of <code>getKeyStroke</code> must be used
  47  * instead. These factory methods allow the KeyStroke implementation to cache
  48  * and share instances efficiently.
  49  * <p>
  50  * <strong>Warning:</strong>
  51  * Serialized objects of this class will not be compatible with
  52  * future Swing releases. The current serialization support is
  53  * appropriate for short term storage or RMI between applications running
  54  * the same version of Swing.  As of 1.4, support for long term storage
  55  * of all JavaBeans
  56  * has been added to the <code>java.beans</code> package.
  57  * Please see {@link java.beans.XMLEncoder}.
  58  *
  59  * @see javax.swing.text.Keymap
  60  * @see #getKeyStroke
  61  *
  62  * @author Arnaud Weber
  63  * @author David Mendenhall
  64  * @since 1.2
  65  */
  66 @SuppressWarnings("serial") // Same-version serialization only
  67 public class KeyStroke extends AWTKeyStroke {
  68 
  69     /**
  70      * Serial Version ID.
  71      */
  72     private static final long serialVersionUID = -9060180771037902530L;
  73 
  74     static {
  75         SwingAccessor.setKeyStrokeAccessor(new SwingAccessor.KeyStrokeAccessor() {


< prev index next >