CatalogueSirius Logo 

 

Simple Tree Example

In this first example we have kept the supplied parameters to a bear minimum to first demonstrate the basics of incorporating the tree into a web page. Here we simple add the applet to the web page and construct a tree of just two nodes to the root of the tree.

And here is the html code,


<applet code="TreeApplet" width="250" height="300" archive="Treemenu.jar">

<param name="nodeOffset" value="25">

<!-- Images -->
<param name="image1" value="closed|./IconImages/closedfolder.gif">
<param name="image2" value="open|./IconImages/openfolder.gif">
<param name="image3" value="document|./IconImages/document.gif">
<param name="image4" value="point|./IconImages/point.gif">

<param name="node1" value="products|root|Products and Services|Helvetica|N|10|0|0|0|true|closed|open">
<param name="node2" value="company|root|Company Information|Helvetica|N|10|0|0|0|true|closed|open">

</applet>


Please Note: Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.


[Copyright © 1997 - 2003 Sirius Computer Consultants Limited - All rights reserved. ]