|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that must be implemented by applications that are registered for browser or field events
A x3d browser will use the interface to notify an observer whenever one of the defined events occurs.
Field Summary | |
static int |
ANCHOR_CLICKED
an anchor has been clicked |
static int |
END_RENDERING
|
static int |
FIELD_CHANGED
a field or eventOut has changed. |
static int |
INITIALIZED
The browser has completed the 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 |
START_RENDERING
|
static int |
URL_ERROR
An error occurred in loading X3D from a URL call, because of a parsing / file format error, connection error or other failure |
static int |
URL_LOADED
a URL was loaded successfully. |
Method Summary | |
boolean |
onEvent(java.awt.Event event)
This method is called from the X3D browser whenever an AWT event happens, see Component.handleEvent. |
boolean |
onEvent(int type,
java.lang.Object object,
java.lang.Object userData)
This method is called from the X3D browser whenever one of the X3D or browser events happens. |
Field Detail |
public static final int INITIALIZED
public static final int SHUTDOWN
public static final int URL_ERROR
public static final int URL_LOADED
public static final int FIELD_CHANGED
public static final int ANCHOR_CLICKED
public static final int START_RENDERING
public static final int END_RENDERING
public static final int LAST_IDENTIFIER
Method Detail |
public boolean onEvent(int type, java.lang.Object object, java.lang.Object userData)
The observer should not block the browser and must be implemented in a way that avoids dead locks with browser that use multithreading and synchronization.
type
- The type of the eventobject
- The object that is associated with the event, Field or Node.
object might be null
for certain events, e.g. SHUTDOWN.userdata
- The userdata that was specified when registering for the event.public boolean onEvent(java.awt.Event event)
The observer should not block the browser and must be implemented in a way that avoids dead locks with browser that use multithreading and synchronization.
event
- The awt event
|
Questions or comments. Copyright 1999, Bitmanagement Software, Inc. |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |