vrml.eai.field
Class EventInSFString
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventIn
vrml.eai.field.EventInSFString
public abstract class EventInSFString
- extends EventIn
Reference to a SFString event-in slot. Use this class to write
values into SFString event-in slots.
The following example demonstrates how to change the description of
an Anchor node:
vrml.eai.Node anchor = ...;
vrml.eai.field.EventInSFString set_description = (vrml.eai.field.EventInSFString)anchor.getEventIn("set_description");
set_description.setValue("Hello World!");
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 void |
setValue(java.lang.String value)
Sets the value of a SFString event-in slot. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventInSFString
protected EventInSFString()
- 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.getEventIn(java.lang.String)
method.
setValue
public abstract void setValue(java.lang.String value)
- Sets the value of a SFString event-in slot.
The following example demonstrates how to change the description of
an Anchor node:
vrml.eai.Node anchor = ...;
vrml.eai.field.EventInSFString set_description = (vrml.eai.field.EventInSFString)anchor.getEventIn("set_description");
set_description.setValue("Hello World!");
- Parameters:
value
- The new string value.