|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Abstract representation of a class that can be used to provide script loading and initlisation facilities to the browser core.
The loader also takes part in the event model evaluation as well. For this,
it must hook into the URL change handling through the
VRMLUrlListener interface and participate
as part of the larger event model. Method calls are provided in this
interface for other classes
(eg EventModelEvaluator) to make
calls to at the appropriate time in the event model. This interface does
not extend the URLListener interface directly as it assumes that an
implementation may take other internal arrangements. It assumes that
listeners will be registered with the script nodes.
For VRML97/X3D conformant behaviour, the implied architecture of an implementation of this interface is 5 separate buckets of data:
| Method Summary | |
int |
getNumberInProgress()
Get the number of items in progress of loading. |
void |
loadScript(VRMLScriptNodeType script)
Attempt to load the script. |
void |
registerScriptingEngine(ScriptEngine engine)
Register a new scripting engine with this loader. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. |
void |
setStatusListener(ScriptLoadStatusListener l)
Set the script load status listener for this loader. |
void |
shutdown()
Notification that the manager needs to shut down all the currently running threads. |
void |
unregisterScriptingEngine(ScriptEngine engine)
Unregister a the scripting engine with this loader. |
| Method Detail |
public void setErrorReporter(ErrorReporter reporter)
reporter - The instance to use or nullpublic void registerScriptingEngine(ScriptEngine engine)
engine - The new engine instance to registerpublic void unregisterScriptingEngine(ScriptEngine engine)
engine - The engine instance to deregisterpublic void setStatusListener(ScriptLoadStatusListener l)
l - The listener instance to use or nullpublic void loadScript(VRMLScriptNodeType script)
script - The script instance to loadpublic int getNumberInProgress()
public void shutdown()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||