|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Representation of a node that defines more than one piece of its content at a list of URLs separate to this file that will also need loading.
This is the same system as used by the
VRMLExternalNodeType except expanded to provide
more than one field with external content.
The operation of this interface is to get the loader thread to set the load state as it is going. Once it has loaded the content it then tells the implementation about what it has found.
When fetching the URL list, it is expected that all URLs will be fully qualified. It will be up to the implementor to process the set URLs to contain only fully qualified URLs. For this, we will ensure that the world URL is set on every instance through the setWorldUrl() method.
| Field Summary |
| Fields inherited from interface org.web3d.vrml.nodes.VRMLExternalNodeType |
LOAD_COMPLETE, LOAD_FAILED, LOADING, NOT_LOADED |
| Method Summary | |
boolean |
checkValidContentType(int index,
java.lang.String mimetype)
Check to see if the given MIME type is one that would be supported as content coming into this node at the given field index. |
int |
getLoadState(int index)
Ask the state of the load of this node. |
java.lang.Class[] |
getPreferredClassTypes(int index)
Get the list of preferred content class types in order of preference. |
java.lang.String[] |
getUrl(int index)
Get the list of URLs for the given field index requested by this node. |
int[] |
getUrlFieldIndexes()
Get the list of field index values that require external content. |
void |
setContent(int index,
java.lang.String mimetype,
java.lang.Object content)
Set the content of this node to the given object. |
void |
setLoadedURI(int fieldIdx,
java.lang.String URI)
Notify the node which URL was used to load the content. |
void |
setLoadState(int index,
int state)
Set the load state of the node. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLExternalNodeType |
addContentStateListener, addUrlListener, getWorldUrl, removeContentStateListener, removeUrlListener, setWorldUrl |
| Method Detail |
public int[] getUrlFieldIndexes()
public int getLoadState(int index)
index - The field index we want to set the state for
public void setLoadState(int index,
int state)
index - The field index we want to set the state for.state - The new state of the node
public java.lang.String[] getUrl(int index)
throws InvalidFieldException
index - The field index we want URL values for
InvalidFieldException - The field index is not valid for the query
public boolean checkValidContentType(int index,
java.lang.String mimetype)
throws InvalidFieldException
index - The field index we want to check content type for.mimetype - The type to check for
InvalidFieldException - The field index is not valid for the query
public java.lang.Class[] getPreferredClassTypes(int index)
throws InvalidFieldException
index - THe field index for the prefered types.
InvalidFieldException - The field index is not valid for the query
public void setContent(int index,
java.lang.String mimetype,
java.lang.Object content)
throws java.lang.IllegalArgumentException,
InvalidFieldException
index - The field index to set the content formimetype - The mime type of this object if knowncontent - The content of the object
IllegalArguementException - The content object is not supported
InvalidFieldException - The field index is not valid for the query
java.lang.IllegalArgumentException
public void setLoadedURI(int fieldIdx,
java.lang.String URI)
fieldIdx - The field index that was loadedURI - The URI used to load this content
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||