Package org.web3d.x3d.sai
Class BrowserEvent
java.lang.Object
java.util.EventObject
org.web3d.x3d.sai.BrowserEvent
- All Implemented Interfaces:
Serializable
Class representing events that happen to the VRML browser.
This event notifies listener classes about changes to the browser that may be of interest to the client. VRML events cannot be consumed in the way that java AWT events can be.
- Version:
- 1.1 3 August 1998
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
An error has occurred that has caused the connection between the browser and the external application to fail.static final int
The browser has completed the initial loading of the world.static final int
The number of reserved identifier numbers for event conditions.static final int
The currently loaded world is about to be unloaded.static final int
An error occurred in loading VRML from a URL call.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
INITIALIZED
public static final int INITIALIZEDThe browser has completed the initial loading of the world. Event is generated just after the scene has been loaded and just before the first event has been sent- See Also:
-
SHUTDOWN
public static final int SHUTDOWNThe currently loaded world is about to be unloaded. Called just before the scene is about to be unloaded. If another world is to replace this, then an initialize event will be generated following this one.- See Also:
-
URL_ERROR
public static final int URL_ERRORAn error occurred in loading VRML from a URL call. Source could be either a createVrmlFromURL call or loadURL.- See Also:
-
CONNECTION_ERROR
public static final int CONNECTION_ERRORAn error has occurred that has caused the connection between the browser and the external application to fail. This may be the VRML browser crashing, or a network connection falling over.- See Also:
-
LAST_IDENTIFIER
public static final int LAST_IDENTIFIERThe number of reserved identifier numbers for event conditions. Any value below this is considered to be a general VRML defined event as specified in the External Authoring Interface specification. Any values above this are browser specific messages.- See Also:
-
-
Constructor Details
-
BrowserEvent
Create a new browser event.- Parameters:
browser
- The source of the browser that generated this eventaction
- The event type to create- Throws:
IllegalArgumentException
- if the action or browser id are not legal values
-
-
Method Details
-
getID
public int getID()Get the type of event that has occurred.- Returns:
- The type of event as defined by the types
- See Also:
-