User manual for EverJ's Easy Links menu applet (text-only version).
<APPLET codebase= "....." width=... height=...
... code="easy.class"> ... </APPLET>
or
<APPLET codebase= "....." width=... height=... ... code="easyUP.class">
... </APPLET>
struct is the obligatory generic record. It looks like following:
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 is the context of node's label. The record looks like following:
label:
n1:lab1[,lab1h];
n2:lab2[,lab2h];
n3:lab3[,lab3h];
................
;
Record headers inside label are interpreted as tree node's identifiers, bodies as containing 1 or 2 string expressions, the first being node's label in normal state and the second being node's label in highlighted state. In absence of second string highlighted state label will be defined as equal to the first string, but converted to the upper case. In absence of appropriate record at all, node's normal state label will be defined as equal to it's identifier and it's highlighted state label derived as descibed above.
bounds is the context of node's colored area bounds. The record looks like following:
bounds:
id:string1[,string2];
................
;
Each record header inside bounds is interpreted as tree node's identifier, body - as containing 1 or 2 string expressions, the first describing it's colored area in normal state and the second describing the same relative to it's highlighted state. In absence of the 2-nd string it's taken as equal to the 1-st. This strings have the following format:
"sp0,sp1,sp2,sp3"
where sp0,sp1,sp2,sp3 are the decimal integer numbers,
representing the parameters of colored area:
sp0 - the spacing between area's left border and node cell left
border, in pixels, may be negative; sp1 - the spacing between area's
upper border and node cell upper border, in pixels, may be negative;
sp2 - the spacing between area's right border and node cell right
border, in pixels, may be negative;
sp3 - the spacing between area's down border and node cell down
border, in pixels, may be negative;
action - the context of node's hiperlink. It specifies the document URL and the frame which this document is to be loaded into, when the node is mouse clicked on. The record has the following format:
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, _this. The last word specifies that the hiperlik points to the new data file, which will be loade and performed immediately, without reloading of the whole page. If the target isn't specified, its value is set to _self.
colors - system context, specifying the node colors (it's colored area & label in normal / highlighted state). The record has the following format:
colors:
bars:color1l,color2l,...,colorNl;
items_n:color1-i-n,color2-i-n,...,colorM-i-n;
items_h:color1-i-h,color2-i-h,...,colorM-i-h;
root:color1-r,color2-r;
text_n:color1-t-n,color2-t-n...,colorN-t-n;
text_h:color1-t-h,color2-t-h,...,colorM-t-h;
;
font - system context for the label's font. The record has the following format:
font:
name:font_name;
size:font_size;
style:style_1[, style_2];
;
font_name - one of the following strings: "Dialog",
"Courier", "TimesRoman", "Helvetica".
font_size - integer number.
style_1, style_2 - word constant, one of
the following: plain, bold,
italic .
***START***
root:a1,a2,a3,a4,reload;
a1:a11,a12,a13,a14;
a11:a111,a112;
a12:a121;
a13:a131;
a2:a21,a22,a23;
a3:a31,a32,a33;
a31:a311,a312;
;
// explanation of the above record
a1:"chapter I","CHAPTER I";
a2:"chapter II","CHAPTER II";
a3:"+","";
a31:"chapter III","CHAPTER III";
a32:"chapter IV","CHAPTER IV";
a33:"chapter V","CHAPTER V";
;
// explanation of the above record
**:"1,1,1,1","0,3,2,-1";
;
// explanation of the above record
a1312: 'index.html';
a13117: 'new.html',_top;
reload: 'sourcefile.dat', _this;
;
// explanation of the above record
bars:"7fff7f","00ffff","ffff7f";
items:"7fff7f","00ffff","ffff7f";
root:"ffffff","ffffff";
text_n:"d00000","008000","0000c0";
text_h:"008000","0000c0","d00000";
;
// explanation of the above record
name:"Courier";
style:bold,italic;
size:"14";
;
// explanation of the above record
***END***