public class BrowserEvent
extends java.util.EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_ERROR
An error has occurred that has caused the connection between the X3D player
and the external application to fail.
|
static java.lang.String |
ERROR_UNKNOWN_BROWSER_EVENT_VALUE
Error message if incorrect Browser event value encountered.
|
static int |
INITIALIZED
The X3D player has completed initial loading of the world.
|
static int |
LAST_IDENTIFIER
The number of reserved identifier numbers for event conditions.
|
static int |
SHUTDOWN
The currently loaded world is about to be unloaded.
|
static int |
URL_ERROR
An error occurred in loading a scene from a URL call.
|
| Constructor and Description |
|---|
BrowserEvent(java.lang.Object browser,
int action)
Create a new browser event.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getID()
Get the type of event that has occurred.
|
java.lang.String |
toString(int value)
Utility method providing the name of this event value.
|
public static final int INITIALIZED
public static final int SHUTDOWN
public static final int URL_ERROR
public static final int CONNECTION_ERROR
public static final int LAST_IDENTIFIER
public static final java.lang.String ERROR_UNKNOWN_BROWSER_EVENT_VALUE
public BrowserEvent(java.lang.Object browser,
int action)
browser - The source of the browser that generated this eventaction - The event type to createjava.lang.IllegalArgumentException - if the action or browser id are not legal valuespublic int getID()
INITIALIZED,
SHUTDOWN,
URL_ERROR,
CONNECTION_ERROR,
LAST_IDENTIFIERpublic java.lang.String toString(int value)
value - The BrowserEvent value of interest.Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.