Module :
java.desktop - Package :
java.awt.event
Version documentée : Java SE 17
Classe « KeyEvent »
Informations générales
Héritage
java.lang.Object
java.util.EventObject
java.awt.AWTEvent
java.awt.event.ComponentEvent
java.awt.event.InputEvent
java.awt.event.KeyEvent
Définition
public class KeyEvent extends java.awt.event.InputEvent
Description
A venir.
Liste des attributs
Tous les attributs
Attributs d'instance
Attributs statiques
Attributs dépréciés
public static |
char |
CHAR_UNDEFINED |
|
public static |
int |
KEY_FIRST |
|
public static |
int |
KEY_LAST |
|
public static |
int |
KEY_LOCATION_LEFT |
|
public static |
int |
KEY_LOCATION_NUMPAD |
|
public static |
int |
KEY_LOCATION_RIGHT |
|
public static |
int |
KEY_LOCATION_STANDARD |
|
public static |
int |
KEY_LOCATION_UNKNOWN |
|
public static |
int |
KEY_PRESSED |
|
public static |
int |
KEY_RELEASED |
|
public static |
int |
KEY_TYPED |
|
public static |
int |
VK_0 |
|
public static |
int |
VK_1 |
|
public static |
int |
VK_2 |
|
public static |
int |
VK_3 |
|
public static |
int |
VK_4 |
|
public static |
int |
VK_5 |
|
public static |
int |
VK_6 |
|
public static |
int |
VK_7 |
|
public static |
int |
VK_8 |
|
public static |
int |
VK_9 |
|
public static |
int |
VK_A |
|
public static |
int |
VK_ACCEPT |
|
public static |
int |
VK_ADD |
|
public static |
int |
VK_AGAIN |
|
public static |
int |
VK_ALL_CANDIDATES |
|
public static |
int |
VK_ALPHANUMERIC |
|
public static |
int |
VK_ALT |
|
public static |
int |
VK_ALT_GRAPH |
|
public static |
int |
VK_AMPERSAND |
|
public static |
int |
VK_ASTERISK |
|
public static |
int |
VK_AT |
|
public static |
int |
VK_B |
|
public static |
int |
VK_BACK_QUOTE |
|
public static |
int |
VK_BACK_SLASH |
|
public static |
int |
VK_BACK_SPACE |
|
public static |
int |
VK_BEGIN |
|
public static |
int |
VK_BRACELEFT |
|
public static |
int |
VK_BRACERIGHT |
|
public static |
int |
VK_C |
|
public static |
int |
VK_CANCEL |
|
public static |
int |
VK_CAPS_LOCK |
|
public static |
int |
VK_CIRCUMFLEX |
|
public static |
int |
VK_CLEAR |
|
public static |
int |
VK_CLOSE_BRACKET |
|
public static |
int |
VK_CODE_INPUT |
|
public static |
int |
VK_COLON |
|
public static |
int |
VK_COMMA |
|
public static |
int |
VK_COMPOSE |
|
public static |
int |
VK_CONTEXT_MENU |
|
public static |
int |
VK_CONTROL |
|
public static |
int |
VK_CONVERT |
|
public static |
int |
VK_COPY |
|
public static |
int |
VK_CUT |
|
public static |
int |
VK_D |
|
public static |
int |
VK_DEAD_ABOVEDOT |
|
public static |
int |
VK_DEAD_ABOVERING |
|
public static |
int |
VK_DEAD_ACUTE |
|
public static |
int |
VK_DEAD_BREVE |
|
public static |
int |
VK_DEAD_CARON |
|
public static |
int |
VK_DEAD_CEDILLA |
|
public static |
int |
VK_DEAD_CIRCUMFLEX |
|
public static |
int |
VK_DEAD_DIAERESIS |
|
public static |
int |
VK_DEAD_DOUBLEACUTE |
|
public static |
int |
VK_DEAD_GRAVE |
|
public static |
int |
VK_DEAD_IOTA |
|
public static |
int |
VK_DEAD_MACRON |
|
public static |
int |
VK_DEAD_OGONEK |
|
public static |
int |
VK_DEAD_SEMIVOICED_SOUND |
|
public static |
int |
VK_DEAD_TILDE |
|
public static |
int |
VK_DEAD_VOICED_SOUND |
|
public static |
int |
VK_DECIMAL |
|
public static |
int |
VK_DELETE |
|
public static |
int |
VK_DIVIDE |
|
public static |
int |
VK_DOLLAR |
|
public static |
int |
VK_DOWN |
|
public static |
int |
VK_E |
|
public static |
int |
VK_END |
|
public static |
int |
VK_ENTER |
|
public static |
int |
VK_EQUALS |
|
public static |
int |
VK_ESCAPE |
|
public static |
int |
VK_EURO_SIGN |
|
public static |
int |
VK_EXCLAMATION_MARK |
|
public static |
int |
VK_F |
|
public static |
int |
VK_F1 |
|
public static |
int |
VK_F10 |
|
public static |
int |
VK_F11 |
|
public static |
int |
VK_F12 |
|
public static |
int |
VK_F13 |
|
public static |
int |
VK_F14 |
|
public static |
int |
VK_F15 |
|
public static |
int |
VK_F16 |
|
public static |
int |
VK_F17 |
|
public static |
int |
VK_F18 |
|
public static |
int |
VK_F19 |
|
public static |
int |
VK_F2 |
|
public static |
int |
VK_F20 |
|
public static |
int |
VK_F21 |
|
public static |
int |
VK_F22 |
|
public static |
int |
VK_F23 |
|
public static |
int |
VK_F24 |
|
public static |
int |
VK_F3 |
|
public static |
int |
VK_F4 |
|
public static |
int |
VK_F5 |
|
public static |
int |
VK_F6 |
|
public static |
int |
VK_F7 |
|
public static |
int |
VK_F8 |
|
public static |
int |
VK_F9 |
|
public static |
int |
VK_FINAL |
|
public static |
int |
VK_FIND |
|
public static |
int |
VK_FULL_WIDTH |
|
public static |
int |
VK_G |
|
public static |
int |
VK_GREATER |
|
public static |
int |
VK_H |
|
public static |
int |
VK_HALF_WIDTH |
|
public static |
int |
VK_HELP |
|
public static |
int |
VK_HIRAGANA |
|
public static |
int |
VK_HOME |
|
public static |
int |
VK_I |
|
public static |
int |
VK_INPUT_METHOD_ON_OFF |
|
public static |
int |
VK_INSERT |
|
public static |
int |
VK_INVERTED_EXCLAMATION_MARK |
|
public static |
int |
VK_J |
|
public static |
int |
VK_JAPANESE_HIRAGANA |
|
public static |
int |
VK_JAPANESE_KATAKANA |
|
public static |
int |
VK_JAPANESE_ROMAN |
|
public static |
int |
VK_K |
|
public static |
int |
VK_KANA |
|
public static |
int |
VK_KANA_LOCK |
|
public static |
int |
VK_KANJI |
|
public static |
int |
VK_KATAKANA |
|
public static |
int |
VK_KP_DOWN |
|
public static |
int |
VK_KP_LEFT |
|
public static |
int |
VK_KP_RIGHT |
|
public static |
int |
VK_KP_UP |
|
public static |
int |
VK_L |
|
public static |
int |
VK_LEFT |
|
public static |
int |
VK_LEFT_PARENTHESIS |
|
public static |
int |
VK_LESS |
|
public static |
int |
VK_M |
|
public static |
int |
VK_META |
|
public static |
int |
VK_MINUS |
|
public static |
int |
VK_MODECHANGE |
|
public static |
int |
VK_MULTIPLY |
|
public static |
int |
VK_N |
|
public static |
int |
VK_NONCONVERT |
|
public static |
int |
VK_NUMBER_SIGN |
|
public static |
int |
VK_NUMPAD0 |
|
public static |
int |
VK_NUMPAD1 |
|
public static |
int |
VK_NUMPAD2 |
|
public static |
int |
VK_NUMPAD3 |
|
public static |
int |
VK_NUMPAD4 |
|
public static |
int |
VK_NUMPAD5 |
|
public static |
int |
VK_NUMPAD6 |
|
public static |
int |
VK_NUMPAD7 |
|
public static |
int |
VK_NUMPAD8 |
|
public static |
int |
VK_NUMPAD9 |
|
public static |
int |
VK_NUM_LOCK |
|
public static |
int |
VK_O |
|
public static |
int |
VK_OPEN_BRACKET |
|
public static |
int |
VK_P |
|
public static |
int |
VK_PAGE_DOWN |
|
public static |
int |
VK_PAGE_UP |
|
public static |
int |
VK_PASTE |
|
public static |
int |
VK_PAUSE |
|
public static |
int |
VK_PERIOD |
|
public static |
int |
VK_PLUS |
|
public static |
int |
VK_PREVIOUS_CANDIDATE |
|
public static |
int |
VK_PRINTSCREEN |
|
public static |
int |
VK_PROPS |
|
public static |
int |
VK_Q |
|
public static |
int |
VK_QUOTE |
|
public static |
int |
VK_QUOTEDBL |
|
public static |
int |
VK_R |
|
public static |
int |
VK_RIGHT |
|
public static |
int |
VK_RIGHT_PARENTHESIS |
|
public static |
int |
VK_ROMAN_CHARACTERS |
|
public static |
int |
VK_S |
|
public static |
int |
VK_SCROLL_LOCK |
|
public static |
int |
VK_SEMICOLON |
|
public static |
int |
VK_SEPARATER |
|
public static |
int |
VK_SEPARATOR |
|
public static |
int |
VK_SHIFT |
|
public static |
int |
VK_SLASH |
|
public static |
int |
VK_SPACE |
|
public static |
int |
VK_STOP |
|
public static |
int |
VK_SUBTRACT |
|
public static |
int |
VK_T |
|
public static |
int |
VK_TAB |
|
public static |
int |
VK_U |
|
public static |
int |
VK_UNDEFINED |
|
public static |
int |
VK_UNDERSCORE |
|
public static |
int |
VK_UNDO |
|
public static |
int |
VK_UP |
|
public static |
int |
VK_V |
|
public static |
int |
VK_W |
|
public static |
int |
VK_WINDOWS |
|
public static |
int |
VK_X |
|
public static |
int |
VK_Y |
|
public static |
int |
VK_Z |
|
Liste des constructeurs
Constructeurs
Constructeurs dépréciés
KeyEvent( Component source, int id, long when, int modifiers, int keyCode ) |
|
KeyEvent( Component source, int id, long when, int modifiers, int keyCode, char keyChar ) |
|
KeyEvent( Component source, int id, long when, int modifiers, int keyCode, char keyChar, int keyLocation ) |
|
Liste des propriétés (getters/setters)
Propriétés
Propriétés dépréciées
public |
boolean |
actionKey |
R/- |
public |
int |
extendedKeyCode |
R/- |
public |
char |
keyChar |
R/W |
public |
int |
keyCode |
R/W |
public |
int |
keyLocation |
R/- |
public |
int |
modifiers |
-/W |
Propriétés héritées de la classe java.awt.event.InputEvent
altDown, altGraphDown, consumed, controlDown, metaDown, modifiers, modifiersEx, shiftDown, when
Propriétés héritées de la classe java.awt.event.ComponentEvent
component
Propriétés héritées de la classe java.awt.AWTEvent
consumed, iD, source
Propriétés héritées de la classe java.util.EventObject
source
Propriétés héritées de la classe java.lang.Object
class
Liste des méthodes
Toutes les méthodes
Méthodes d'instance
Méthodes statiques
Méthodes concrètes
Méthodes abstraites
Méthodes dépréciées
public |
int |
getExtendedKeyCode() |
|
public static |
int |
getExtendedKeyCodeForChar( int c ) |
|
public |
char |
getKeyChar() |
|
public |
int |
getKeyCode() |
|
public |
int |
getKeyLocation() |
|
public static |
String |
getKeyModifiersText( int modifiers ) |
|
public static |
String |
getKeyText( int keyCode ) |
|
public |
boolean |
isActionKey() |
|
public |
String |
paramString() |
|
public |
void |
setKeyChar( char keyChar ) |
|
public |
void |
setKeyCode( int keyCode ) |
|
public |
void |
setModifiers( int modifiers ) |
|
Méthodes héritées de la classe java.awt.event.InputEvent
consume, getMaskForButton, getModifiers, getModifiersEx, getModifiersExText, getWhen, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isShiftDown
Méthodes héritées de la classe java.awt.event.ComponentEvent
getComponent, paramString
Méthodes héritées de la classe java.awt.AWTEvent
consume, getID, isConsumed, paramString, setSource, toString
Méthodes héritées de la classe java.util.EventObject
getSource, toString
Méthodes héritées de la classe java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :