📄 bitree2.html
字号:
<!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>BiTree2</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="BiTree2">BiTree2</h1>
<p>This component is a special case of <code><a href="BiTreeView.html">BiTreeView</a></code> which has an interface which
is similar to <code><a href="BiTree.html">BiTree</a></code>
</p>
<p>This class extends
<code><a href="BiTreeView.html">BiTreeView</a></code>
and therefore all methods and fields available for
<code><a href="BiTreeView.html">BiTreeView</a></code>
are also available for <code>BiTree2</code>.</p>
<ul class="partial-class-tree">
<li><code><a href="BiObject.html">BiObject</a></code><ul>
<li><code><a href="BiEventTarget.html">BiEventTarget</a></code><ul><li><code><a href="BiComponent.html">BiComponent</a></code><ul><li><code><a href="BiTreeView.html">BiTreeView</a></code><ul><li><code>BiTree2</code><ul id="api-derived-classes"></ul></li></ul></li></ul></li></ul></li></ul>
</li>
</ul>
<h2>Constructor</h2>
<p><code>
new BiTree2([<span class="methodArgument">oColumnNames</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>oColumnNames</code></td>
<td><code class="type">String[]</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>Optional string array telling what to
show on the tree headers.</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="columnCount"></a><code>columnCount</code></td>
<td><code class="type">Number</code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"><img src="check.png" alt="checked"></td>
<td>The number of columns in the tree</td>
</tr>
<tr>
<td><a name="columnNames"></a><code>columnNames</code></td>
<td><code class="type">String[]</code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"><img src="check.png" alt="checked"></td>
<td>The text to show on the headers of the tree</td>
</tr>
<tr>
<td><a name="columnOrders"></a><code>columnOrders</code></td>
<td><code class="type">Number[]</code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"><img src="check.png" alt="checked"></td>
<td>The order of the columns. This an array containing the indexes of the
columns.</td>
</tr>
<tr>
<td><a name="columnWidths"></a><code>columnWidths</code></td>
<td><code class="type">String[]</code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"><img src="check.png" alt="checked"></td>
<td>The text to show on the headers of the tree</td>
</tr>
<tr>
<td><a name="rows"></a><code>rows</code></td>
<td><code class="type">
<code><a href="BiTree2Row.html">BiTree2Row[]</a></code>
</code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"></td>
<td>The rows in the tree</td>
</tr>
</tbody>
</table>
<h2>Methods</h2>
<table>
<thead>
<tr>
<td>Name</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="#addRow">addRow</a></code></td>
<td>Adds a row to the tree</td>
</tr>
<tr>
<td><code><a href="#removeAll">removeAll</a></code></td>
<td>This removes all the rows</td>
</tr>
<tr>
<td><code><a href="#removeRow">removeRow</a></code></td>
<td>Removes a row item from the tree</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>None.</p>
<h2>Method Details</h2>
<h3><a name="addRow"></a>addRow</h3>
<p>Adds a row to the tree</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.addRow(<span class="methodArgument">oChild</span> [, <span class="methodArgument">oBefore</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>oChild</code></td>
<td><code class="type">
<code><a href="BiTree2Row.html">BiTree2Row</a></code>
</code></td>
<td class="optional-column"></td>
<td></td>
<td>The row to add to the tree</td>
</tr>
<tr>
<td><code>oBefore</code></td>
<td><code class="type">
<code><a href="BiTree2Row.html">BiTree2Row</a></code>
</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>Optional argument telling what row to insert before</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<h3><a name="removeAll"></a>removeAll</h3>
<p>This removes all the rows</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.removeAll()</pre>
<h4>Parameters</h4>
<p>No arguments.</p>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<h3><a name="removeRow"></a>removeRow</h3>
<p>Removes a row item from the tree</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.removeRow(<span class="methodArgument">oChild</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>oChild</code></td>
<td><code class="type">
<code><a href="BiTree2Row.html">BiTree2Row</a></code>
</code></td>
<td class="optional-column"></td>
<td></td>
<td>The row 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -