|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScriptHandler
Receiver of notifications from the VRML document about script declaration information.
| Method Summary | |
|---|---|
void |
endScriptDecl()
Notification of the end of a script declaration. |
void |
scriptFieldDecl(int access,
java.lang.String type,
java.lang.String name,
java.lang.Object value)
Notification of a script's field declaration. |
void |
startScriptDecl()
Notification of the start of a script declaration. |
| Method Detail |
|---|
void startScriptDecl()
throws SAVException,
VRMLException
endScriptDecl() call belong to this
script node. This method will be called after the ContentHandler
startNode() method call. All DEF information is contained
in that method call and this just signifies the start of script
processing so that we know to treat the field parsing callbacks a
little differently.
SAVException - This call is taken at the wrong time in the
structure of the document.
VRMLException - This call is taken at the wrong time in the
structure of the document.
void endScriptDecl()
throws SAVException,
VRMLException
endNode() callback.
SAVException - This call is taken at the wrong time in the
structure of the document.
VRMLException - This call is taken at the wrong time in the
structure of the document.
void scriptFieldDecl(int access,
java.lang.String type,
java.lang.String name,
java.lang.Object value)
throws SAVException,
VRMLException
url, mustEvaluate and
directOutput fields. These fields use the normal field
callbacks of ContentHandler.
If the current parsing is in a proto and the field "value" is defined
with an IS statement then the value returned here is null. There will
be a subsequent call to the ProtoHandlers protoIsDecl()
method with the name of the field included.
access - The access type (eg exposedField, field etc)type - The field type (eg SFInt32, MFVec3d etc)name - The name of the fieldvalue - The default value of the field as either String or
String[]. Null if not allowed.
SAVException - This call is taken at the wrong time in the
structure of the document.
VRMLException - This call is taken at the wrong time in the
structure of the document.
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||