User manual for EverJ's Link Tree menu applet .
<APPLET codebase= "....." width=... height=... ... code="DTree.class"> ... </APPLET>
2.Source data.
This applet takes it's data from a source file(see previous
chapter).
This file contains data in SDL format(see
SDL). Source file contains some records, named struct,
label, image,action,
colors, font,screen
(see below explanation & examples), the first of them being the key
generic record, the next three of them being individual node context, and
the last three being the system context.
struct:
root:n1,n2,n3,....;
n1:...;
n2:...,
n3:...,
................
;
All of the word expressions inside struct are interpreted as tree node's identifiers. Each internal record expresses the nesting relationship, the header being container's ID, and the body being the list of the nested nodes. The root record is obligatory, it points to the list of those nodes which will appear on the screen just after initialisation. All nodes appears on the screen in the same order as they were listed here.
label:
n1:lab1;
n2:lab2;
n3:lab3;
........
;
Record headers inside label are interpreted as tree node identifiers, record bodies as containing string expression which is the node label. In absence of appropriate record, the node label will be defined as equal to node identifier, the first character being converted to the upper case.
image:
id:link;
........
;
Each record header inside action is interpreted as tree node's identifier, body - as containing the hiperlink expression specifying the image URL, absolute or relative to the current document base.
action:
id:hiperlink[,target];
................
;
Each record header inside action is interpreted as tree node's identifier, body - as containing the hiperlink expression and optionally the word expression, the first specifying the document's URL, absolute or relative to the current document base, and the second specifying the target frame to load in. The frame can be specified by name or by the special word from the following list: _self, _blanc, _parent, _top. If the target isn't specified, its value is set to _self.
colors:
background:color1;
lines:color2;
selection:color3;
text:color4,color5,color6;
;
font:
name:font_name;
size:font_size;
style:style_1[, style_2];
;
screen:
shift: N1;
margins: N2, N3;
origin: N4;
height: N5;
expand: a_way;
;
***START***
// Example #2 source file
root:a,b,c,source,next,prev;
a:a1,a2;
a1:a11,a12;
a2:a21,a22;
b:b1,b2;
b1:b11,b12;
b2:b21,b22;
c:c1,c2,c3;
c1:c11,c12;
c2:c21,c22;
;
// Explanation of the above record
next:"Next example";
prev:"Previous Example";
a:"Apple Computers (C)";
a1:"General Info";
a2:"Sys Info";
a11:"Finances";
a12:"History";
a21:"PowerPC";
a22:"Rhapsody";
b:"Microsoft (C)";
b1:"General Info";
b2:"Sys Info";
b11:"Finances";
b12:"History";
b21:"x86+";
b22:"NT/95";
c:"Sun (C)";
c1:"General Info";
c2:"Sys Info";
c11:"Finances";
c12:"History";
c21:"UltraSPARC";
c22:"Solaris";
c3:"JavaSoft";
;
// Explanation of the above record
a1:'image1.gif';
b1:'image2.gif';
**:'icon.gif';
;
// Explanation of the above record
a:'www.apple(c).zzz';
a1:'www.apple(c).zzz/GeneralInfo/';
a2:'www.apple(c).zzz/Sys Info/';
a11:'www.apple(c).zzz/Finances/';
a12:'www.apple(c).zzz/History/';
a21:'www.apple(c).zzz/PowerPC/';
a22:'www.apple(c).zzz/Rhapsody/';
b:'www.microsoft(c).zzz';
b1:'www.microsoft(c).zzz/GeneralInfo/';
b2:'www.microsoft(c).zzz/SysInfo/';
b11:'www.microsoft(c).zzz/Finances/';
b12:'www.microsoft(c).zzz/History/';
b21:'www.microsoft(c).zzz/x86+/';
b22:'www.microsoft(c).zzz/NT/95/';
c:'www.sun(c).zzz';
c1:'www.sun(c).zzz/general/';
c2:'www.sun(c).zzz/SysInfo/';
c11:'www.sun(c).zzz/Finances/';
c12:'www.sun(c).zzz/History/';
c21:'www.sun(c).zzz/UltraSPARC/';
c22:'www.sun(c).zzz/Solaris/';
next:'example3.html';
source:'example2.dat';
prev:'example1.html';
;
// Explanation of the above record
background:"c0c0c0";
lines:"000000";
selection:"c00000";
text:"808080","ffffff","00c0ff";
;
// Explanation of the above record
name:"Helvetica";
size:12;
style:bold;
;
// Explanation of the above record
shift:22;
margins:5,3;
origin:5;
height:22;
expand:auto;
;
// Explanation of the above record
***END***