📄 bitreeviewviewmanager.html
字号:
<td class="optional-header">Optional</td>
<td>Default</td>
<td>Descripton</td>
</tr>
</thead>
<tbody>
<tr>
<td><code>x</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index of the column</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Number</code></p>
<h3><a name="getColumnWidth"></a>getColumnWidth</h3>
<p>This returns the width of the xth column</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getColumnWidth(<span class="methodArgument">x</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>x</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index of the column to get the width for</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Number</code></p>
<h3><a name="getHeaderBounds"></a>getHeaderBounds</h3>
<p>Returns the boundaries for the header. This returns an object with left, top width and height fields describing the boundaries.</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getHeaderBounds(<span class="methodArgument">x</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>x</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The column index of the header cell</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Object</code></p>
<h3><a name="getModelColumn"></a>getModelColumn</h3>
<p>Returns the column index in the data model for the visual column index</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getModelColumn(<span class="methodArgument">vx</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>vx</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The visual column index</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Number</code></p>
<h3><a name="getNextColumn"></a>getNextColumn</h3>
<p>Returns the index of the column coming after the given column</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getNextColumn(<span class="methodArgument">mx</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>mx</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index of the column</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Number</code></p>
<h3><a name="getPreviousColumn"></a>getPreviousColumn</h3>
<p>Returns the index of the column coming before the given column</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getPreviousColumn(<span class="methodArgument">mx</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>mx</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index of the column</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Number</code></p>
<h3><a name="getRowAt"></a>getRowAt</h3>
<p>Returns the row at the y position. y is the distance from the upper edge</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getRowAt(<span class="methodArgument">y</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>y</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The distance (in pixels) from the upper edge.</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Number</code></p>
<h3><a name="getRowBounds"></a>getRowBounds</h3>
<p>Returns the boundaries for the row. This returns an object with left, top width and height fields describing the boundaries.</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getRowBounds(<span class="methodArgument">y</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>y</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index of the row</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Object</code></p>
<h3><a name="getViewColumn"></a>getViewColumn</h3>
<p>Returns the visual column index for the index in the data model</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.getViewColumn(<span class="methodArgument">mx</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>mx</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index in the data model</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">Number</code></p>
<h3><a name="insertColumnBefore"></a>insertColumnBefore</h3>
<p>Inserts a column before another column</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.insertColumnBefore(<span class="methodArgument">x</span>, <span class="methodArgument">beforeX</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>x</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index of the column to insert</td>
</tr>
<tr>
<td><code>beforeX</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index of the column to insert before</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<h3><a name="resetCache"></a>resetCache</h3>
<p>resets the cached properties. This is called after the columns are changed</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.resetCache()</pre>
<h4>Parameters</h4>
<p>No arguments.</p>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<h3><a name="rowCountChanged"></a>rowCountChanged</h3>
<p>This is called when the row count changes.</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.rowCountChanged(<span class="methodArgument">nRow</span>, <span class="methodArgument">nCount</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>nRow</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The row that change starts at</td>
</tr>
<tr>
<td><code>nCount</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The rows that was added or removed</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<h3><a name="scrollCellIntoView"></a>scrollCellIntoView</h3>
<p>Scrolls the tree view so that the given cell becomes visible</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.scrollCellIntoView(<span class="methodArgument">x</span>, <span class="methodArgument">y</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>x</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The column index of the cell to scroll into view</td>
</tr>
<tr>
<td><code>y</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The row index of the cell to scroll into view</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<h3><a name="scrollColumnIntoView"></a>scrollColumnIntoView</h3>
<p>Scrolls the tree view so that the given column becomes visible</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.scrollColumnIntoView(<span class="methodArgument">x</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>x</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index of the column to scroll into view</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<h3><a name="scrollRowIntoView"></a>scrollRowIntoView</h3>
<p>Scrolls the tree view so that the given row becomes visible</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.scrollRowIntoView(<span class="methodArgument">y</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>y</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index of the row to scroll into view</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<h3><a name="scrollSubtreeIntoView"></a>scrollSubtreeIntoView</h3>
<p>Scrolls a subtree into view (if possible)</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.scrollSubtreeIntoView(<span class="methodArgument">y</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>y</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The row index of the row whos subtree should be scrolled into view</td>
</tr>
</tbody>
</table>
<h4>Return Type</h4>
<p><code class="type">void</code></p>
<h3><a name="setColumnWidth"></a>setColumnWidth</h3>
<p>Sets the width of the xth column</p>
<h4>Syntax</h4>
<pre class="method-syntax">object.setColumnWidth(<span class="methodArgument">x</span>, <span class="methodArgument">w</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>x</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The index of the column to set the width for</td>
</tr>
<tr>
<td><code>w</code></td>
<td><code class="type">Number</code></td>
<td class="optional-column"></td>
<td></td>
<td>The new width</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 + -