<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>EdwardTree For JSP说明</title>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<link rel="stylesheet" href="/dd.css" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body>
<div id="shadow">
<div id="content">
<div id="location">
<h1><a href="http://hi.baidu.com/Edwardworld" target="_blank">Edward Inc </a> » <a href="http://hi.baidu.com/Edwardworld" target="_blank">Javascripts</a> » <a href="http://hi.baidu.com/Edwardworld" target="_blank"><span class="item">EdwardTree For JSP V 1.1</span></a> » <a href="http://hi.baidu.com/Edwardworld" target="_blank">Api</a></h1>
</div>
<div class="line"></div>
<div id="files">
<h3>系统说明</h3>
<div class="line"></div>
<div class="item">
<p> 本系统(EdwardTree For JSP V 1.0)是<a href="http://hi.baidu.com/Edwardworld" target="_blank">爱德华 Edward</a>根据 <a href="http://www.destroydrop.com/javascripts/tree/" target="_blank">Destroydrop</a> <a href="http://www.destroydrop.com/javascripts/tree/" target="_blank"></a>的DTree系统改进而成,<a href="http://hi.baidu.com/Edwardworld" target="_blank">爱德华 Edward</a>主要改进的地方是:整合了数据库,使得显示部分可以是由数据库读取的信息动态生成JavaScript代码,从而使得Tree菜单更加实用化,同时,<a href="http://hi.baidu.com/Edwardworld" target="_blank">爱德华 Edward</a>翻译了API文档的部分内容,因为E文水平有限,仅翻译了部分属性的解释,希望精通E文的朋友继续完善!</p>
<p> 压缩包“EdwardTree.rar”是NetBeans IDE 5.5的工程项目,使用NetBeans可以进行管理。</p>
<p>
“项目里EdwardTree/web/DataBase/SQL_Server”文件夹里是MS SQLServer 2000的数据库文件,直接附加数据库,然后修改数据库连接文件 “项目里EdwardTree/src/java/EdwardBean/Edward_Conn.java“,并编译通过就可以。</p>
<p>
如果使用其他数据库,可以根据”项目里EdwardTree/DataBase/InfoData.mdb“ 数据库的表结构自行建立数据库,同时修改数据库连接文件!</p>
<div align="right"><a href="http://hi.baidu.com/Edwardworld" target="_blank">Edward</a> </div>
<div align="right">2007.6.16 </div>
</div>
<a name="functions"></a>
<h3>Functions</h3>
<div class="line"></div>
<div class="item">
<a name="add"></a>
<h4 class="func">add()</h4>
<p>Adds a node to the tree.<br />Can only be called before the tree is drawn.</p>
<p>id, pid and name are required.</p>
<h4>Parameters</h4>
<table class="files">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td>id</td>
<td>Number</td>
<td>编号.</td>
</tr>
<tr>
<td>pid</td>
<td>Number</td>
<td>上级节电的ID,根节电为 -1.</td>
</tr>
<tr>
<td>name</td>
<td>String</td>
<td>显示的名称.</td>
</tr>
<tr>
<td>url</td>
<td>String</td>
<td>链接地址.</td>
</tr>
<tr>
<td>title</td>
<td>String</td>
<td>鼠标移到节电上时的TITLE值.</td>
</tr>
<tr>
<td>target</td>
<td>String</td>
<td>打开的框架NAME,如新窗口是_blank.</td>
</tr>
<tr>
<td>icon</td>
<td>String</td>
<td>显示的图标的相对路径.</td>
</tr>
<tr>
<td>iconOpen</td>
<td>String</td>
<td>Image file to use as the open icon. Uses default if not specified.</td>
</tr>
<tr>
<td>open</td>
<td>Boolean</td>
<td>Is the node open.节电是否开放!</td>
</tr>
</table>
<br />
<h4>Example</h4>
<p><code>mytree.add(1, 0, 'My node', 'node.html', 'node title', 'mainframe', 'img/musicfolder.gif');</code></p>
<br />
<a name="openall"></a>
<h4 class="func">openAll()</h4>
<p>Opens all the nodes.<br />Can be called before and after the tree is drawn.</p>
<h4>Example</h4>
<p><code>mytree.openAll();</code></p>
<br />
<a name="closeall"></a>
<h4 class="func">closeAll()</h4>
<p>Closes all the nodes.<br />Can be called before and after the tree is drawn.</p>
<h4>Example</h4>
<p><code>mytree.closeAll();</code></p>
<br />
<a name="opento"></a>
<h4 class="func">openTo()</h4>
<p>Opens the tree to a certain node and can also select the node.<br />
Can only be called after the tree is drawn.</p>
<h4>Parameters</h4>
<table class="files">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td>id</td>
<td>Number</td>
<td>Identity number for the node.</td>
</tr>
<tr>
<td>select</td>
<td>Boolean</td>
<td>Should the node be selected.</td>
</tr>
</table>
<h4>Example</h4>
<p><code>mytree.openTo(4, true);</code></p>
</div>
<a name="configuration"></a>
<h3>Configuration</h3>
<div class="line"></div>
<div class="item">
<table class="files">
<tr>
<th>Variable</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</tr>
<tr>
<td>target</td>
<td>String</td>
<td>true</td>
<td>Target for all the nodes.</td>
</tr>
<tr>
<td>folderLinks</td>
<td>Boolean</td>
<td>true</td>
<td>Should folders be links.</td>
</tr>
<tr>
<td>useSelection</td>
<td>Boolean</td>
<td>true</td>
<td>Nodes can be selected(highlighted).</td>
</tr>
<tr>
<td>useCookies</td>
<td>Boolean</td>
<td>true</td>
<td>The tree uses cookies to rember it's state.</td>
</tr>
<tr>
<td>useLines</td>
<td>Boolean</td>
<td>true</td>
<td>Tree is drawn with lines.</td>
</tr>
<tr>
<td>useIcons</td>
<td>Boolean</td>
<td>true</td>
<td>Tree is drawn with icons.</td>
</tr>
<tr>
<td>useStatusText</td>
<td>Boolean</td>
<td>false</td>
<td>Displays node names in the statusbar instead of the url.</td>
</tr>
<tr>
<td>closeSameLevel</td>
<td>Boolean</td>
<td>false</td>
<td>Only one node within a parent can be expanded at the same time. openAll() and closeAll() functions do not work when this is enabled.</td>
</tr>
<
EdwardTree For JSP V1.1
需积分: 9 17 浏览量
2007-06-19
08:34:32
上传
评论
收藏 1.85MB RAR 举报
LaoQiaoGeorge
- 粉丝: 2
- 资源: 13