FreeWRL/FreeX3D  3.0.0
EventOutSFString.java
1 package vrml.external.field;
2 //JAS import java.util.*;
5 
6 
7 public 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 }