bitooltip.html
来自「ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.」· HTML 代码 · 共 190 行
HTML
190 行
<!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>BiToolTip</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="BiToolTip">BiToolTip</h1><p>This class is used for showing generic tool tip controls. A tool tip can contain other controls.</p><p>This class extends <code><a href="BiPopup.html">BiPopup</a></code> and therefore all methods and fields available for <code><a href="BiPopup.html">BiPopup</a></code> are also available for <code>BiToolTip</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="BiLabel.html">BiLabel</a></code><ul><li><code><a href="BiPopup.html">BiPopup</a></code><ul><li><code>BiToolTip</code><ul id="api-derived-classes"></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul><h2>Constructor</h2><p><code> new BiToolTip(<span class="methodArgument">sText</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>sText</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The text to show on the tool tip</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="component"></a><code>component</code></td><td><code class="type"> <code><a href="BiComponent.html">BiComponent</a></code> </code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>If the tool tip was shown due to mouse movement or a component becoming focused where the component is assosciated with the current tool tip then this will point to the component that caused the tool tip to be shown.<br> <br> This will return <code>null</code> if the tool tip is hidden or not opened by the tool tip manager. In other words by setting <code><a href="BiComponent.html#visible">visible</a></code> manually.</td></tr><tr><td><a name="hideInterval"></a><code>hideInterval</code></td><td><code class="type">Number</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>The number of milliseconds before hiding the tool tip</td></tr><tr><td><a name="hideOnHover"></a><code>hideOnHover</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>If this is true then the tool tip is hidden if the mouse pointer enters the tool tip.</td></tr><tr><td><a name="mousePointerOffsetX"></a><code>mousePointerOffsetX</code></td><td><code class="type">Number</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>The position of the tool tip relative to the mouse pointer</td></tr><tr><td><a name="mousePointerOffsetY"></a><code>mousePointerOffsetY</code></td><td><code class="type">Number</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>The position of the tool tip relative to the mouse pointer</td></tr><tr><td><a name="showInterval"></a><code>showInterval</code></td><td><code class="type">Number</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>The number of milliseconds before showing the tool tip</td></tr></tbody></table><h2>Methods</h2><p>None.</p><h2>Events</h2><p>None.</p><h2>Static Methods</h2><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td><code><a href="#getTextToolTip">getTextToolTip</a></code></td><td>This returns a tool tip object suitable for text only tool tips. Once the usage of the tool tip is complete some other component might resuse this so if you need to modify your tool tip in any way create a new tool tip.</td></tr></tbody></table><h2>Static Fields</h2><p>None.</p><h2>Remarks</h2><p>If only plain text tool tips without any events or changes while shown are needed consider using the <code><a href="BiComponent.html#toolTipText">toolTipText</a></code> property on the component instead.</p><h2>Static Method Details</h2><h3><a name="getTextToolTip"></a>getTextToolTip</h3><p>This returns a tool tip object suitable for text only tool tips. Once the usage of the tool tip is complete some other component might resuse this so if you need to modify your tool tip in any way create a new tool tip.</p><h4>Syntax</h4><pre class="method-syntax">BiToolTip.getTextToolTip(<span class="methodArgument">sText</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>sText</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The text to show on the tool tip</td></tr></tbody></table><h4>Return Type</h4><p><code class="type"> <code><a href="BiToolTip.html">BiToolTip</a></code> </code></p></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?