::CLASS htmltree PUBLIC

render rexx file tree as HTML

Requires

'fsobjects.cls' for all the boilerplate
'hashfunction.cls' to generate unique ids
'documents.cls' files, folders, rexx and text documents
'nodes.cls' html images to build the tree view
Definition at line 59 of htmltree.cls

Public Methods

  htmlclass (outq, rexxd, rdc, xleftq, emitted)
emit tree html for a class
  init (title, tree, hdest)
install
  maketreehtml ()
walk the tree and emit corrsponding HTML

Public Attributes

  foldernum
unique number for each folder in tree
  hdest
html output path
  title
tree title
  tree
the tree of folders and files

Private Methods

  emittreehtml (outq, f, leftq, islast)
process a folder into html
  treerexxprogram (outq, rfile, leftq, islast)
render a rexx program as tree html and

Instantiated by

rexxliterate.cls line 234

Feature Detail

::ATTRIBUTE tree
the tree of folders and files
Definition at line 60 of htmltree.cls
Dynamically referenced by
htmltree.cls line 73 "self~tree = tree"
htmltree.cls line 98 "self~emittreehtml(tp, self~tree, .queue~new, .true)"

::ATTRIBUTE foldernum
unique number for each folder in tree
Definition at line 61 of htmltree.cls
Dynamically referenced by
htmltree.cls line 75 "self~foldernum = 0"
htmltree.cls line 118 "self~foldernum = self~foldernum + 1"
htmltree.cls line 118 "self~foldernum = self~foldernum + 1"
htmltree.cls line 150 "node = node || .nodes~closednodelast(self~foldernum+1)"
htmltree.cls line 151 "else node = node || .nodes~closednode(self~foldernum+1)"
htmltree.cls line 152 "node = node || .nodes~folderclosed(self~foldernum+1)"
htmltree.cls line 157 "outq~queue('<div id="folder'self~foldernum+1'">')"
htmltree.cls line 190 "self~foldernum = self~foldernum + 1"
htmltree.cls line 190 "self~foldernum = self~foldernum + 1"
htmltree.cls line 192 "node = node || .nodes~closednodelast(self~foldernum)"
htmltree.cls line 193 "else node = node || .nodes~closednode(self~foldernum)"
htmltree.cls line 195 "node = node || .nodes~oorx(self~foldernum)"
htmltree.cls line 196 "else node = node || .nodes~clrx(self~foldernum)"
htmltree.cls line 341 "self~foldernum = self~foldernum+1"
htmltree.cls line 341 "self~foldernum = self~foldernum+1"
htmltree.cls line 343 "icon = .nodes~rclass(self~foldernum)"
htmltree.cls line 344 "else icon = .nodes~rclassp(self~foldernum)"
htmltree.cls line 355 "node = node || xleftq || .nodes~closednodelast(self~foldernum) || icon"
htmltree.cls line 358 "node = node || xleftq || .nodes~closednode(self~foldernum) || icon"

::ATTRIBUTE hdest
html output path
Definition at line 62 of htmltree.cls
Dynamically referenced by
htmlindex.cls line 123 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlindex.cls line 163 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlindex.cls line 199 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlindex.cls line 225 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlindex.cls line 248 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlindex.cls line 271 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlindex.cls line 293 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlindex.cls line 316 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlindex.cls line 345 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlindex.cls line 367 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlindex.cls line 398 "call hiea2html elem~makeArray, indexfile, '', htmlout~hdest, 80, hdr, trl"
htmlrexxclass.cls line 199 "towrite = self~htmlout~hdest||rdc~hdocurl"
htmlrexxprogram.cls line 257 "towrite = htmlout~hdest||file~document~hdocurl"
htmlrexxsource.cls line 105 "towrite = self~htmlout~hdest||file~document~hsrcurl"
htmltext.cls line 92 "towrite = htmlout~hdest||file~document~hsrcurl"
htmltree.cls line 74 "self~hdest = hdest"
rexxliterate.cls line 163 "self~hdest = config~hdest"
rexxliterate.rex line 102 "config~hdest = .pathsep~localpath(hdest)"
test.rex line 102 "config~hdest = .pathsep~localpath(hdest)"

::ATTRIBUTE title
tree title
Definition at line 63 of htmltree.cls
Dynamically referenced by
htmlout.cls line 109 "mh~queue('<title>'self~title 'Documents</title>')"
htmltree.cls line 72 "self~title = title"
htmlutil.cls line 257 "tp~queue('Generated on' date() time() 'for' htmlout~title 'by')"
rexxliterate.cls line 164 "self~title = config~title"
rexxliterate.rex line 103 "config~title = title"
test.rex line 103 "config~title = title"

::METHOD init
install
Parameters
title - what to call the tree
tree - tree of folders and files
hdest - path to which to write HTML output
Definition at line 69 of htmltree.cls

::METHOD maketreehtml
walk the tree and emit corrsponding HTML
Definition at line 78 of htmltree.cls
Dynamically referenced by
rexxliterate.cls line 236 "t~maketreehtml"

::METHOD emittreehtml PRIVATE
process a folder into html
Parameters
outq - a queue for html output
f - the folder to process
leftq - a queue of <img> tags representing the lines to the left of this folder in the tree
islast - when .true, this folder is the last item at the current tree level
Definition at line 116 of htmltree.cls
Dynamically referenced by
htmltree.cls line 98 "self~emittreehtml(tp, self~tree, .queue~new, .true)"
htmltree.cls line 159 "self~emittreehtml(outq, i, leftq, flast)"

::METHOD treerexxprogram PRIVATE
render a rexx program as tree html and
install references in tree
Parameters
outq not documented
rfile not documented
leftq not documented
islast not documented
Definition at line 236 of htmltree.cls
Dynamically referenced by
htmltree.cls line 217 "self~treerexxprogram(outq, i, leftq, flast)"

::METHOD htmlclass
emit tree html for a class
Parameters
outq - queue to which to add html
rexxd - rexxdocument
rdc - rdclass
xleftq - expanded left queue
emitted - bag of emitted objects
Definition at line 334 of htmltree.cls
Dynamically referenced by
htmltree.cls line 294 "self~htmlclass(outq, rexxd, i, xleftq, emitted)"


Get RexxLiterate at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on 31 Aug 2010 05:20:28 for RexxLiterate by rexxliterate  0.0.1