vrml.eai.field
Class EventOutSFString

java.lang.Object
  extended by vrml.eai.field.BaseField
      extended by vrml.eai.field.EventOut
          extended by vrml.eai.field.EventOutSFString

public abstract class EventOutSFString
extends EventOut

Reference to a SFString event-out slot. Use this class to read values from SFString event-out slots.

The following example demonstrates how to get the description field of an Anchor node:

 vrml.eai.Node anchor = ...;
 vrml.eai.field.EventOutSFString description_changed = (vrml.eai.field.EventOutSFString)anchor.getEventOut("description_changed");
 System.out.println("description = " + description_changed.getValue());
 


Field Summary
 
Fields inherited from class vrml.eai.field.BaseField
MFColor, MFFloat, MFInt32, MFNode, MFRotation, MFString, MFTime, MFVec2f, MFVec3f, SFBool, SFColor, SFFloat, SFImage, SFInt32, SFNode, SFRotation, SFString, SFTime, SFVec2f, SFVec3f
 
Constructor Summary
protected EventOutSFString()
          Default Constructor.
 
Method Summary
abstract  java.lang.String getValue()
          Returns the current value of the SFString event-out slot.
 
Methods inherited from class vrml.eai.field.EventOut
addVrmlEventListener, getUserData, removeVrmlEventListener, setUserData
 
Methods inherited from class vrml.eai.field.BaseField
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventOutSFString

protected EventOutSFString()
Default Constructor. This method is protected, i.e. you cannot create new instances of this class. The only way to get instances is via the Node.getEventOut(java.lang.String) method.

Method Detail

getValue

public abstract java.lang.String getValue()
Returns the current value of the SFString event-out slot.

The following example demonstrates how to get the description field of an Anchor node:

 vrml.eai.Node anchor = ...;
 vrml.eai.field.EventOutSFString description_changed = (vrml.eai.field.EventOutSFString)anchor.getEventOut("description_changed");
 System.out.println("description = " + description_changed.getValue());
 

Returns:
The string.