shout3d.core
Class NodeField

java.lang.Object
  |
  +--shout3d.core.Field
        |
        +--shout3d.core.NodeField

public class NodeField
extends Field

A Field whose value stores a Node.


Constructor Summary
NodeField(Node owner, java.lang.String fieldName, int usage, Node value)
          Constructs a new NodeField.
 
Method Summary
 Node getValue()
          Returns the current value of the field.
 void setValue(Node newVal)
          Sets the value of the field from the input argument.
 
Methods inherited from class shout3d.core.Field
addFieldObserver, addRoute, deleteRoute, getName, getNumRoutes, getOwner, getRoutedField, getTypeName, getUsage, getValueByString, isOfType, isRouted, removeFieldObserver, setValueByString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeField

public NodeField(Node owner,
                 java.lang.String fieldName,
                 int usage,
                 Node value)
Constructs a new NodeField.
Parameters:
owner - this Field's owner
name - this Field's name
usage - this Field's usage
value - this Field's value
Method Detail

setValue

public void setValue(Node newVal)
Sets the value of the field from the input argument. Afterward, notifies all registered FieldObservers.
Parameters:
newVal - the new value for the field

getValue

public Node getValue()
Returns the current value of the field.