Event (Java Platform SE 8 ) (original) (raw)

Modifier and Type

Field

Description

static int

[ACTION_EVENT](../../java/awt/Event.html#ACTION%5FEVENT)

This event indicates that the user wants some action to occur.

static int

[ALT_MASK](../../java/awt/Event.html#ALT%5FMASK)

This flag indicates that the Alt key was down when the event occurred.

[Object](../../java/lang/Object.html "class in java.lang")

[arg](../../java/awt/Event.html#arg)

An arbitrary argument of the event.

static int

[BACK_SPACE](../../java/awt/Event.html#BACK%5FSPACE)

The BackSpace key.

static int

[CAPS_LOCK](../../java/awt/Event.html#CAPS%5FLOCK)

The Caps Lock key, a non-ASCII action key.

int

[clickCount](../../java/awt/Event.html#clickCount)

For MOUSE_DOWN events, this field indicates the number of consecutive clicks.

static int

[CTRL_MASK](../../java/awt/Event.html#CTRL%5FMASK)

This flag indicates that the Control key was down when the event occurred.

static int

[DELETE](../../java/awt/Event.html#DELETE)

The Delete key.

static int

[DOWN](../../java/awt/Event.html#DOWN)

The Down Arrow key, a non-ASCII action key.

static int

[END](../../java/awt/Event.html#END)

The End key, a non-ASCII action key.

static int

[ENTER](../../java/awt/Event.html#ENTER)

The Enter key.

static int

[ESCAPE](../../java/awt/Event.html#ESCAPE)

The Escape key.

[Event](../../java/awt/Event.html "class in java.awt")

[evt](../../java/awt/Event.html#evt)

The next event.

static int

[F1](../../java/awt/Event.html#F1)

The F1 function key, a non-ASCII action key.

static int

[F10](../../java/awt/Event.html#F10)

The F10 function key, a non-ASCII action key.

static int

[F11](../../java/awt/Event.html#F11)

The F11 function key, a non-ASCII action key.

static int

[F12](../../java/awt/Event.html#F12)

The F12 function key, a non-ASCII action key.

static int

[F2](../../java/awt/Event.html#F2)

The F2 function key, a non-ASCII action key.

static int

[F3](../../java/awt/Event.html#F3)

The F3 function key, a non-ASCII action key.

static int

[F4](../../java/awt/Event.html#F4)

The F4 function key, a non-ASCII action key.

static int

[F5](../../java/awt/Event.html#F5)

The F5 function key, a non-ASCII action key.

static int

[F6](../../java/awt/Event.html#F6)

The F6 function key, a non-ASCII action key.

static int

[F7](../../java/awt/Event.html#F7)

The F7 function key, a non-ASCII action key.

static int

[F8](../../java/awt/Event.html#F8)

The F8 function key, a non-ASCII action key.

static int

[F9](../../java/awt/Event.html#F9)

The F9 function key, a non-ASCII action key.

static int

[GOT_FOCUS](../../java/awt/Event.html#GOT%5FFOCUS)

A component gained the focus.

static int

[HOME](../../java/awt/Event.html#HOME)

The Home key, a non-ASCII action key.

int

[id](../../java/awt/Event.html#id)

Indicates which type of event the event is, and which other Event variables are relevant for the event.

static int

[INSERT](../../java/awt/Event.html#INSERT)

The Insert key, a non-ASCII action key.

int

[key](../../java/awt/Event.html#key)

The key code of the key that was pressed in a keyboard event.

static int

[KEY_ACTION](../../java/awt/Event.html#KEY%5FACTION)

The user has pressed a non-ASCII action key.

static int

[KEY_ACTION_RELEASE](../../java/awt/Event.html#KEY%5FACTION%5FRELEASE)

The user has released a non-ASCII action key.

static int

[KEY_PRESS](../../java/awt/Event.html#KEY%5FPRESS)

The user has pressed a normal key.

static int

[KEY_RELEASE](../../java/awt/Event.html#KEY%5FRELEASE)

The user has released a normal key.

static int

[LEFT](../../java/awt/Event.html#LEFT)

The Left Arrow key, a non-ASCII action key.

static int

[LIST_DESELECT](../../java/awt/Event.html#LIST%5FDESELECT)

An item in a list has been deselected.

static int

[LIST_SELECT](../../java/awt/Event.html#LIST%5FSELECT)

An item in a list has been selected.

static int

[LOAD_FILE](../../java/awt/Event.html#LOAD%5FFILE)

A file loading event.

static int

[LOST_FOCUS](../../java/awt/Event.html#LOST%5FFOCUS)

A component lost the focus.

static int

[META_MASK](../../java/awt/Event.html#META%5FMASK)

This flag indicates that the Meta key was down when the event occurred.

int

[modifiers](../../java/awt/Event.html#modifiers)

The state of the modifier keys.

static int

[MOUSE_DOWN](../../java/awt/Event.html#MOUSE%5FDOWN)

The user has pressed the mouse button.

static int

[MOUSE_DRAG](../../java/awt/Event.html#MOUSE%5FDRAG)

The user has moved the mouse with a button pressed.

static int

[MOUSE_ENTER](../../java/awt/Event.html#MOUSE%5FENTER)

The mouse has entered a component.

static int

[MOUSE_EXIT](../../java/awt/Event.html#MOUSE%5FEXIT)

The mouse has exited a component.

static int

[MOUSE_MOVE](../../java/awt/Event.html#MOUSE%5FMOVE)

The mouse has moved with no button pressed.

static int

[MOUSE_UP](../../java/awt/Event.html#MOUSE%5FUP)

The user has released the mouse button.

static int

[NUM_LOCK](../../java/awt/Event.html#NUM%5FLOCK)

The Num Lock key, a non-ASCII action key.

static int

[PAUSE](../../java/awt/Event.html#PAUSE)

The Pause key, a non-ASCII action key.

static int

[PGDN](../../java/awt/Event.html#PGDN)

The Page Down key, a non-ASCII action key.

static int

[PGUP](../../java/awt/Event.html#PGUP)

The Page Up key, a non-ASCII action key.

static int

[PRINT_SCREEN](../../java/awt/Event.html#PRINT%5FSCREEN)

The Print Screen key, a non-ASCII action key.

static int

[RIGHT](../../java/awt/Event.html#RIGHT)

The Right Arrow key, a non-ASCII action key.

static int

[SAVE_FILE](../../java/awt/Event.html#SAVE%5FFILE)

A file saving event.

static int

[SCROLL_ABSOLUTE](../../java/awt/Event.html#SCROLL%5FABSOLUTE)

The user has moved the bubble (thumb) in a scroll bar, moving to an "absolute" position, rather than to an offset from the last position.

static int

[SCROLL_BEGIN](../../java/awt/Event.html#SCROLL%5FBEGIN)

The scroll begin event.

static int

[SCROLL_END](../../java/awt/Event.html#SCROLL%5FEND)

The scroll end event.

static int

[SCROLL_LINE_DOWN](../../java/awt/Event.html#SCROLL%5FLINE%5FDOWN)

The user has activated the line down area of a scroll bar.

static int

[SCROLL_LINE_UP](../../java/awt/Event.html#SCROLL%5FLINE%5FUP)

The user has activated the line up area of a scroll bar.

static int

[SCROLL_LOCK](../../java/awt/Event.html#SCROLL%5FLOCK)

The Scroll Lock key, a non-ASCII action key.

static int

[SCROLL_PAGE_DOWN](../../java/awt/Event.html#SCROLL%5FPAGE%5FDOWN)

The user has activated the page down area of a scroll bar.

static int

[SCROLL_PAGE_UP](../../java/awt/Event.html#SCROLL%5FPAGE%5FUP)

The user has activated the page up area of a scroll bar.

static int

[SHIFT_MASK](../../java/awt/Event.html#SHIFT%5FMASK)

This flag indicates that the Shift key was down when the event occurred.

static int

[TAB](../../java/awt/Event.html#TAB)

The Tab key.

[Object](../../java/lang/Object.html "class in java.lang")

[target](../../java/awt/Event.html#target)

The target component.

static int

[UP](../../java/awt/Event.html#UP)

The Up Arrow key, a non-ASCII action key.

long

[when](../../java/awt/Event.html#when)

The time stamp.

static int

[WINDOW_DEICONIFY](../../java/awt/Event.html#WINDOW%5FDEICONIFY)

The user has asked the window manager to de-iconify the window.

static int

[WINDOW_DESTROY](../../java/awt/Event.html#WINDOW%5FDESTROY)

The user has asked the window manager to kill the window.

static int

[WINDOW_EXPOSE](../../java/awt/Event.html#WINDOW%5FEXPOSE)

The user has asked the window manager to expose the window.

static int

[WINDOW_ICONIFY](../../java/awt/Event.html#WINDOW%5FICONIFY)

The user has asked the window manager to iconify the window.

static int

[WINDOW_MOVED](../../java/awt/Event.html#WINDOW%5FMOVED)

The user has asked the window manager to move the window.

int

[x](../../java/awt/Event.html#x)

The x coordinate of the event.

int

[y](../../java/awt/Event.html#y)

The y coordinate of the event.