home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / CFJava.cab / CFJavaRuntime.cab / allaire / controls / Tester.class (.txt) < prev   
Encoding:
Java Class File  |  1999-03-31  |  1.3 KB  |  27 lines

  1. package allaire.controls;
  2.  
  3. import netscape.application.Application;
  4. import netscape.application.Color;
  5.  
  6. public class Tester extends Application {
  7.    CFTree cfTree;
  8.  
  9.    public void init() {
  10.       super.init();
  11.       ((Application)this).mainRootView().setColor(Color.lightGray);
  12.       this.cfTree = new CFTree(20, 20, 400, 300, ((Application)this).mainRootView());
  13.       int var1 = this.cfTree.addItem("Root", -1);
  14.       this.cfTree.itemAt(var1);
  15.       int var2 = this.cfTree.addItem("Child One", var1);
  16.       this.cfTree.setItemImageURL(var2, "http://127.0.0.1/Default.gif", "http://127.0.0.1/Open.gif");
  17.       int var3 = this.cfTree.addItem("Child One, Number 1 Son", var2);
  18.       this.cfTree.setItemURL(var3, "http://www.nasdaq.com", "", false);
  19.       this.cfTree.addItem("Child One, Number 2 Son", var2);
  20.       this.cfTree.addItem("Child One, Number 3 Son", var2);
  21.       var2 = this.cfTree.addItem("Child Two", var1);
  22.       this.cfTree.setItemImageURL(var2, "http://127.0.0.1/Default.gif", "http://127.0.0.1/Open.gif");
  23.       var2 = this.cfTree.addItem("Child Three", var1);
  24.       this.cfTree.setItemImageURL(var2, "http://127.0.0.1/Default.gif", "http://127.0.0.1/Open.gif");
  25.    }
  26. }
  27.