<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>XLoadTree API (WebFX)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="webfxlayout.local.js"></script>
</head>
<body>
<!-- WebFX Layout Include -->
<script type="text/javascript">
var articleMenu= new WebFXMenu;
articleMenu.left = 384;
articleMenu.top = 86;
articleMenu.width = 140;
articleMenu.add(new WebFXMenuItem("Introduction", "xloadtree.html"));
articleMenu.add(new WebFXMenuItem("Usage", "usage.html"));
articleMenu.add(new WebFXMenuItem("API", "api.html"));
articleMenu.add(new WebFXMenuItem("Implementation", "implementation.html"));
articleMenu.add(new WebFXMenuItem("Demo", "demo.html"));
articleMenu.add(new WebFXMenuSeparator);
articleMenu.add(new WebFXMenuItem("Download", "http://webfx.eae.net/download/xloadtree111.zip"));
webfxMenuBar.add(new WebFXMenuButton("Article Menu", null, null, articleMenu));
webfxLayout.writeTitle("XLoadTree");
webfxLayout.writeMenu();
webfxLayout.writeDesignedByEdger();
</script>
<div class="webfx-main-body">
<!-- end WebFX Layout Includes -->
<h2>WebFXLoadTree</h2>
<p>This object type is used to create the actual tree root and can be used
to populate the tree with tree items loaded from an xml file.</p>
<p>The <code>WebFXLoadTree</code> extends <code>WebFXTree</code> (see the
<a href="/dhtml/xtree/api.html">xTree API</a>) so all properties and methods
provided by <code>WebFXTree</code> are available.</p>
<h3>Constructor</h3>
<pre>new WebFXLoadTree(sText, sXmlSrc, sAction, sBehavior, sIcon, sOpenIcon)</pre>
<table>
<thead><tr>
<td>Name</td>
<td>Description</td>
</tr></thead>
<tbody>
<tr>
<td>sText</td>
<td>The text label for the tree root.</td>
</tr>
<tr>
<td>sXmlSrc</td>
<td>The source for the xml file to load when expanded.</td>
</tr>
<tr>
<td>sAction</td>
<td>Optional. The action (uri) associated with the tree root.</td>
</tr>
<tr>
<td>sBehavior</td>
<td>Optional. The behavior of the tree. Valid values are <code>"classic"</code> and
<code>"explorer"</code>. When the value is set to <code>"explorer"</code>
the default icon for an empty item is the same as the folder icon.</td>
</tr>
<tr>
<td>sIcon</td>
<td>Optional. The icon image to use for this item. In case this item is a folder this
will be used when the folder is closed.</td>
</tr>
<tr>
<td>sOpenIcon</td>
<td>Optional. The icon image to use for this item when it is opened. This is only
used for folder items that are opened/expanded.</td>
</tr>
</tbody>
</table>
<h3>Properties</h3>
<table>
<thead><tr>
<td>Name</td>
<td>Description</td>
</tr></thead>
<tbody>
<tr>
<td colspan="2">All properties from <code>WebFXTree</code>.</td>
</tr>
<tr>
<td>src</td>
<td>The source to the xml file that decribes the sub trees. Notice that this is
read-only after the xml file has started to load so any changes done to the
source are only valid before the loading of the first file.</td>
</tr>
<tr>
<td>loading</td>
<td>Read only. A boolean flag which is true if the xml file has started loading and not yet
finished.</td>
</tr>
<tr>
<td>loaded</td>
<td>Read only. A boolean flag which is true if the xml file has been loaded.</td>
</tr>
<tr>
<td>errorText</td>
<td>Read only String. If the loading for any reason failed the reason can be found in
the <code>errorText</code> property. If no error occured this is <code>""</code>
(an empty string).</td>
</tr>
</tbody>
</table>
<h3>Methods</h3>
<table>
<thead><tr>
<td>Name</td>
<td>Description</td>
</tr></thead>
<tbody>
<tr>
<td>reload()</td>
<td>Reloads the XML file from the server and recreates the children of this node.</td>
</tr>
<tr>
<td colspan="2">All methods from <code>WebFXTree</code>.</td>
</tr>
</tbody>
</table>
<h2>WebFXLoadTreeItem</h2>
<p>This object type is used to create tree items that can be added to the tree
root, or to other tree items to create sub folders in the tree. When an
<code>WebFXLoadTreeItem</code> is expanded an xml file is loaded that is then
used to populate the item with child items.</p>
<p>The <code>WebFXLoadTreeItem</code> extends <code>WebFXTreeItem</code> (see the
<a href="/dhtml/xtree/api.html">xTree API</a>) so all properties and methods
provided by <code>WebFXTreeItem</code> are available.</p>
<h3>Constructor</h3>
<pre>new WebFXLoadTreeItem(sText, sXmlSrc, sAction, eParent, sIcon, sOpenIcon)</pre>
<table>
<thead><tr>
<td>Name</td>
<td>Description</td>
</tr></thead>
<tbody>
<tr>
<td>sText</td>
<td>The text label for the tree item.</td>
</tr>
<tr>
<td>sXmlSrc</td>
<td>The source for the xml file to load when expanded.</td>
</tr>
<tr>
<td>sAction</td>
<td>Optional. The action (uri) associated with the tree item.</td>
</tr>
<tr>
<td>eParent</td>
<td>Optional. The parent <code>WebFXTreeItem</code> or <code>WebFXTree</code> that the item
should be added to.</td>
</tr>
<tr>
<td>sIcon</td>
<td>Optional. The icon image to use for this item. In case this item is a folder this
will be used when the folder is closed.</td>
</tr>
<tr>
<td>sOpenIcon</td>
<td>Optional. The icon image to use for this item when it is opened. This is only
used for folder items that are opened/expanded.</td>
</tr>
</tbody>
</table>
<h3>Properties</h3>
<table>
<thead><tr>
<td>Name</td>
<td>Description</td>
</tr></thead>
<tbody>
<tr>
<td colspan="2">All properties from <code>WebFXTreeItem</code>.</td>
</tr>
<tr>
<td>src</td>
<td>The source to the xml file that decribes the sub trees. Notice that this is
read-only after the xml file has started to load so any changes done to the
source are only valid before the loading of the first file.</td>
</tr>
<tr>
<td>loading</td>
<td>Read only. A boolean flag which is true if the xml file has started loading and not yet
finished.</td>
</tr>
<tr>
<td>loaded</td>
<td>Read only. A boolean flag which is true if the xml file has been loaded.</td>
</tr>
<tr>
<td>errorText</td>
<td>Read only String. If the loading for any reason failed the reason can be found in
the <code>errorText</code> property. If no error occured this is <code>""</code>
(an empty string).</td>
</tr>
</tbody>
</table>
<h3>Methods</h3>
<table>
<thead><tr>
<td>Name</td>
<td>Description</td>
</tr></thead>
<tbody>
<tr>
<td>reload()</td>
<td>Reloads the XML file from the server and recreates the children of this node.</td>
</tr>
<tr>
<td colspan="2">All methods from <code>WebFXTree</code>.</td>
</tr>
</tbody>
</table>
<h2>The xml format</h2>
<p>The only valid element in the xml file is the <code>tree</code> item. A <code>tree</code>
item can contain zero, one or more <code>tree</code> items.</p>
<h3>Attributes</h3>
<p>There are five valid attributes that you can provide on a <code>tree</code> item.</p>
<table>
<thead><tr>
<td>Name</td>
<td>Description</td>
</tr></thead>
<tbody>
<tr>
<td>text</td>
<td>Required. The text label for the tree item.</td>
</tr>
<tr>
<td>xmlSrc</td>
<td>Optional. The source for the xml file to load when expanded.</td>
</tr>
<tr>
<td>action</td>
<td>Optional. The action (uri) associated with the tree item.</td>
</tr>
<tr>
<td>icon</td>
<td>Optional. The icon image to use for this item. In case this item is a folder this
will be used when the folder is closed.</td>
</tr>
<tr>
<td>openIcon</td>
<td>Optional. The icon image to use for this item when it is opened. This is only
used for folder items that are opened/expanded.</td>
</tr>
</tbody>
</table>
<h3>DTD</h3>
<p>The xml file does not have to be valid to work (only well formed) but if you want to
ensure that you didn't do anything wrong you can use th
没有合适的资源?快使用搜索试试~ 我知道了~
xloadtree.rar_javascript_xloadtree
共48个文件
png:25个
xml:6个
html:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 132 浏览量
2022-09-19
14:24:24
上传
评论
收藏 56KB RAR 举报
温馨提示
树 , javaScript实现。 很方便实现。
资源推荐
资源详情
资源评论
收起资源包目录
xloadtree.rar (48个子文件)
xloadtree
tree2.xml 412B
title-background.png 1KB
tree.xml 411B
xtree.css 687B
webfxlayout.local.js 4KB
images
Lminus.png 219B
L.png 153B
Lplus.png 224B
openfoldericon.png 232B
xp
Lminus.png 340B
L.png 153B
folder.png 413B
Lplus.png 348B
Tminus.png 341B
I.png 148B
file.png 377B
openfolder.png 474B
Thumbs.db 8KB
Tplus.png 348B
T.png 152B
Tminus.png 207B
foldericon.png 229B
I.png 148B
file.png 251B
Thumbs.db 14KB
Tplus.png 222B
blank.png 144B
T.png 152B
tree1.xml 765B
xmlextras.js 4KB
webfxlayout.local.css 5KB
article-images
tree2.png 2KB
tree3.png 2KB
Thumbs.db 16KB
tree1.png 1KB
emptytree.xml 31B
xtree.js 23KB
usage.html 4KB
implementation.html 9KB
treeLARGE.xml 26KB
xloadtree.html 4KB
xloadtree.js 10KB
tree.dtd.xml 295B
demo.html 2KB
tree.dtd 194B
api.html 9KB
date.xml.pl 466B
www.pudn.com.txt 218B
共 48 条
- 1
资源评论
weixin_42651887
- 粉丝: 80
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功