FreeWRL / FreeX3D
4.3.0
EventOutSFString.java
1
package
vrml.external.field;
2
//JAS import java.util.*;
3
import
vrml.external.field.FieldTypes;
4
import
vrml.external.Browser;
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
}
vrml.external.field.EventOutSFString
Definition
EventOutSFString.java:7
vrml.external.field.EventOut
Definition
EventOut.java:6
vrml.external.field.FieldTypes
Definition
FieldTypes.java:5
command
Definition
common.c:764
src
java
vrml
external
field
EventOutSFString.java
Generated by
1.11.0