home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 December / PCWorld_2000-12_cd.bin / Komunikace / mozilla / mozilla-win32-M18-mathml-svg-xslt.exe / res / samples / treeTest1.xul < prev    next >
Extensible Markup Language  |  2000-06-24  |  4KB  |  111 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  3.  
  4. <!DOCTYPE window>
  5.  
  6. <window xmlns:html="http://www.w3.org/1999/xhtml"
  7.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 
  8.  
  9. <html:div flex="1" style="width: 50px; height: 50px">
  10.  
  11. <html:h1>Tree Test 1</html:h1>
  12.  
  13. <html:h3>
  14. A simple static tree view with things that can expand and collapse. Nothing fancy in this test.
  15. </html:h3>
  16.  
  17.  
  18. </html:div>
  19.  
  20. <html:div flex="2" style="width: 100px; height: 100px">
  21.  
  22. <html:p/>
  23. <html:br/>
  24.  
  25. <tree flex="1" style="width: 100%; height: 100%">
  26.     <treecol style="width: 10%"/><treecol style="width: 90%" />
  27.   <treehead>
  28.      <treerow>
  29.       <treecell><html:div>Name</html:div></treecell>
  30.       <treecell><html:div>URL</html:div></treecell>
  31.      </treerow>
  32.   </treehead>
  33.   
  34.     <treechildren flex="1">
  35.         <treeitem>
  36.             <treerow>
  37.                 <treecell></treecell>
  38.                 <treecell><html:div><treeindentation/><treeicon>Mozilla Links</treeicon></html:div></treecell>
  39.             </treerow>
  40.        
  41.             <treechildren>
  42.                 <treeitem>
  43.                     <treerow>
  44.                         <treecell><treeindentation/><html:img html:hspace="2" html:style="vertical-align: bottom" html:src="http://rava/~hyatt/PageRead.gif"/>Tinderbox</treecell>
  45.                         <treecell><html:div>http://tinderbox.mozilla.org</html:div></treecell>  
  46.                     </treerow>
  47.                 </treeitem>
  48.                 <treeitem>
  49.                     <treerow>
  50.                         <treecell><treeindentation/><html:img html:hspace="2" html:style="vertical-align: bottom" html:src="http://rava/~hyatt/PageRead.gif"/>Bonsai</treecell>
  51.                         <treecell><html:div>http://bonsai.mozilla.org</html:div></treecell>  
  52.                     </treerow>
  53.                 </treeitem>
  54.                 <treeitem>
  55.                     <treerow>
  56.                         <treecell><treeindentation/><html:img html:hspace="2" html:style="vertical-align: bottom" html:src="http://rava/~hyatt/PageRead.gif"/>Mozilla.org</treecell>
  57.                         <treecell><html:div>http://www.mozilla.org</html:div></treecell>  
  58.                     </treerow>
  59.                 </treeitem>
  60.                 <treeitem>
  61.                     <treerow>
  62.                         <treecell><treeindentation/><html:img html:hspace="2" html:style="vertical-align: bottom" html:src="http://rava/~hyatt/PageRead.gif"/>Bugzilla</treecell>
  63.                         <treecell><html:div>http://bugzilla.mozilla.org</html:div></treecell>  
  64.                     </treerow>
  65.                 </treeitem>
  66.             </treechildren>
  67.         </treeitem>
  68.  
  69.         <treeitem>
  70.             <treerow>
  71.                 <treecell></treecell>
  72.                 <treecell><html:div><treeindentation/><treeicon>Test Links</treeicon></html:div></treecell>
  73.             </treerow>
  74.        
  75.             <treechildren>
  76.                 <treeitem>
  77.                     <treerow>
  78.                         <treecell><treeindentation/><html:img html:hspace="2" html:style="vertical-align: bottom" html:src="http://rava/~hyatt/PageRead.gif"/>Tinderbox</treecell>
  79.                         <treecell><html:div>http://tinderbox.mozilla.org</html:div></treecell>  
  80.                     </treerow>
  81.                 </treeitem>
  82.                 <treeitem>
  83.                     <treerow>
  84.                         <treecell><treeindentation/><html:img html:hspace="2" html:style="vertical-align: bottom" html:src="http://rava/~hyatt/PageRead.gif"/>Bonsai</treecell>
  85.                         <treecell><html:div>http://bonsai.mozilla.org</html:div></treecell>  
  86.                     </treerow>
  87.                 </treeitem>
  88.                 <treeitem>
  89.                     <treerow>
  90.                         <treecell><treeindentation/><html:img html:hspace="2" html:style="vertical-align: bottom" html:src="http://rava/~hyatt/PageRead.gif"/>Mozilla.org</treecell>
  91.                         <treecell><html:div>http://www.mozilla.org</html:div></treecell>  
  92.                     </treerow>
  93.                 </treeitem>
  94.                 <treeitem>
  95.                     <treerow>
  96.                         <treecell><treeindentation/><html:img html:hspace="2" html:style="vertical-align: bottom" html:src="http://rava/~hyatt/PageRead.gif"/>Bugzilla</treecell>
  97.                         <treecell><html:div>http://bugzilla.mozilla.org</html:div></treecell>  
  98.                     </treerow>
  99.                 </treeitem>
  100.             </treechildren>
  101.         </treeitem>
  102.     </treechildren>
  103.     
  104. </tree>
  105.  
  106. <html:hr/>
  107.  
  108. </html:div>
  109.  
  110. </window>
  111.