Package org.web3d.vrml.scripting.jsai
Class JSAIFieldFactory
java.lang.Object
org.web3d.vrml.scripting.jsai.JSAIFieldFactory
- All Implemented Interfaces:
FieldFactory
Factory class for generating fields from a given node.
- Version:
- $Revision: 1.3 $
- Author:
- Justin Couch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConstField
(VRMLNodeType node, String fieldName) Create a constant field that represents an eventOut.createField
(VRMLNodeType node, String name, boolean checkEventIn) Create a field given a name from the node.
-
Constructor Details
-
JSAIFieldFactory
public JSAIFieldFactory()
-
-
Method Details
-
createField
Create a field given a name from the node.- Specified by:
createField
in interfaceFieldFactory
- Parameters:
node
- The node to create the field fromname
- The name of the field to fetchcheckEventIn
- true if we should check for an event in- Returns:
- An instance of the field class representing the field
- Throws:
InvalidEventInException
- The field is not an eventInInvalidExposedFieldException
- The field is not an exposedField
-
createConstField
Create a constant field that represents an eventOut.- Specified by:
createConstField
in interfaceFieldFactory
- Parameters:
node
- The node to create the field fromfieldName
- The name of the field to fetch- Returns:
- An instance of the field class representing the field
- Throws:
InvalidEventInException
- The field is not an eventOut
-