biresizehandle.html

来自「ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.」· HTML 代码 · 共 253 行

HTML
253
字号
<!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>BiResizeHandle</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="BiResizeHandle">BiResizeHandle</h1><p>This component can be used to allow another component to be resizable using the mouse. The component can be used as a resize handle for the component to resize. It can also be used without adding it to another component by manually calling <code><a href="#startResize">startResize</a></code> in a mouse down event handler.</p><p>This class extends		<code><a href="BiComponent.html">BiComponent</a></code>		and therefore all methods and fields available for		<code><a href="BiComponent.html">BiComponent</a></code>		are also available for <code>BiResizeHandle</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>BiResizeHandle</code><ul id="api-derived-classes"><li><code><a href="BiOlapGridResizeOutline.html">BiOlapGridResizeOutline</a></code></li><li><code><a href="BiTreeViewResizeOutline.html">BiTreeViewResizeOutline</a></code></li></ul></li></ul></li></ul></li></ul></li></ul><h2>Constructor</h2><p><code>	new BiResizeHandle([<span class="methodArgument">oHandleFor</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>oHandleFor</code></td><td><code class="type">				<code><a href="BiComponent.html">BiComponent</a></code>			</code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>The component that should be resizable. </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="handleFor"></a><code>handleFor</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"><img src="check.png" alt="checked"></td><td>The component that the handle should be a resize handle for.</td></tr><tr><td><a name="resizeDirection"></a><code>resizeDirection</code></td><td><code class="type">String</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 direction that the resizing should be done in. Valid values are:<br>								<br>				 s - south<br>				 n - north<br>				 e - east<br>				 w - west<br>				 se - south east<br>				 sw - south west<br>				 ne - north east<br>				 nw - north west</td></tr><tr><td><a name="resizing"></a><code>resizing</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 the resize handle is currently actively resizing something</td></tr></tbody></table><h2>Methods</h2><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td><code><a href="#startResize">startResize</a></code></td><td>Start the resizing of the component</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="beforeresize"></a><code>beforeresize</code></td><td><code class="type">				<code><a href="BiResizeEvent.html">BiResizeEvent</a></code>			</code></td><td class="bubbles-column"></td><td>Fires continually during the resizing of the component. Call 											<code><a href="BiEvent.html#preventDefault">preventDefault</a></code> 											on the event object to prevent the new size from being applied.</td></tr><tr><td><a name="resize"></a><code>resize</code></td><td><code class="type">				<code><a href="BiResizeEvent.html">BiResizeEvent</a></code>			</code></td><td class="bubbles-column"></td><td>Fires continually during the resizing of the component</td></tr><tr><td><a name="resizeend"></a><code>resizeend</code></td><td><code class="type">				<code><a href="BiEvent.html">BiEvent</a></code>			</code></td><td class="bubbles-column"></td><td>Fires when resizing of the component ends.</td></tr><tr><td><a name="resizestart"></a><code>resizestart</code></td><td><code class="type">				<code><a href="BiEvent.html">BiEvent</a></code>			</code></td><td class="bubbles-column"></td><td>Fires once when the resizing begins. Call 									<code><a href="BiEvent.html#preventDefault">preventDefault</a></code>                                  on the event object to prevent the component from being resized.</td></tr></tbody></table><h2>Static Methods</h2><p>None.</p><h2>Static Fields</h2><p>None.</p><h2>Remarks</h2><p>When used in conjunction with <code><a href="#startResize">startResize</a></code> the component is 			resized when the mouse is moved and the resizing ends when the mouse up          event occurs. Therefore the logical place to call <code><a href="#startResize">startResize</a></code>          is inside an event handler for a <code><a href="BiComponent.html#mousedown">mousedown</a></code>          event.</p><h2>Method Details</h2><h3><a name="startResize"></a>startResize</h3><p>Start the resizing of the component</p><h4>Syntax</h4><pre class="method-syntax">object.startResize(<span class="methodArgument">sDir</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>sDir</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The direction that the resizing should be done in. Valid 							values are:<br>												<br>						                          s - south<br>						                          n - north<br>						                          e - east<br>						                          w - west<br>						                          se - south east<br>						                          sw - south west<br>						                          ne - north east<br>						                          nw - north west</td></tr><tr><td><code>e</code></td><td><code class="type">						<code><a href="BiMouseEvent.html">BiMouseEvent</a></code>					</code></td><td class="optional-column"></td><td></td><td>The event object used to start the resizing using the mouse</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?