public interface ExternalBrowser
Browser interface that represents the additional abilities an external application is granted to the X3D browser.
A number of the methods in this application can take strings representing URLs. relative URL strings contained in URL fields of nodes or these method arguments are interpreted as follows:
| Modifier and Type | Method and Description |
|---|---|
void |
addBrowserListener(BrowserListener l)
Add a listener for browser events.
|
void |
beginUpdate()
Lock the output from the external interface to the browser as the code
is about to begin a series of updates.
|
void |
dispose()
Dispose the resources that are used by this instance.
|
void |
endUpdate()
Release the output of events from the external interface into the
X3D browser.
|
void |
removeBrowserListener(BrowserListener l)
Remove a listener for browser events.
|
void beginUpdate()
throws InvalidBrowserException
This call is a nesting call which means subsequent calls to beginUpdate are kept on a stack. No events will be released to the X3D browser until as many endUpdates have been called as beginUpdate.
InvalidBrowserException - The dispose method has been called on
this browser reference.ConnectionException - An error occurred in the connection to the
browser.void endUpdate()
throws InvalidBrowserException
This call is a nesting call which means subsequent calls to beginUpdate are kept on a stack. No events will be released to the X3D browser until as many endUpdates have been called as beginUpdate.
If no beginUpdate has been called before calling this method, it has no effect.
InvalidBrowserException - The dispose method has been called on
this browser reference.ConnectionException - An error occurred in the connection to the
browser.void addBrowserListener(BrowserListener l) throws InvalidBrowserException
l - The listener to add.java.lang.NullPointerException - If the provided listener reference is
nullInvalidBrowserException - The dispose method has been called on
this browser reference.ConnectionException - An error occurred in the connection to the
browser.void removeBrowserListener(BrowserListener l) throws InvalidBrowserException
l - The listener to removejava.lang.NullPointerException - If the provided listener reference is
nullInvalidBrowserException - The dispose method has been called on
this browser reference.ConnectionException - An error occurred in the connection to the
browser.void dispose()
Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.