Xj3D VRML/X3D Code API

org.web3d.vrml.nodes.loader
Interface ScriptLoadStatusListener

All Known Implementing Classes:
DefaultScriptManager

public interface ScriptLoadStatusListener

An internal listener to allow the ScriptLoader and ScriptManager to communicate load state for the scripts.

The listener interface is used rather than a common array because the loader is typically operating on a separate thread and having a queue between the two will have multi-threaded issues. Using this listener reduces the multi-threaded issues to just one class and thus making it easy to manage.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Method Summary
 void loadCompleted(VRMLScriptNodeType script)
          Notification of a successful load of a script.
 void loadFailed(VRMLScriptNodeType script)
          Notification of a failed load of a script when none of the URLs could be loaded.
 

Method Detail

loadCompleted

public void loadCompleted(VRMLScriptNodeType script)
Notification of a successful load of a script. Not used for failed loads.

Parameters:
script - The script that was loaded correctly

loadFailed

public void loadFailed(VRMLScriptNodeType script)
Notification of a failed load of a script when none of the URLs could be loaded.

Parameters:
script - The script that failed to load

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium