public abstract class Key extends Object implements Comparable
Key is the abstract base class for all objects representing
keys on the keyboard.
All Key objects have a formal string representation, called
the 'name' of the key, available via the toString() method.
All Key objects, via the format() method,
provide a version of their formal string representation translated by
platform and locale, suitable for display to a user.
Key objects are immutable. Clients are not permitted to extend
this class.
| Modifier and Type | Field and Description |
|---|---|
protected int |
key
Deprecated.
The key from which this key was constructed.
|
protected final int key
KeyLookupFactory.getDefault().public final int compareTo(Object object)
compareTo in interface ComparableComparable.compareTo(java.lang.Object)public final boolean equals(Object object)
equals in class ObjectObject.equals(java.lang.Object)public final int hashCode()
hashCode in class ObjectObject.hashCode()public final String toString()
toString in class Objectnull.Object.toString()Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.