Enum PageEvent
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<PageEvent>
,Constable
Page.setEvent()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFires when the user clicks the mouse on the Page.Fires when the uesr double-clicks on the Page.Fires after a timeout if theFontLoader
fails to load all custom fonts.Fires when theFontLoader
completes loading custom fonts.Fires repeatedly (every 10 ms by default) when the system is idle (i.e., not busy running other scripts) after the page is loaded.Fires when a user presses a key on the keyboard.Fires when the page has finished loading.Fires when the left mouse button is pressed on the Page.Fires when the mouse moves on the Page.Fires when the left mouse button released on the Page.Fires when thePage.getOrientation()
changes due to browser-window resize or rotation of a mobile device.Fires when the browser window is resized by the user.Fires when the right mouse button is pressed on the Page.Fires when the right mouse button is clicked on the page.Fires when the page is exited or unloaded. -
Method Summary
-
Enum Constant Details
-
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.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "idle". -
LOAD
Fires when the page has finished loading. It corresponds to the browser 'load' event normally handled by window.onload.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "load". -
UNLOAD
Fires when the page is exited or unloaded. It corresponds to the browser 'unload' event normally handled by window.onunload.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "unload". -
RESIZE
Fires when the browser window is resized by the user. It corresponds to the browser 'resize' event normally handled by window.onresize.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "resize". -
MOUSEDOWN
Fires when the left mouse button is pressed on the Page.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "mouseDown". -
RIGHTMOUSEDOWN
Fires when the right mouse button is pressed on the Page.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "rightMouseDown". -
MOUSEMOVE
Fires when the mouse moves on the Page.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "mouseMove". -
MOUSEUP
Fires when the left mouse button released on the Page.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "mouseUp". -
CLICK
Fires when the user clicks the mouse on the Page.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "click". -
DOUBLECLICK
Fires when the uesr double-clicks on the Page.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "doubleClick". -
SHOWCONTEXTMENU
Fires when the right mouse button is clicked on the page. If your event handler for this event returns false, the native browser context menu will be suppressed.
Note: On the Macintosh platform,Command+Click
may be used instead of right-button click to trigger a context menu event.
On the Opera browser,Ctrl+Shift+Click
should be used instead of right-button click.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "showContextMenu". -
KEYPRESS
Fires when a user presses a key on the keyboard.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "keyPress". -
ORIENTATIONCHANGE
Fires when thePage.getOrientation()
changes due to browser-window resize or rotation of a mobile device.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "orientationChange". -
FONTSLOADED
Fires when theFontLoader
completes loading custom fonts.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "fontsLoaded". -
FONTLOADINGFAILED
Fires after a timeout if theFontLoader
fails to load all custom fonts. see classMethod:Page.setEvent() see classMethod:Page.clearEvent()If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "fontLoadingFailed".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-