FreeWRL / FreeX3D 4.3.0
EventOutSFString.java
1package vrml.external.field;
2//JAS import java.util.*;
3import vrml.external.field.FieldTypes;
4import vrml.external.Browser;
5
6
7public class EventOutSFString extends EventOut {
8 public EventOutSFString() {EventType = FieldTypes.SFSTRING;}
9
10 public String getValue() {
11
12 if (RLreturn == null) {
13 String rep;
14 rep = Browser.SendEventOut (nodeptr, offset, datasize, datatype, command);
15 if (rep.length() > 2) {
16 // remove quotes at the beginning and end
17 rep = rep.substring (1,rep.length()-1);
18 }
19 return rep;
20 } else {
21 return RLreturn;
22 }
23 }
24}