?? bitree2row.html
字號(hào):
<!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>BiTree2Row</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="BiTree2Row">BiTree2Row</h1>
<p>This class is used as the data for rows in the <code><a href="BiTree2.html">BiTree2</a></code> component</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>BiTree2Row</code>.</p>
<ul class="partial-class-tree">
<li><code><a href="BiObject.html">BiObject</a></code><ul>
<li><code>BiTree2Row</code><ul id="api-derived-classes"></ul></li></ul>
</li>
</ul>
<h2>Constructor</h2>
<p><code>
new BiTree2Row([<span class="methodArgument">oData</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>oData</code></td>
<td><code class="type">Object[]</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>Optional array of objects describing the data
for the cells</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="cells"></a><code>cells</code></td>
<td><code class="type">
<code><a href="BiGrdi2Cell.html">BiGrdi2Cell[]</a></code>
</code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"></td>
<td>The cells in the row</td>
</tr>
<tr>
<td><a name="parent"></a><code>parent</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 parent tree row</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 that are children to the current row</td>
</tr>
<tr>
<td><a name="tree"></a><code>tree</code></td>
<td><code class="type">
<code><a href="BiTree2.html">BiTree2</a></code>
</code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"></td>
<td>The <code><a href="BiTree2.html">BiTree2</a></code> the row is part of</td>
</tr>
</tbody>
</table>
<h2>Methods</h2>
<table>
<thead>
<tr>
<td>Name</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="#addCell">addCell</a></code></td>
<td>Adds a cell to the row</td>
</tr>
<tr>
<td><code><a href="#addRow">addRow</a></code></td>
<td>Adds a row to the tree</td>
</tr>
<tr>
<td><code><a href="#getCell">getCell</a></code></td>
<td>Returns the cell for the given column</td>
</tr>
<tr>
<td><code><a href="#getData">getData</a></code></td>
<td>Returns the data at the given column</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="#removeCell">removeCell</a></code></td>
<td>Removes a cell from the row</td>
</tr>
<tr>
<td><code><a href="#removeRow">removeRow</a></code></td>
<td>Removes a row item from the tree</td>
</tr>
<tr>
<td><code><a href="#setData">setData</a></code></td>
<td>Sets the data for the cell at the given column</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="addCell"></a>addCell</h3>
<p>Adds a cell to the row</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.addCell(<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="BiTree2Cell.html">BiTree2Cell</a></code>
</code></td>
<td class="optional-column"></td>
<td></td>
<td>The cell to add</td>
</tr>
<tr>
<td><code>oBefore</code></td>
<td><code class="type">
<code><a href="BiTree2Cell.html">BiTree2Cell</a></code>
</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>Optional cell to insert the new cell before</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<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="getCell"></a>getCell</h3>
<p>Returns the cell for the given column</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getCell(<span class="methodArgument">nCol</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>nCol</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The column index for the cell to get</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">
<code><a href="BiTree2Cell.html">BiTree2Cell</a></code>
</code></p>
<h3><a name="getData"></a>getData</h3>
<p>Returns the data at the given column</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getData(<span class="methodArgument">nCol</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>nCol</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The column index for the data</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Object</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="removeCell"></a>removeCell</h3>
<p>Removes a cell from the row</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.removeCell(<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="BiTree2Cell.html">BiTree2Cell</a></code>
</code></td>
<td class="optional-column"></td>
<td></td>
<td>The cell to remove</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">
<code><a href="BiTree2Cell.html">BiTree2Cell</a></code>
</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>
<h3><a name="setData"></a>setData</h3>
<p>Sets the data for the cell at the given column</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.setData(<span class="methodArgument">nCol</span>, <span class="methodArgument">oData</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>nCol</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The column index for the data</td>
</tr>
<tr>
<td><code>oData</code></td>
<td><code class="type">Object</code></td>
<td class="optional-column"></td>
<td></td>
<td>The data associated with the cell at the given
column</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Object</code></p>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -