Class tea.set.ForestA
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.set.ForestA

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----tea.set.BaseA
                                           |
                                           +----tea.set.ForestA

public class ForestA
extends BaseA
ForestA is an applet wrapper for the Forest widget. Each node in the trees can be attached to an URL, which will be displayed when the node is selected.

Parameters supported by this applet includes:

Forest.STYLE
the style of the forest. @See Forest.
Forest.SEPARATOR
the separator used to separate node in a path. The default separator is dot '.'.
Forest.ICONONLY
TRUE if only open/close folder if mouse click is inside node icon.
Forest.OPENIMAGE
an URL pointing to the image used for openned folder node. The image is set to null if the value of this parameter is NULL.
Forest.CLOSEIMAGE
an URL pointing to the image used for closed folder node. The image is set to null if the value of this parameter is NULL.
Forest.LEAFIMAGE
an URL pointing to the image used for leaf node. The image is set to null if the value of this parameter is NULL.
Forest.NODE$n
$n is a number from 0 to the number of nodes to be added. The value of this parameter should be a dot separated string, optionally followed by an URL in bracket. If frame is used, the target frame can be specified by following the URL by a colon and the frame name inside the bracket. If the target is missing, the URL page will be displayed in _self by default.
Forest.LEVEL
number of levels to display initially. All nodes displayed if this parameter is missing.
Forest.FORCEOPEN
a comma separated list of paths. All node specified in the path list will have their force open mode set to true.
Forest.DEMO
add a control panel to demo different styles of forest if TRUE.
Example:
<applet code=tea/set/ForestA width=... height=...>
<param name=Forest.SEPARATOR value=".">
<param name=Forest.STYLE value=NO_LINE>
<param name=Forest.NODE0 value="Tea Set.Widgets.Folder">
<param name=Forest.NODE1 value="Tea Set.Widgets.Graph[gr.html:_self]">
<param name=Forest.NODE2 value="Tea Set.Widgets.Calendar">
<param name=Forest.NODE3 value="Tea Set.Widgets.Graph.Document">
<param name=Forest.NODE4 value="Tea Set.Widgets.Calendar.Group">
<param name=Forest.NODE5 value="Download.Shareware">
<param name=Forest.NODE6 value="Download.Shareware.Evaluation">
<param name=Forest.NODE7 value="Download.Shareware.Register">
<param name=Forest.NODE8 value="Download.Shareware.Purchase">
<param name=Forest.LEVEL value=2>
...
See Also:
Forest

Constructor Index

 o ForestA()

Method Index

 o handleEvent(Event)
Display a HTML page is one is specified for the selected node.
 o init()
Applet initialization method.

Constructors

 o ForestA
  public ForestA()

Methods

 o init
  public void init()
Applet initialization method.
Overrides:
init in class Applet
 o handleEvent
  public boolean handleEvent(Event e)
Display a HTML page is one is specified for the selected node.
Overrides:
handleEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index