InputEventNameInputEvent
DescriptionInputEvent is the root class for representing user input events. Input events are passed to listeners before the event source processes them. If one of the listeners consumes an event by using consume(), the event will not be processed by the event source peer. Class Definition
public abstract class java.awt.event.InputEvent extends java.awt.event.ComponentEvent { // Constants public final static int ALT_MASK; public final static int BUTTON1_MASK; public final static int BUTTON2_MASK; public final static int BUTTON3_MASK; public final static int CTRL_MASK; public final static int META_MASK; public final static int SHIFT_MASK; // Instance Methods public void consume(); public int getModifiers(); public long getWhen(); public boolean isAltDown(); public boolean isConsumed(); public boolean isControlDown(); public boolean isMetaDown(); public boolean isShiftDown(); } ConstantsALT_MASKpublic final static int ALT_MASKThe ALT key mask. ORed with other masks to form modifiers setting of event. BUTTON1_MASKpublic final static int BUTTON1_MASKThe mouse button 1 key mask. ORed with other masks to form modifiers setting of event. BUTTON2_MASKpublic final static int BUTTON2_MASKThe mouse button 2 key mask. ORed with other masks to form modifiers setting of event. This constant is identical to ALT_MASK. BUTTON3_MASKpublic final static int BUTTON3_MASKThe mouse button 3 key mask. ORed with other masks to form modifiers setting of event. This constant is identical to ALT_MASK. CTRL_MASKpublic final static int CTRL_MASKThe Control key mask. ORed with other masks to form modifiers setting of event. META_MASKpublic final static int META_MASKThe Meta key mask. ORed with other masks to form modifiers setting of event. SHIFT_MASKpublic final static int SHIFT_MASKThe Shift key mask. ORed with other masks to form modifiers setting of event. Instance Methodsconsumepublic void consume()
getModifierspublic int getModifiers()
getWhenpublic long getWhen()
isAltDownpublic boolean isAltDown()
isConsumedpublic boolean isConsumed()
isControlDownpublic boolean isControlDown()
isMetaDownpublic boolean isMetaDown()
isShiftDownpublic boolean isShiftDown()
See AlsoComponentEvent, KeyEvent, MouseEvent |
|