|Java menu knowledge base|
XIXL - OPEN Command
The OPEN command is available in iSlide Pro-X Tree and iTree Pro-X Powertree.
It has varying functions.
1. iSlide Pro-X Tree
The OPEN command affects the conditions
for opening and closing a folder. You only need to specify it if you wish to differ
from the default setting (i.e. single click opens/closes). The opening/closing conditions
of folders should be set individually in the index file - so you can have folders with
different behaviour profiles in the same applet.
Example of use:
"TEXT:myText" "1" "1" "LINK:myPage.htm; OPEN:box" "Comment"
OPEN:doubleclick causes the affected folder to open and close only if
the mouse is double-clicked. This can be used to ensure that a single-click fires
the hyperlinks or scripts associated with a folder, and that a double-click fires
the folder opening/closing routine. Note that due to the idiosyncrasies of java, a
double-click event also triggers a single-click event.
OPEN:box causes the affected folder to open and close
(i) if the icon or plus/minus box receives a single-click, or (ii) the text
receives a double-click. A single-click on the text will only fire hyperlinks
or scripts you may have associated with the folder.
OPEN:move causes the affected folder to open and close
if the mouse moves over the folder (without any click action)
You may also use the syntax OPEN=doubleclick and OPEN=box. Any other value
for OPEN activates the default single-click behaviour.
2. iTree Pro-X Powertree
In this applet the OPEN command is used to specify any or all folders
which you wish to have opened when the applet first starts.
Example of use:
"TEXT:myFolder;OPEN:" "1" "1" "LINK:myPage.htm;" "Comment"
The above example forces the menu entry in question (if it is
a folder with children) to be open when the applet starts.
Watchpoint 1: if the folder is inside another folder which is closed,
you still won't see it. The OPEN command may need to be used several
times with each folder you wish to force open. Watchpoint 2: if the
number of visible menu items exceeds the value of the "menuclosetrigger"
parameter, then an automatic close of all folders will result.
Watchpoint 3: you may find the "startlevel" parameter more useful
for certain configurations.