FreeWRL / FreeX3D 4.3.0
EventOutSFBool.java
1package vrml.external.field;
2//JAS import java.util.*;
3import vrml.external.Browser;
4import vrml.external.field.FieldTypes;
5
6
7public class EventOutSFBool extends EventOut {
8 public EventOutSFBool() {EventType = FieldTypes.SFBOOL;}
9
10 public boolean getValue() {
11 String rep;
12
13 if (RLreturn == null) {
14 rep = Browser.SendEventOut (nodeptr, offset, datasize, datatype, command);
15 } else {
16 rep = RLreturn;
17 }
18 return rep.equals("TRUE");
19 }
20}