Basic HTML version of Foils prepared March 18 1998

Foil 23 Getting the Handle of Browser Object with EAI

From Scripting and EAI in VRML97 CPS616 -- Information Track of CPS -- Spring Semester 98. by Hasan Ozdemir (Geoffrey C. Fox)

VRML97 Example for EAI(This example allows user to play with several parameters of a Cylinder object. It shows how Java can get the handle of a browser object, handle of a node in the world, handle of a eventIn(addChildren)/ eventOut(removeChildren), and add another node to world through EAI.)
1 import vrml.external.field.*;
2 import vrml.external.exception.*;
3 import vrml.external.Node;
4 import vrml.external.Browser;
5 public class ExampleGetBrowser extends Applet {
6 Browser browser;
7 public void start()
8 { browser = (Browser) vrml.external.Browser.getBrowser(this); }
9 }
10 vrml.external.Browser is object supports the same feature we saw before in JSAI.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998