<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Destroydrop » Javascripts » Tree » Api</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="/">Destroydrop</a> » <a href="/javascripts/">Javascripts</a> » <a href="/javascripts/tree/">Tree</a> » <a href="/javascripts/tree/api/">Api</a></h1>
</div>
<div class="line"></div>
<div id="files">
<h3>Overview</h3>
<div class="line"></div>
<div class="item">
<ul class="arrow">
<li><a href="#functions">Functions</a>
<ul class="arrow">
<li><a href="#add">add</a></li>
<li><a href="#openall">openAll</a></li>
<li><a href="#closeall">closeAll</a></li>
<li><a href="#opento">openTo</a></li>
</ul>
</li>
<li><a href="#configuration">Configuration</a></li>
</ul>
</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>Unique identity number.</td>
</tr>
<tr>
<td>pid</td>
<td>Number</td>
<td>Number refering to the parent node. The value for the root node has to be -1.</td>
</tr>
<tr>
<td>name</td>
<td>String</td>
<td>Text label for the node.</td>
</tr>
<tr>
<td>url</td>
<td>String</td>
<td>Url for the node.</td>
</tr>
<tr>
<td>title</td>
<td>String</td>
<td>Title for the node.</td>
</tr>
<tr>
<td>target</td>
<td>String</td>
<td>Target for the node.</td>
</tr>
<tr>
<td>icon</td>
<td>String</td>
<td>Image file to use as the icon. Uses default if not specified.</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>
<tr>
<td>inOrder</td>
<td>Boolean</td>
<td>false</td>
<td>If parent nodes are always added before children, setting this to true speeds up the tree.</td>
</tr>
</table>
<h4>Example</h4>
<p><code>mytree.config.target = "mytarget";</code></p>
</div>
</div>
<div class="line"></div>
<div id="copy">
<p class="right"><a href="http://validator.w3.org/check/referer">XHTML</a>, <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></p>
<p><a href="mailto:drop@destroydrop.com">©2002-2003 Geir Landrö</a></p>
</div>
</div>
</div>
</body>
</html>
基于Java的源码-JSP树型菜单 DTree.zip


【标题解析】 "基于Java的源码-JSP树型菜单 DTree.zip" 这个标题揭示了我们正在处理一个与Java编程相关的项目,具体来说是JSP(Java Server Pages)技术的应用。JSP是一种用于开发动态网页的技术,它允许在服务器端执行Java代码,并将结果返回给客户端。DTree则表明这是一个实现树型菜单功能的组件或库,常用于网站或应用程序的导航结构,使用户能够以层次结构的方式浏览和选择不同的选项。 【描述解析】 描述中提到的“基于Java的源码-JSP树型菜单 DTree.zip”与标题一致,强调了这是关于JSP树型菜单的源码。"源码"意味着包含的是可读和可编辑的程序代码,开发者可以深入理解其工作原理,也可以根据需求进行定制和扩展。DTree作为一个树形菜单的实现,可能包括了JavaScript、CSS和HTML等前端技术,以实现动态交互效果。 【标签解析】 "java 软件/插件" 这两个标签表明这个压缩包不仅与Java语言有关,还可能包含一个软件或插件。"软件"可能是指整个DTree树型菜单系统,而"插件"可能意味着DTree可以被集成到其他Web应用中,作为增强功能的一部分。 【文件列表解析】 - dtree.css:这应该是DTree树型菜单的样式表文件,用于定义菜单元素的外观和布局,如颜色、字体、大小等。 - api.html:API文档,通常包含DTree的接口说明,帮助开发者了解如何在自己的代码中使用和调用DTree的功能。 - example01.html:示例代码,可能展示了一个基础的DTree使用案例,帮助开发者快速理解和上手。 - dtree.js:这是DTree的核心JavaScript文件,包含了实现树型菜单逻辑的代码,可能会处理用户的交互事件,如点击、展开、收缩等。 - img:这个目录可能包含了与DTree相关的图像资源,如箭头图标、节点指示器等。 【综合知识点】 1. JSP技术:了解JSP的基础知识,包括JSP的生命周期、指令、脚本元素、EL表达式和JSTL标签库。 2. 树型数据结构:理解树的概念,包括节点、父节点、子节点、根节点和叶子节点等概念。 3. JavaScript:DTree的实现主要依赖JavaScript,需要熟悉DOM操作、事件处理、面向对象编程等。 4. CSS布局:通过dtree.css学习如何使用CSS来控制网页元素的布局,特别是实现层次感和交互效果。 5. API使用:阅读并理解api.html中的DTree API,学会如何在项目中引入和调用这个组件。 6. HTML:学习example01.html中的HTML结构,如何结合JSP和JavaScript创建动态菜单。 7. 图像资源:理解img目录中的图片如何与DTree的交互效果配合,提供视觉反馈。 8. 插件集成:了解如何将DTree作为一个插件集成到其他Web应用中,涉及到前端开发流程和项目构建。 以上就是从给定的信息中抽取的详细知识点,涵盖了从后端的JSP到前端的JavaScript、CSS,以及软件集成和API使用的多个层面。对于希望深入理解或使用DTree树型菜单的开发者来说,这些都是不可或缺的知识。










































