vrml.eai.field
Class EventOutSFString
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventOut
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());
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 |
Method Summary |
abstract java.lang.String |
getValue()
Returns the current value of the SFString event-out slot. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.