2 import org.web3d.x3d.sai.*;
13 StringTokenizer tokens;
17 if (RLreturn == null) {
18 rep = browser.SendEventOut(nodePtr, offset, datasize, dataType,
command);
23 tokens =
new StringTokenizer(rep);
24 if (dataType.equals(
"q")) {
25 lines = tokens.countTokens();;
27 lines = Integer.valueOf(tokens.nextToken()).intValue();
35 browser.newSendEvent(
this, val);
41 StringTokenizer tokens;
47 if (RLreturn == null) {
48 rep = browser.SendEventOut(nodePtr, offset, datasize, dataType,
command);
53 System.out.println(
"got rep: " + rep);
55 tokens =
new StringTokenizer(rep);
56 if (
this instanceof
MFNode) {
57 lines = tokens.countTokens();
59 lines = Integer.valueOf(tokens.nextToken()).intValue();
62 if ((index > lines) || (index < 0)) {
63 throw new ArrayIndexOutOfBoundsException(
"MFField remove passed index out of bounds");
70 if (
this instanceof MFNode) {
72 size = tokens.countTokens();
74 for (count1 = 0; count1 < lines; count1++) {
75 for (count2 = 0; count2 < size; count2++) {
76 if (count1 != index) {
77 browser.SendChildEvent(nodePtr, offset,
command,tokens.nextToken());
85 size = tokens.countTokens() / lines;
86 for (count1 = 0; count1 < lines; count1++) {
87 for (count2 = 0; count2 < size; count2++) {
88 if (count1 != index) {
89 val = val + tokens.nextToken();
95 browser.newSendEvent(
this, val);