bisubtree.html

来自「ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.」· HTML 代码 · 共 274 行

HTML
274
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><!--Generated using api.website.xsl version 2003-07-17--><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><title>BiSubtree</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type="text/css" rel="stylesheet" href="api.css"><script type="text/javascript">				function showDerivedClasses() {					var ul = document.getElementById("api-derived-classes");					var lis = ul.childNodes;					var l = lis.length;					for (var i = 1; i < l; i++)						lis[i].style.display = "";					lis[0].style.display = "none";				}			</script></head><body><h1 id="BiSubtree">BiSubtree</h1><p>Internal class for handling subtrees</p><p>This class extends		<code><a href="BiObject.html">BiObject</a></code>		and therefore all methods and fields available for		<code><a href="BiObject.html">BiObject</a></code>		are also available for <code>BiSubtree</code>.</p><ul class="partial-class-tree"><li><code><a href="BiObject.html">BiObject</a></code><ul><li><code>BiSubtree</code><ul id="api-derived-classes"></ul></li></ul></li></ul><h2>Constructor</h2><p><code>	new BiSubtree(<span class="methodArgument">oParent</span>, <span class="methodArgument">oNode</span>)</code></p><h3>Parameters</h3><table><thead><tr><td>Name</td><td>Type</td><td class="optional-header">Optional</td><td>Default</td><td>Descripton</td></tr></thead><tbody><tr><td><code>oParent</code></td><td><code class="type">				<code><a href="BiSubtree.html">BiSubtree</a></code>			</code></td><td class="optional-column"></td><td></td><td>The subtree that is the parent of this tree</td></tr><tr><td><code>oNode</code></td><td><code class="type">				<code><a href="BiTreeNode2.html">BiTreeNode2</a></code>			</code></td><td class="optional-column"></td><td></td><td>The data node that this subtree is mapping</td></tr></tbody></table><h2>Properties</h2><table><thead><tr><td>Name</td><td>Type</td><td class="get-header">get</td><td class="set-header">set</td><td>Descripton</td></tr></thead><tbody><tr><td><a name="count"></a><code>count</code></td><td><code class="type">Number</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>the number of children</td></tr><tr><td><a name="isAnchor"></a><code>isAnchor</code></td><td><code class="type">Number</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Whether the tree node is the selection anchor</td></tr><tr><td><a name="isLead"></a><code>isLead</code></td><td><code class="type">Number</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Whether the tree node is selection lead</td></tr><tr><td><a name="node"></a><code>node</code></td><td><code class="type">				<code><a href="BiTreeNode2.html">BiTreeNode2</a></code>			</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>the node object of the subtree</td></tr><tr><td><a name="parent"></a><code>parent</code></td><td><code class="type">				<code><a href="BiSubtree.html">BiSubtree</a></code>			</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>the parent subtree</td></tr><tr><td><a name="selected"></a><code>selected</code></td><td><code class="type">Number</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>Whether the tree node is selected</td></tr><tr><td><a name="subtreeSize"></a><code>subtreeSize</code></td><td><code class="type">Number</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>the number if descendants</td></tr></tbody></table><h2>Methods</h2><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td><code><a href="#clear">clear</a></code></td><td>Removes all children from the sub tree</td></tr><tr><td><code><a href="#getChildAt">getChildAt</a></code></td><td>returns the child at nIndex</td></tr><tr><td><code><a href="#insertAt">insertAt</a></code></td><td>This inserts a subtree as a child to the current subtree</td></tr><tr><td><code><a href="#removeAt">removeAt</a></code></td><td>This removes a subtree child from the current subtree</td></tr></tbody></table><h2>Events</h2><p>None.</p><h2>Static Methods</h2><p>None.</p><h2>Static Fields</h2><p>None.</p><h2>Remarks</h2><p>	</p><h2>Method Details</h2><h3><a name="clear"></a>clear</h3><p>Removes all children from the sub tree</p><h4>Syntax</h4><pre class="method-syntax">object.clear()</pre><h4>Parameters</h4><p>No arguments.</p><h4>Return Type</h4><p><code class="type">void</code></p><h3><a name="getChildAt"></a>getChildAt</h3><p>returns the child at nIndex</p><h4>Syntax</h4><pre class="method-syntax">object.getChildAt(<span class="methodArgument">nIndex</span>)</pre><h4>Parameters</h4><table><thead><tr><td>Name</td><td>Type</td><td class="optional-header">Optional</td><td>Default</td><td>Descripton</td></tr></thead><tbody><tr><td><code>nIndex</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>the index of the child to return</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Row</code></p><h3><a name="insertAt"></a>insertAt</h3><p>This inserts a subtree as a child to the current subtree</p><h4>Syntax</h4><pre class="method-syntax">object.insertAt(<span class="methodArgument">oSubtree</span>, <span class="methodArgument">nIndex</span>)</pre><h4>Parameters</h4><table><thead><tr><td>Name</td><td>Type</td><td class="optional-header">Optional</td><td>Default</td><td>Descripton</td></tr></thead><tbody><tr><td><code>oSubtree</code></td><td><code class="type">						<code><a href="BiSubtree.html">BiSubtree</a></code>					</code></td><td class="optional-column"></td><td></td><td>The subtree to add as child</td></tr><tr><td><code>nIndex</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The position to insert the child at</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p><h3><a name="removeAt"></a>removeAt</h3><p>This removes a subtree child from the current subtree</p><h4>Syntax</h4><pre class="method-syntax">object.removeAt(<span class="methodArgument">nIndex</span>)</pre><h4>Parameters</h4><table><thead><tr><td>Name</td><td>Type</td><td class="optional-header">Optional</td><td>Default</td><td>Descripton</td></tr></thead><tbody><tr><td><code>nIndex</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The index of the child to remove</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?