bifocusmanager.html
来自「ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.」· HTML 代码 · 共 315 行
HTML
315 行
<!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>BiFocusManager</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="BiFocusManager">BiFocusManager</h1><p>This class handles the focus management in Bindows</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>BiFocusManager</code>.</p><ul class="partial-class-tree"><li><code><a href="BiObject.html">BiObject</a></code><ul><li><code>BiFocusManager</code><ul id="api-derived-classes"></ul></li></ul></li></ul><h2>Constructor</h2><p><code> new BiFocusManager()</code></p><h3>Parameters</h3><p>No parameters.</p><h2>Properties</h2><p>None.</p><h2>Methods</h2><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td><code><a href="#compareTabOrder">compareTabOrder</a></code></td><td>This takes two components and compares them to decide which should come first in tab order. To decide this, the <code><a href="BiComponent.html#tabIndex">tabIndex</a></code> and the position of the components are taken into account. This returns a number that can be used in sort methods (-N, 0, +N).</td></tr><tr><td><code><a href="#getComponentAfter">getComponentAfter</a></code></td><td>This returns the component coming after in tab order</td></tr><tr><td><code><a href="#getComponentBefore">getComponentBefore</a></code></td><td>This returns the component coming before in tab order</td></tr><tr><td><code><a href="#getFirstComponent">getFirstComponent</a></code></td><td>This returns the first focusable component inside the container</td></tr><tr><td><code><a href="#getLastComponent">getLastComponent</a></code></td><td>This returns the last focusable component inside the container</td></tr><tr><td><code><a href="#processKeyEvent">processKeyEvent</a></code></td><td>This takes a keyboard event and in case the tab key was pressed the focus manager moves the focus to the next or previous component</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> </p><h2>Method Details</h2><h3><a name="compareTabOrder"></a>compareTabOrder</h3><p>This takes two components and compares them to decide which should come first in tab order. To decide this, the <code><a href="BiComponent.html#tabIndex">tabIndex</a></code> and the position of the components are taken into account. This returns a number that can be used in sort methods (-N, 0, +N).</p><h4>Syntax</h4><pre class="method-syntax">object.compareTabOrder(<span class="methodArgument">c1</span>, <span class="methodArgument">c2</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>c1</code></td><td><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></td><td class="optional-column"></td><td></td><td>The first component to compare</td></tr><tr><td><code>c2</code></td><td><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></td><td class="optional-column"></td><td></td><td>The second component to compare</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Number</code></p><h3><a name="getComponentAfter"></a>getComponentAfter</h3><p>This returns the component coming after in tab order</p><h4>Syntax</h4><pre class="method-syntax">object.getComponentAfter(<span class="methodArgument">oContainer</span>, <span class="methodArgument">oComponent</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>oContainer</code></td><td><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></td><td class="optional-column"></td><td></td><td>The container to get the component in</td></tr><tr><td><code>oComponent</code></td><td><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></td><td class="optional-column"></td><td></td><td>The component to get the component after</td></tr></tbody></table><h4>Return Type</h4><p><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></p><h3><a name="getComponentBefore"></a>getComponentBefore</h3><p>This returns the component coming before in tab order</p><h4>Syntax</h4><pre class="method-syntax">object.getComponentBefore(<span class="methodArgument">oContainer</span>, <span class="methodArgument">oComponent</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>oContainer</code></td><td><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></td><td class="optional-column"></td><td></td><td>The container to get the component in</td></tr><tr><td><code>oComponent</code></td><td><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></td><td class="optional-column"></td><td></td><td>The component to get the component before</td></tr></tbody></table><h4>Return Type</h4><p><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></p><h3><a name="getFirstComponent"></a>getFirstComponent</h3><p>This returns the first focusable component inside the container</p><h4>Syntax</h4><pre class="method-syntax">object.getFirstComponent(<span class="methodArgument">oContainer</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>oContainer</code></td><td><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></td><td class="optional-column"></td><td></td><td>The focus container</td></tr></tbody></table><h4>Return Type</h4><p><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></p><h3><a name="getLastComponent"></a>getLastComponent</h3><p>This returns the last focusable component inside the container</p><h4>Syntax</h4><pre class="method-syntax">object.getLastComponent(<span class="methodArgument">oContainer</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>oContainer</code></td><td><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></td><td class="optional-column"></td><td></td><td>The focus container</td></tr></tbody></table><h4>Return Type</h4><p><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></p><h3><a name="processKeyEvent"></a>processKeyEvent</h3><p>This takes a keyboard event and in case the tab key was pressed the focus manager moves the focus to the next or previous component</p><h4>Syntax</h4><pre class="method-syntax">object.processKeyEvent(<span class="methodArgument">oContainer</span>, <span class="methodArgument">e</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>oContainer</code></td><td><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></td><td class="optional-column"></td><td></td><td>The focus container</td></tr><tr><td><code>e</code></td><td><code class="type"> <code><a href="BiKeyboardEvent.html">BiKeyboardEvent</a></code> </code></td><td class="optional-column"></td><td></td><td>The keyboard event describing the event</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?