home *** CD-ROM | disk | FTP | other *** search
- package allaire.controls;
-
- import netscape.application.Application;
- import netscape.application.Color;
-
- public class Tester extends Application {
- CFTree cfTree;
-
- public void init() {
- super.init();
- ((Application)this).mainRootView().setColor(Color.lightGray);
- this.cfTree = new CFTree(20, 20, 400, 300, ((Application)this).mainRootView());
- int var1 = this.cfTree.addItem("Root", -1);
- this.cfTree.itemAt(var1);
- int var2 = this.cfTree.addItem("Child One", var1);
- this.cfTree.setItemImageURL(var2, "http://127.0.0.1/Default.gif", "http://127.0.0.1/Open.gif");
- int var3 = this.cfTree.addItem("Child One, Number 1 Son", var2);
- this.cfTree.setItemURL(var3, "http://www.nasdaq.com", "", false);
- this.cfTree.addItem("Child One, Number 2 Son", var2);
- this.cfTree.addItem("Child One, Number 3 Son", var2);
- var2 = this.cfTree.addItem("Child Two", var1);
- this.cfTree.setItemImageURL(var2, "http://127.0.0.1/Default.gif", "http://127.0.0.1/Open.gif");
- var2 = this.cfTree.addItem("Child Three", var1);
- this.cfTree.setItemImageURL(var2, "http://127.0.0.1/Default.gif", "http://127.0.0.1/Open.gif");
- }
- }
-