bilauncher.html

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

HTML
287
字号
<!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>BiLauncher</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="BiLauncher">BiLauncher</h1><p>This class can be used to create a launcher for launching Bindows applications</p><p>This class extends		<code><a href="Object.html">Object</a></code>		and therefore all methods and fields available for		<code><a href="Object.html">Object</a></code>		are also available for <code>BiLauncher</code>.</p><ul class="partial-class-tree"><li><code>BiLauncher</code><ul id="api-derived-classes"></ul></li></ul><h2>Constructor</h2><p><code>	new BiLauncher([<span class="methodArgument">sRootPath</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>sRootPath</code></td><td><code class="type">String</code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>Optional path to the root of Bindows. </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="adfName"></a><code>adfName</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 ADF name is taken from the ADF path</td></tr><tr><td><a name="adfPath"></a><code>adfPath</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 path to the ADF file.</td></tr><tr><td><a name="arguments"></a><code>arguments</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 arguments to pass to the main method of the ADF</td></tr><tr><td><a name="errorMessage"></a><code>errorMessage</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>In case we got an error trying to launch the application this is a non empty string</td></tr><tr><td><a name="focusOnLoad"></a><code>focusOnLoad</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>Whether to try to focus the window when the application loads</td></tr><tr><td><a name="hasError"></a><code>hasError</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>This is true if an error has occured</td></tr><tr><td><a name="newWindow"></a><code>newWindow</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>Whether to launch the application in a new window</td></tr><tr><td><a name="reuseWindow"></a><code>reuseWindow</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>Whether to reuse a previously opened window. If you want to launch the new application in the current window set <code><a href="#newWindow">newWindow</a></code> to false.</td></tr><tr><td><a name="rootPath"></a><code>rootPath</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 path where Bindows resides. This is usually the path where bimain.html can be found.</td></tr><tr><td><a name="supported"></a><code>supported</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 current browser supports Bindows</td></tr><tr><td><a name="target"></a><code>target</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 target name of the window or frame to open the application in. If this is <code>""</code> or <code>null</code> the ADF name will be used instead. If <code><a href="#reuseWindow">reuseWindow</a></code> is <code>false</code> then this property will be ignored.</td></tr><tr><td><a name="window"></a><code>window</code></td><td><code class="type">Object</code></td><td class="get-column"><img src="check.png" alt="checked"></td><td class="set-column"></td><td>This returns the browser window that the application is launched in</td></tr></tbody></table><h2>Methods</h2><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td><code><a href="#launch">launch</a></code></td><td>This launches the Bindows application using the properties previously set and using the arguments provided. The number of arguments are optional and these will be passed to the main method in the ADF file as strings.</td></tr></tbody></table><h2>Events</h2><p>None.</p><h2>Static Methods</h2><p>None.</p><h2>Static Fields</h2><table><thead><tr><td>Name</td><td>Type</td><td>Descripton</td></tr></thead><tbody><tr><td><code>ADF_ARGUMENT_PARSE_ERROR</code></td><td><code class="type">String</code></td><td>The error message string to show when the ADF argument cannot be parsed</td></tr><tr><td><code>FILE_NOT_FOUND</code></td><td><code class="type">String</code></td><td>Error message to show when file is not found</td></tr><tr><td><code>GECKO_ERROR_VERSION</code></td><td><code class="type">String</code></td><td>Error message to show when using a too old version of Gecko</td></tr><tr><td><code>IE_ERROR_PLATFORM</code></td><td><code class="type">String</code></td><td>Error message to show when using IE on a non supported platform</td></tr><tr><td><code>IE_ERROR_VERSION</code></td><td><code class="type">String</code></td><td>Error message to show when using a too old version of IE</td></tr><tr><td><code>MISSING_ADF_ARGUMENT</code></td><td><code class="type">String</code></td><td>The error message string to show when the ADF argument is missing</td></tr><tr><td><code>NOT_SUPPORTED_ERROR</code></td><td><code class="type">String</code></td><td>Error message to show when using a non supported browser</td></tr><tr><td><code>POPUP_BLOCKER_QUESTION</code></td><td><code class="type">String</code></td><td>Error text to show when the window failed to open and ask the user if they might have a popup blocker that interferes with opening the window</td></tr></tbody></table><h2>Remarks</h2><p>You can also use the function <code>biExec</code> directly.<br>				<br>				<code>biExec( sRootPath, sAdfPath, bDontOpenNewWindow, args... )</code>		<br>				<br>		              The 4th and the following arguments are passed as arguments to the              main method of the ADF.</p><h2>Method Details</h2><h3><a name="launch"></a>launch</h3><p>This launches the Bindows application using the properties previously set and using the arguments provided. The number of arguments are optional and these will be passed to the main method in the ADF file as strings.</p><h4>Syntax</h4><pre class="method-syntax">object.launch([<span class="methodArgument">sAdfPath</span> [, <span class="methodArgument">oArgs</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>sAdfPath</code></td><td><code class="type">String</code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>The path to the ADF file. If this is a relative path it is relative to the current document. If 								this is left out then the <code><a href="#adfPath">adfPath</a></code> is                              used.</td></tr><tr><td><code>oArgs</code></td><td><code class="type">String</code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>Any number of arguments that will be passed to the main ADF method.</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Boolean</code></p></body></html>

⌨️ 快捷键说明

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