Image and Icon Definition
Within the node definitions of the tree, images and icons may specified. But rather than specify the URL of an image
file every time an image is to be used, just the name of that image is specified. To enable this the images first
have to be named via the "imageN" parameter. This parameter contains 2 elements:-
- Image name
- URL to the Image file
The image name can be anything you like the only stipulation is that it is unique. (ie. no two images are given the
same name).
For example if we have 3 images which are the icons used by the nodes, ""closedicon.gif", "openicon.gif"
and "document.gif" then we have define a set of image parameters like this:-
<param name="image1" value="closed|closedicon.gif">
<param name="image2" value="open|openicon.gif">
<param name="image3" value="document|document.gif">
Within the parameters and node definitions we would then simply refer to these as "closed", "open"
and "document".
|