FreeWRL / FreeX3D
4.3.0
FWSFBool.java
1
package
sai;
2
import
org.web3d.x3d.sai.*;
3
4
public
class
FWSFBool
extends
FreeWRLField
implements
SFBool
{
5
FreeWRLBrowser
browser;
6
7
public
FWSFBool
(
FreeWRLFieldDefinition
def,
FreeWRLBrowser
b) {
8
super(def, b);
9
browser = b;
10
}
11
12
public
boolean
getValue()
throws
InvalidFieldException
{
13
checkValid();
14
return
RLreturn.equals(
"TRUE"
);
15
}
16
17
public
void
setValue(
boolean
value)
throws
InvalidFieldException
{
18
checkValid();
19
if
(value) {
20
browser.newSendEvent(
this
,
"TRUE"
);
21
}
else
{
22
browser.newSendEvent(
this
,
"FALSE"
);
23
}
24
}
25
}
org.web3d.x3d.sai.InvalidFieldException
Definition
InvalidFieldException.java:3
sai.FWSFBool
Definition
FWSFBool.java:4
sai.FreeWRLBrowser
Definition
FreeWRLBrowser.java:20
sai.FreeWRLFieldDefinition
Definition
FreeWRLFieldDefinition.java:4
sai.FreeWRLField
Definition
FreeWRLField.java:4
org.web3d.x3d.sai.SFBool
Definition
SFBool.java:3
src
java
sai
FWSFBool.java
Generated by
1.11.0