Applet parameters are set using the <PARAM> tag. This tag has 2 attributes, NAME which is the name of the parameter, and VALUE which is the value the parameter holds. The HTML syntax for the <PARAM> tag is as follows:
<PARAM NAME="string" VALUE="string or number">
Below is a list of all the parameters in the 1 Awesome Java Tree applet that control the properties of the tree. Please note that the parameters for defining the actual nodes themselves have been excluded in this section. To learn how to define your tree structure and the nodes, please refer to the section Inserting Nodes Into The Tree.
IMPORTANT: All parameter names and values are case sensitive. For example, activeStyle and activestyle are not the same. Likewise, a value of "yes" is not the same as a value of "Yes".
NAME | VALUE | COMMENTS |
(please see Inserting Nodes Into The Tree) | caption^URL^target frame^status bar text^inactive bullet image^active bullet image^expanded bullet image | The value of this parameter is a string containing elements delimited by the "^" symbol.
|
fontface | font type | The font name of the text displayed in the nodes. Valid values are Dialog, SansSerif, Serif, Monospaced, Helvetica, TimesRoman, Courier, DialogInput, ZapfDingbats. |
fontsize | integer type | An integer representing the font size of the node fonts. The actual number used is specific to each font. |
fontstyle | [fsBold][fsItalic][fsPlain] | The font style of the nodes. |
indent | integer type | The number of pixels each node is to be indented. |
padding | integer type | The amount of padding in each node. |
activeStyle | [2D][3DButton][3DText] | Sets the active node's MouseOver effect. The effects are mutually exclusive:
|
defNodeColor | RGB HEX color type | The default color of nodes when they are first displayed. |
activeNodeColor | RGB HEX color type | The color of nodes when they are active (i.e. when the mouse pointer is over a node). |
clickedNodeColor | RGB HEX color type | The color of nodes when they are clicked. |
bullets | [yes][no] | selecting yes will cause bullets to be displayed in front of each node, no causes no bullet to be displayed. |
bulletImage | string/URL type | default URL or filename of the bullet image to be displayed in front of all nodes by default. |
expandedBulletImage | string/URL type | default URL or filename of the bullet image to be displayed in front of each active node. A node is said to be active when the mouse pointer is over it. |
activeBulletImage | string/URL | default URL or filename of the bullet image to be displayed in front of a node when it is clicked. |
bulletSize | float type | The size of bullets as a proportion of the node height. The value must be less than 1 for the bullets to be displayed correctly. |
active2DStyle | [sSquareRect][sRoundRect] [sFillSquareRect][sFillRoundRect] [sOval][sFillOval] | This parameter applies a 2D style to an active node. The following is a list describing each style:
|
active2DFillColor | RGB HEX color type (eg. A0F080) | The fill color used when the 2D active bullet style (i.e. activeStyle="2D") is used and the active2DStyle parameter is set to sFillSquareRect, sFillRoundRect, or sFillOval. |
active2DBorderColor | RGB HEX color type | The color of the border of the 2D shape around the node when the 2D active bullet style is used (i.e. activeStyle="2D"). |
active3DButtonBevelHeight | integer type | The height of the bevel when the 3D button active node style is used (i.e activeStyle="3DButton"). |
active3DButtonLightShadeColor | RGB HEX color type | The color of the lighter shade of the 3D button. |
active3DButtonDarktShadeColor | RGB HEX color type | The color of the darker shade of the 3D button. |
active3DTextShadeColor | RGB HEX color type | The color of the darker shade of the 3D button. |
active3DTextBevelHeight | integer type | The amount of popup to apply to the 3D text of the active node. |
default3DNodes | [yes][no] | When set to yes, all nodes receive the 3D text effect by default. |
backImage | string/URL type | the filename or URL of the background image of the applet. |
stretchImage | [yes][no] | Determines whether the background image is stretched to fit the applet window. |
lines | [yes][no] | This determines whether lines or branches will appear when a node is expanded. |
Copyright | constant string | This is the copyright parameter and must be set to a contant value of "Michael Cheong Mun Hoh" |