|
Modifier and Type |
Field and Description |
|
ACTION_EVENT |
static int ACTION_EVENT
This event indicates that the user wants some action to occur.
public static final int ACTION_EVENT
-
This event indicates that the user wants some action to occur.
- See Also:
- Constant Field Values
|
|
ALT_MASK |
static int ALT_MASK
This flag indicates that the Alt key was down when
the event occurred.
public static final int ALT_MASK
-
This flag indicates that the Alt key was down when
the event occurred. For mouse events, this flag indicates that the
middle mouse button was pressed or released.
- See Also:
- Constant Field Values
|
|
arg |
java.lang.Object arg
An arbitrary argument of the event.
public java.lang.Object arg
-
An arbitrary argument of the event. The value of this field
depends on the type of event.
arg has been replaced by event specific property.
|
|
BACK_SPACE |
static int BACK_SPACE
The BackSpace key.
|
|
CAPS_LOCK |
static int CAPS_LOCK
The Caps Lock key, a non-ASCII action key.
public static final int CAPS_LOCK
-
The Caps Lock key, a non-ASCII action key.
- See Also:
- Constant Field Values
|
|
clickCount |
int clickCount
For MOUSE_DOWN events, this field indicates the
number of consecutive clicks.
public int clickCount
-
For MOUSE_DOWN events, this field indicates the
number of consecutive clicks. For other events, its value is
0 .
This field has been replaced by MouseEvent.getClickCount().
- See Also:
MouseEvent.getClickCount().
|
|
CTRL_MASK |
static int CTRL_MASK
This flag indicates that the Control key was down when the event
occurred.
public static final int CTRL_MASK
-
This flag indicates that the Control key was down when the event
occurred.
- See Also:
- Constant Field Values
|
|
DELETE |
static int DELETE
The Delete key.
|
|
DOWN |
static int DOWN
The Down Arrow key, a non-ASCII action key.
|
|
END |
static int END
The End key, a non-ASCII action key.
|
|
ENTER |
static int ENTER
The Enter key.
|
|
ESCAPE |
static int ESCAPE
The Escape key.
|
|
evt |
-
The next event. This field is set when putting events into a
linked list.
This has been replaced by EventQueue.
- See Also:
EventQueue
|
|
F1 |
static int F1
The F1 function key, a non-ASCII action key.
|
|
F10 |
static int F10
The F10 function key, a non-ASCII action key.
|
|
F11 |
static int F11
The F11 function key, a non-ASCII action key.
|
|
F12 |
static int F12
The F12 function key, a non-ASCII action key.
|
|
F2 |
static int F2
The F2 function key, a non-ASCII action key.
|
|
F3 |
static int F3
The F3 function key, a non-ASCII action key.
|
|
F4 |
static int F4
The F4 function key, a non-ASCII action key.
|
|
F5 |
static int F5
The F5 function key, a non-ASCII action key.
|
|
F6 |
static int F6
The F6 function key, a non-ASCII action key.
|
|
F7 |
static int F7
The F7 function key, a non-ASCII action key.
|
|
F8 |
static int F8
The F8 function key, a non-ASCII action key.
|
|
F9 |
static int F9
The F9 function key, a non-ASCII action key.
|
|
GOT_FOCUS |
static int GOT_FOCUS
A component gained the focus.
|
|
HOME |
static int HOME
The Home key, a non-ASCII action key.
|
|
id |
int id
Indicates which type of event the event is, and which
other Event variables are relevant for the event.
public int id
-
Indicates which type of event the event is, and which
other Event variables are relevant for the event.
This has been replaced by AWTEvent.getID()
- See Also:
AWTEvent.getID()
|
|
INSERT |
static int INSERT
The Insert key, a non-ASCII action key.
|
|
key |
int key
The key code of the key that was pressed in a keyboard event.
public int key
-
The key code of the key that was pressed in a keyboard event.
This has been replaced by KeyEvent.getKeyCode()
- See Also:
KeyEvent.getKeyCode()
|
|
KEY_ACTION |
static int KEY_ACTION
The user has pressed a non-ASCII action key.
public static final int KEY_ACTION
-
The user has pressed a non-ASCII action key.
The key field contains a value that indicates
that the event occurred on one of the action keys, which
comprise the 12 function keys, the arrow (cursor) keys,
Page Up, Page Down, Home, End, Print Screen, Scroll Lock,
Caps Lock, Num Lock, Pause, and Insert.
- See Also:
- Constant Field Values
|
|
KEY_ACTION_RELEASE |
static int KEY_ACTION_RELEASE
The user has released a non-ASCII action key.
public static final int KEY_ACTION_RELEASE
-
The user has released a non-ASCII action key.
The key field contains a value that indicates
that the event occurred on one of the action keys, which
comprise the 12 function keys, the arrow (cursor) keys,
Page Up, Page Down, Home, End, Print Screen, Scroll Lock,
Caps Lock, Num Lock, Pause, and Insert.
- See Also:
- Constant Field Values
|
|
KEY_PRESS |
static int KEY_PRESS
The user has pressed a normal key.
|
|
KEY_RELEASE |
static int KEY_RELEASE
The user has released a normal key.
|
|
LEFT |
static int LEFT
The Left Arrow key, a non-ASCII action key.
|
|
LIST_DESELECT |
static int LIST_DESELECT
An item in a list has been deselected.
public static final int LIST_DESELECT
-
An item in a list has been deselected.
- See Also:
- Constant Field Values
|
|
LIST_SELECT |
static int LIST_SELECT
An item in a list has been selected.
|
|
LOAD_FILE |
static int LOAD_FILE
A file loading event.
|
|
LOST_FOCUS |
static int LOST_FOCUS
A component lost the focus.
|
|
META_MASK |
static int META_MASK
This flag indicates that the Meta key was down when the event
occurred.
public static final int META_MASK
-
This flag indicates that the Meta key was down when the event
occurred. For mouse events, this flag indicates that the right
button was pressed or released.
- See Also:
- Constant Field Values
|
|
modifiers |
int modifiers
The state of the modifier keys.
public int modifiers
-
The state of the modifier keys.
This is replaced with InputEvent.getModifiers()
In java 1.1 MouseEvent and KeyEvent are subclasses
of InputEvent.
- See Also:
InputEvent.getModifiers()
|
|
MOUSE_DOWN |
static int MOUSE_DOWN
The user has pressed the mouse button.
public static final int MOUSE_DOWN
-
The user has pressed the mouse button. The ALT_MASK
flag indicates that the middle button has been pressed.
The META_MASK flag indicates that the
right button has been pressed.
- See Also:
ALT_MASK ,
META_MASK ,
Constant Field Values
|
|
MOUSE_DRAG |
static int MOUSE_DRAG
The user has moved the mouse with a button pressed.
public static final int MOUSE_DRAG
-
The user has moved the mouse with a button pressed. The
ALT_MASK flag indicates that the middle
button is being pressed. The META_MASK flag indicates
that the right button is being pressed.
- See Also:
ALT_MASK ,
META_MASK ,
Constant Field Values
|
|
MOUSE_ENTER |
static int MOUSE_ENTER
The mouse has entered a component.
|
|
MOUSE_EXIT |
static int MOUSE_EXIT
The mouse has exited a component.
|
|
MOUSE_MOVE |
static int MOUSE_MOVE
The mouse has moved with no button pressed.
public static final int MOUSE_MOVE
-
The mouse has moved with no button pressed.
- See Also:
- Constant Field Values
|
|
MOUSE_UP |
static int MOUSE_UP
The user has released the mouse button.
public static final int MOUSE_UP
-
The user has released the mouse button. The ALT_MASK
flag indicates that the middle button has been released.
The META_MASK flag indicates that the
right button has been released.
- See Also:
ALT_MASK ,
META_MASK ,
Constant Field Values
|
|
NUM_LOCK |
static int NUM_LOCK
The Num Lock key, a non-ASCII action key.
public static final int NUM_LOCK
-
The Num Lock key, a non-ASCII action key.
- See Also:
- Constant Field Values
|
|
PAUSE |
static int PAUSE
The Pause key, a non-ASCII action key.
|
|
PGDN |
static int PGDN
The Page Down key, a non-ASCII action key.
|
|
PGUP |
static int PGUP
The Page Up key, a non-ASCII action key.
|
|
PRINT_SCREEN |
static int PRINT_SCREEN
The Print Screen key, a non-ASCII action key.
public static final int PRINT_SCREEN
-
The Print Screen key, a non-ASCII action key.
- See Also:
- Constant Field Values
|
|
RIGHT |
static int RIGHT
The Right Arrow key, a non-ASCII action key.
public static final int RIGHT
-
The Right Arrow key, a non-ASCII action key.
- See Also:
- Constant Field Values
|
|
SAVE_FILE |
static int SAVE_FILE
A file saving event.
|
|
SCROLL_ABSOLUTE |
static int SCROLL_ABSOLUTE
The user has moved the bubble (thumb) in a scroll bar,
moving to an "absolute" position, rather than to
an offset from the last postion.
public static final int SCROLL_ABSOLUTE
-
The user has moved the bubble (thumb) in a scroll bar,
moving to an "absolute" position, rather than to
an offset from the last postion.
- See Also:
- Constant Field Values
|
|
SCROLL_BEGIN |
static int SCROLL_BEGIN
The scroll begin event.
|
|
SCROLL_END |
static int SCROLL_END
The scroll end event.
|
|
SCROLL_LINE_DOWN |
static int SCROLL_LINE_DOWN
The user has activated the line down
area of a scroll bar.
public static final int SCROLL_LINE_DOWN
-
The user has activated the line down
area of a scroll bar.
- See Also:
- Constant Field Values
|
|
SCROLL_LINE_UP |
static int SCROLL_LINE_UP
The user has activated the line up
area of a scroll bar.
public static final int SCROLL_LINE_UP
-
The user has activated the line up
area of a scroll bar.
- See Also:
- Constant Field Values
|
|
SCROLL_LOCK |
static int SCROLL_LOCK
The Scroll Lock key, a non-ASCII action key.
public static final int SCROLL_LOCK
-
The Scroll Lock key, a non-ASCII action key.
- See Also:
- Constant Field Values
|
|
SCROLL_PAGE_DOWN |
static int SCROLL_PAGE_DOWN
The user has activated the page down
area of a scroll bar.
public static final int SCROLL_PAGE_DOWN
-
The user has activated the page down
area of a scroll bar.
- See Also:
- Constant Field Values
|
|
SCROLL_PAGE_UP |
static int SCROLL_PAGE_UP
The user has activated the page up
area of a scroll bar.
public static final int SCROLL_PAGE_UP
-
The user has activated the page up
area of a scroll bar.
- See Also:
- Constant Field Values
|
|
SHIFT_MASK |
static int SHIFT_MASK
This flag indicates that the Shift key was down when the event
occurred.
public static final int SHIFT_MASK
-
This flag indicates that the Shift key was down when the event
occurred.
- See Also:
- Constant Field Values
|
|
TAB |
static int TAB
The Tab key.
|
|
target |
java.lang.Object target
The target component.
public java.lang.Object target
-
The target component. This indicates the component over which the
event occurred or with which the event is associated.
This object has been replaced by AWTEvent.getSource()
- See Also:
EventObject.getSource()
|
|
UP |
static int UP
The Up Arrow key, a non-ASCII action key.
|
|
when |
long when
The time stamp.
|
|
WINDOW_DEICONIFY |
static int WINDOW_DEICONIFY
The user has asked the window manager to de-iconify the window.
public static final int WINDOW_DEICONIFY
-
The user has asked the window manager to de-iconify the window.
- See Also:
- Constant Field Values
|
|
WINDOW_DESTROY |
static int WINDOW_DESTROY
The user has asked the window manager to kill the window.
public static final int WINDOW_DESTROY
-
The user has asked the window manager to kill the window.
- See Also:
- Constant Field Values
|
|
WINDOW_EXPOSE |
static int WINDOW_EXPOSE
The user has asked the window manager to expose the window.
public static final int WINDOW_EXPOSE
-
The user has asked the window manager to expose the window.
- See Also:
- Constant Field Values
|
|
WINDOW_ICONIFY |
static int WINDOW_ICONIFY
The user has asked the window manager to iconify the window.
public static final int WINDOW_ICONIFY
-
The user has asked the window manager to iconify the window.
- See Also:
- Constant Field Values
|
|
WINDOW_MOVED |
static int WINDOW_MOVED
The user has asked the window manager to move the window.
public static final int WINDOW_MOVED
-
The user has asked the window manager to move the window.
- See Also:
- Constant Field Values
|
|
x |
int x
The x coordinate of the event.
public int x
-
The x coordinate of the event.
Replaced by MouseEvent.getX()
- See Also:
MouseEvent.getX()
|
|
y |
int y
The y coordinate of the event.
public int y
-
The y coordinate of the event.
Replaced by MouseEvent.getY()
- See Also:
MouseEvent.getY()
|