?? bidatatable.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>BiDataTable</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="BiDataTable">BiDataTable</h1>
<p>
This class represents a data table inside a data set. A data table
consists of <code><a href="BiDataColumn.html">columns</a></code> and
<code><a href="BiDataRow.html">rows</a></code>.
</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>BiDataTable</code>.</p>
<ul class="partial-class-tree">
<li><code><a href="BiObject.html">BiObject</a></code><ul>
<li><code>BiDataTable</code><ul id="api-derived-classes"><li><code><a href="BiXmlDataTable.html">BiXmlDataTable</a></code></li></ul></li></ul>
</li>
</ul>
<h2>Constructor</h2>
<p><code>
new BiDataTable([<span class="methodArgument">sName</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>sName</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>
The name of the table.
</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="columns"></a><code>columns</code></td>
<td><code class="type"><code><a href="BiDataColumn.html">BiDataColumn[]</a></code></code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"></td>
<td>
Returns the columns in the table
</td>
</tr>
<tr>
<td><a name="dataReady"></a><code>dataReady</code></td>
<td><code class="type">Boolean</code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"></td>
<td>
Returns true if the data is ready. This is always true for
a <code><a href="BiDataTable.html">BiDataTable</a></code> but might not be true
for a sub class.
</td>
</tr>
<tr>
<td><a name="name"></a><code>name</code></td>
<td><code class="type">String</code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"></td>
<td>
The name of the table.
</td>
</tr>
<tr>
<td><a name="rows"></a><code>rows</code></td>
<td><code class="type"><code><a href="BiDataRow.html">BiDataRow[]</a></code></code></td>
<td class="get-column"><img src="check.png" alt="checked"></td>
<td class="set-column"></td>
<td>
Returns the rows in the table
</td>
</tr>
</tbody>
</table>
<h2>Methods</h2>
<table>
<thead>
<tr>
<td>Name</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="#addColumn">addColumn</a></code></td>
<td>
Adds a <code><a href="BiDataColumn.html">column</a></code> to the table.
</td>
</tr>
<tr>
<td><code><a href="#addRow">addRow</a></code></td>
<td>
Adds a <code><a href="BiDataRow.html">table</a></code> to the table.
</td>
</tr>
<tr>
<td><code><a href="#getColumnByName">getColumnByName</a></code></td>
<td>
Returns the column with the given name.
</td>
</tr>
<tr>
<td><code><a href="#removeColumn">removeColumn</a></code></td>
<td>
Removes a <code><a href="BiDataColumn.html">column</a></code> from the table.
</td>
</tr>
<tr>
<td><code><a href="#removeRow">removeRow</a></code></td>
<td>
Removes a <code><a href="BiDataRow.html">row</a></code> from the table.
</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="addColumn"></a>addColumn</h3>
<p>
Adds a <code><a href="BiDataColumn.html">column</a></code> to the table.
</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.addColumn(<span class="methodArgument">oColumn</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>oColumn</code></td>
<td><code class="type"><code><a href="BiDataColumn.html">BiDataColumn</a></code></code></td>
<td class="optional-column"></td>
<td></td>
<td>
The column to add.
</td>
</tr>
<tr>
<td><code>oBefore</code></td>
<td><code class="type"><code><a href="BiDataColumn.html">BiDataColumn</a></code></code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>
If provided the new column is added before this
</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 <code><a href="BiDataRow.html">table</a></code> to the table.
</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.addRow(<span class="methodArgument">oRow</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>oRow</code></td>
<td><code class="type"><code><a href="BiDataRow.html">BiDataRow</a></code></code></td>
<td class="optional-column"></td>
<td></td>
<td>
The row to add.
</td>
</tr>
<tr>
<td><code>oBefore</code></td>
<td><code class="type"><code><a href="BiDataRow.html">BiDataRow</a></code></code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td></td>
<td>
If provided the new row is added before this
</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<h3><a name="getColumnByName"></a>getColumnByName</h3>
<p>
Returns the column with the given name.
</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getColumnByName(<span class="methodArgument">sName</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>sName</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"></td>
<td></td>
<td>
The name of the column.
</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type"><code><a href="BiDataColumn.html">BiDataColumn</a></code></code></p>
<h3><a name="removeColumn"></a>removeColumn</h3>
<p>
Removes a <code><a href="BiDataColumn.html">column</a></code> from the table.
</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.removeColumn(<span class="methodArgument">oColumn</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>oColumn</code></td>
<td><code class="type"><code><a href="BiDataColumn.html">BiDataColumn</a></code></code></td>
<td class="optional-column"></td>
<td></td>
<td>
The column to remove.
</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type"><code><a href="BiDataColumn.html">BiDataColumn</a></code></code></p>
<h3><a name="removeRow"></a>removeRow</h3>
<p>
Removes a <code><a href="BiDataRow.html">row</a></code> from the table.
</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.removeRow(<span class="methodArgument">oRow</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>oRow</code></td>
<td><code class="type"><code><a href="BiDataRow.html">BiDataRow</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"><code><a href="BiDataRow.html">BiDataRow</a></code></code></p>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -