Class ECMAFieldFactory
java.lang.Object
org.web3d.vrml.scripting.ecmascript.builtin.ECMAFieldFactory
- All Implemented Interfaces:
FieldFactory
Factory class for generating fields from a given node.
- Version:
- $Revision: 1.8 $
- Author:
- Justin Couch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateField
(VRMLNodeType node, String name, boolean checkEventIn) Create a field given a name from the node.updateField
(Object field, VRMLNodeType node, String name, boolean checkEventIn) Update a field given a name from the node.
-
Constructor Details
-
ECMAFieldFactory
public ECMAFieldFactory()
-
-
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
-
updateField
Update a field given a name from the node. Will return an updated field or a new object as needed.- Specified by:
updateField
in interfaceFieldFactory
- Parameters:
field
- The field to updatenode
- 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
-