biolapgrid.html
来自「ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.」· HTML 代码 · 共 525 行 · 第 1/2 页
HTML
525 行
<!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>BiOlapGrid</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="BiOlapGrid">BiOlapGrid</h1><p>This class is used to display an OLAP Grid</p><p>This class extends <code><a href="BiTreeViewBase.html">BiTreeViewBase</a></code> and therefore all methods and fields available for <code><a href="BiTreeViewBase.html">BiTreeViewBase</a></code> are also available for <code>BiOlapGrid</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="BiTreeViewBase.html">BiTreeViewBase</a></code><ul><li><code>BiOlapGrid</code><ul id="api-derived-classes"></ul></li></ul></li></ul></li></ul></li></ul></li></ul><h2>Constructor</h2><p><code> new BiOlapGrid()</code></p><h3>Parameters</h3><p>No parameters.</p><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="allowHeaderSelection"></a><code>allowHeaderSelection</code></td><td><code class="type"> <code><a href="BiOlapGridSelectionModel.html">BiOlapGridSelectionModel</a></code> </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>Whether clicking on a dimension header also selects the rows/column of the header.</td></tr><tr><td><a name="allowTab"></a><code>allowTab</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>Whether pressing the tab key should change the selected cell or navigate to the next component in the tab order.</td></tr><tr><td><a name="canReorganizeDimensions"></a><code>canReorganizeDimensions</code></td><td><code class="type">Boolean</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>When this is true the user can reorganize the dimensions using drag and drop TODO: Document what events are fired when the reorg should happen</td></tr><tr><td><a name="printHtml"></a><code>printHtml</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>This returns some HTML code that can be sent to a printer</td></tr></tbody></table><h2>Methods</h2><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td><code><a href="#getCellInfo">getCellInfo</a></code></td><td>Returns a<code><a href="BiOlapGridCellInfo.html">BiOlapGridCellInfo</a></code> object based on the mouse coordinates</td></tr><tr><td><code><a href="#getCellInfoBounds">getCellInfoBounds</a></code></td><td>This returns the bounds of a cell relative to the inner edge of the OLAP grid (that is inside the outer border but not inside the headers/fixed area). This returns an object with left, top, width and height fields.</td></tr><tr><td><code><a href="#getFixedCornerHtmlCode">getFixedCornerHtmlCode</a></code></td><td>This returns the HTML code for the fixed corner of the OLAP grid. This may include both headers, row headers and some part of the body depending on whether there are any fixed rows/columns</td></tr><tr><td><code><a href="#getFixedLeftHtmlCode">getFixedLeftHtmlCode</a></code></td><td>This returns the HTML code for the left fixed part of the OLAP grid. This includes the row headers and any fixed columns</td></tr><tr><td><code><a href="#getFixedTopHtmlCode">getFixedTopHtmlCode</a></code></td><td>This returns the HTML code for fixed top part of the OLAP grid. This includes the column headers as well as any fixed rows of the body</td></tr><tr><td><code><a href="#getHeadersHtmlCode">getHeadersHtmlCode</a></code></td><td>This returns the HTML code for header of the OLAP grid</td></tr><tr><td><code><a href="#getHtmlCode">getHtmlCode</a></code></td><td>This returns the HTML code for the body of the OLAP grid</td></tr><tr><td><code><a href="#getRowHeadersHtmlCode">getRowHeadersHtmlCode</a></code></td><td>This returns the HTML code for the row headers.</td></tr><tr><td><code><a href="#print">print</a></code></td><td>This prints the OLAP grid</td></tr><tr><td><code><a href="#updateContentSize">updateContentSize</a></code></td><td>This is called when the size of the content has changed.</td></tr><tr><td><code><a href="#updateSize">updateSize</a></code></td><td>This updates the sizes of different parts of the sub controls</td></tr></tbody></table><h2>Events</h2><table><thead><tr><td>Name</td><td>Type</td><td class="bubbles-header">Bubbles</td><td>Descripton</td></tr></thead><tbody><tr><td><a name="dimensiondrop"></a><code>dimensiondrop</code></td><td><code class="type"> <code><a href="BiOlapGridDragEvent.html">BiOlapGridDragEvent</a></code> </code></td><td class="bubbles-column"></td><td>This is fired when a dimension of the current grid is dropped on another dimension. This can only happen if <code><a href="#canReorganizeDimensions">canReorganizeDimensions</a></code> is <code>true</code> </td></tr></tbody></table><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="getCellInfo"></a>getCellInfo</h3><p>Returns a<code><a href="BiOlapGridCellInfo.html">BiOlapGridCellInfo</a></code> object based on the mouse coordinates</p><h4>Syntax</h4><pre class="method-syntax">object.getCellInfo(<span class="methodArgument">nOffsetX</span>, <span class="methodArgument">nOffsetY</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>nOffsetX</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The left postion relative to the OLAP grid</td></tr><tr><td><code>nOffsetY</code></td><td><code class="type">Number</code></td><td class="optional-column"></td><td></td><td>The top postion relative to the OLAP grid</td></tr></tbody></table><h4>Return Type</h4><p><code class="type"> <code><a href="BiOlapGridCellInfo.html">BiOlapGridCellInfo</a></code> </code></p><h3><a name="getCellInfoBounds"></a>getCellInfoBounds</h3><p>This returns the bounds of a cell relative to the inner edge of the OLAP grid (that is inside the outer border but not inside the headers/fixed area). This returns an object with left, top, width and height fields.</p><h4>Syntax</h4><pre class="method-syntax">object.getCellInfoBounds(<span class="methodArgument">oCellInfo</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>oCellInfo</code></td><td><code class="type"> <code><a href="BiOlapGridCellInfo.html">BiOlapGridCellInfo</a></code> </code></td><td class="optional-column"></td><td></td><td>The information about the cell to get the boundaries for</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Object</code></p><h3><a name="getFixedCornerHtmlCode"></a>getFixedCornerHtmlCode</h3><p>This returns the HTML code for the fixed corner of the OLAP grid. This may include both headers, row headers and some part of the body depending on whether there are any fixed rows/columns</p><h4>Syntax</h4><pre class="method-syntax">object.getFixedCornerHtmlCode(<span class="methodArgument">nWidth</span>, <span class="methodArgument">nHeight</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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?