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, LINE, LINE_BOX, or NO_LINE.
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.URL$n
$n is a node number corresponding to Forest.NODE$n parameter. The value of this parameter is the URL associated with the specified node. The URL can be specified using the NODE$n parameter inside a bracket. However, URL$n has to be used if a full URL needs to be used (e.g. http://java.sun.com).
Forest.TARGET$n
$n is a node number corresponding to Forest.URL$n parameter. The value of this parameter is the target frame to display the corresponding URL. This aprameter has to be used in pair with the Forest.URL$n parameter.
Forest.IMAGE$n
$n is a node number corresponding to Forest.NODE$n parameter. The value of this parameter is the image for the specified node.
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.MULTISELECT
TRUE if multiple nodes can be selected.
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 getWidget()
This method is overriden by actual applet to return the widget corresponding to this applet wrapper.
 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 getWidget
 public Component getWidget()
This method is overriden by actual applet to return the widget corresponding to this applet wrapper. User can use this method to access the underlying widget directly.

Returns:
Forest widget.
Overrides:
getWidget in class BaseA

All Packages  Class Hierarchy  This Package  Previous  Next  Index