Enum Constant and Description |
---|
CLICK
Fires when the user clicks the mouse on the Page.
|
DOUBLECLICK
Fires when the uesr double-clicks on the Page.
|
IDLE
Fires repeatedly (every 10 ms by default) when the system is idle (i.e., not busy running other scripts) after the page
is loaded.
|
KEYPRESS
Fires when a user presses a key on the keyboard.
|
LOAD
Fires when the page has finished loading.
|
MOUSEDOWN
Fires when the left mouse button is pressed on the Page.
|
MOUSEMOVE
Fires when the mouse moves on the Page.
|
MOUSEUP
Fires when the left mouse button released on the Page.
|
ORIENTATIONCHANGE
Fires when the
Page.getOrientation changes due to browser-window
resize or rotation of a mobile device. |
RESIZE
Fires when the browser window is resized by the user.
|
RIGHTMOUSEDOWN
Fires when the right mouse button is pressed on the Page.
|
SHOWCONTEXTMENU
Fires when the right mouse button is clicked on the page.
|
UNLOAD
Fires when the page is exited or unloaded.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static PageEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PageEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PageEvent IDLE
public static final PageEvent LOAD
public static final PageEvent UNLOAD
public static final PageEvent RESIZE
public static final PageEvent MOUSEDOWN
public static final PageEvent RIGHTMOUSEDOWN
public static final PageEvent MOUSEMOVE
public static final PageEvent MOUSEUP
public static final PageEvent CLICK
public static final PageEvent DOUBLECLICK
public static final PageEvent SHOWCONTEXTMENU
Command+Click
may be used
instead of right-button click to trigger a context menu event.Ctrl+Shift+Click
should be used instead of right-button click.public static final PageEvent KEYPRESS
public static final PageEvent ORIENTATIONCHANGE
Page.getOrientation
changes due to browser-window
resize or rotation of a mobile device. see classMethod:Page.setEvent() see classMethod:Page.clearEvent()public static PageEvent[] values()
for (PageEvent c : PageEvent.values()) System.out.println(c);
public static PageEvent valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null