- 1

- #完美解决问题
- #运行顺畅
- #内容详尽
- #全网独家
- #注释完整

- 粉丝: 2204
- 资源: 5145
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 基于共享储能电站的工业用户日前优化经济调度策略与实际应用场景分析,基于共享储能电站的工业用户日前优化经济调度策略:实际应用与效果分析,Matlab基于共享储能电站的工业用户日前优化经济调度 场景3不完
- PaddleX C++ DLL导出方案:支持C#调用,实现分类、分割与检测模型的跨平台互通,PaddleX C++ DLL导出工具:支持C#调用与四大AI模型功能-分类、分割、检测模型全覆盖,pad
- openvpn-1.0.3.tar源码
- 基于深度神经网络(DNN)的多输出数据回归预测算法Matlab代码实现(适用于Matlab 2018及以上版本),基于深度神经网络(DNN)的多输出数据回归预测算法matlab代码示例(适用于2018
- 基于改进遗传算法的储能选址定容优化:以网损为目标,实现稳定程序运行,采用改进遗传算法实现储能选址定容优化,以网损为目标,满足储能出力与SOC约束,Matlab程序稳定运行,储能选址定容matlab 采
- PMSM电机控制软件算法定制开发与咨询:涵盖FOC等先进算法、软解码等核心技术及结温估算等量产级别解决方案,PMSM电机控制软件的算法定制开发与咨询-涵盖FOC、弱磁、MTPA等高级技术,适用于量产
- 16考试真题最近的t1.txt
- 16考试真题最近的t2.txt
- 基于S7-200PLC与组态王的混凝土搅拌站配料控制详解:梯形图程序、接线图、IO分配及组态展示,基于S7-200PLC与组态王的混凝土搅拌站配料控制系统全套解析:梯形图程序、接线原理图与IO分配及组
- 基于蒙特卡洛与模糊聚类方法的电动汽车自适应风光场景优化调度研究(基于IEEE33节点系统仿真分析),基于蒙特卡洛模拟的电动汽车优化调度策略:适应风光场景,结合Copula函数与模糊K均值生成典型场景
- win32汇编环境,窗口程序中使用菜单示例三
- 基于python语言编写的网上商店毕业设计
- 华为基于模型预测控制与最优控制理论的Carsim与Matlab Simulink联合仿真实现汽车主动避撞与跟车功能学习资料,基于模型预测控制及最优控制理论的Carsim与Matlab Simulink
- 16考试真题最近的t3.txt
- 16考试真题最近的t4.txt
- 基于PID算法与虚拟结构的多智能体控制系统研究:大仿真代码实践与文献综述,基于PID与虚拟结构的多智能体控制系统研究:仿真实现与文献分析,基于PID和结构的多智能体控制 仿真代码量大,有3种仿真效果


