?? biwindow.html
字號:
<!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>BiWindow</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="BiWindow">BiWindow</h1>
<p>
This class is used for internal windows inside the appication window.
</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>BiWindow</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>BiWindow</code><ul id="api-derived-classes"><li><code><a href="BiDialog.html">BiDialog</a></code></li></ul></li></ul></li></ul></li></ul>
</li>
</ul>
<h2>Constructor</h2>
<p><code>
new BiWindow([<span class="methodArgument">sCaption</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>sCaption</code></td>
<td><code class="type">String</code></td>
<td class="optional-column"><img src="check.png" alt="checked"></td>
<td><code>""</code></td>
<td>The title text of the window</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="acceptButton"></a><code>acceptButton</code></td>
<td><code class="type"><code><a href="BiEvenTarget.html">BiEventTarget</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 button that acts as the default accept button. If this is set
then the <code><a href="BiButton.html#action">action</a></code>
event is dispatched from the accept button when the enter key
is pressed. This does not have to
be a <code><a href="BiButton.html">BiButton</a></code>, any
<code><a href="BiEventTarget.html">BiEventTarget</a></code> will work.
</td>
</tr>
<tr>
<td><a name="active"></a><code>active</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 teh window should be the active window</td>
</tr>
<tr>
<td><a name="cancelButton"></a><code>cancelButton</code></td>
<td><code class="type"><code><a href="BiEvenTarget.html">BiEventTarget</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 button that acts as the default cancel button. If this is set
then the <code><a href="BiButton.html#action">action</a></code>
event is dispatched from the cancel button. This does not have to
be a <code><a href="BiButton.html">BiButton</a></code>, any
<code><a href="BiEventTarget.html">BiEventTarget</a></code> will work.
</td>
</tr>
<tr>
<td><a name="canMinimize"></a><code>canMinimize</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 the window can be minimized by the user.
If the window cannot be minimized and the minimize button is shown the
button is disabled.</td>
</tr>
<tr>
<td><a name="caption"></a><code>caption</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 title text of the window</td>
</tr>
<tr>
<td><a name="contentPane"></a><code>contentPane</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>
This returns the component representing the client area of the window.
All components should be added to this component.
</td>
</tr>
<tr>
<td><a name="hideChrome"></a><code>hideChrome</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 hide the caption bar of the window</td>
</tr>
<tr>
<td><a name="icon"></a><code>icon</code></td>
<td><code class="type"><code><a href="BiImage.html">BiImage</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 icon image to show on the window caption. Note that changing
the image object does not update the window icon. You'll have to
set the icon property to update the label icon. The size of the icon
is ignored and will always be 16 x 16 pixels.
</td>
</tr>
<tr>
<td><a name="maximumHeight"></a><code>maximumHeight</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 maximum height that the user
can resize the window to.</td>
</tr>
<tr>
<td><a name="maximumWidth"></a><code>maximumWidth</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 maximum width that the user
can resize the window to.</td>
</tr>
<tr>
<td><a name="minimumHeight"></a><code>minimumHeight</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 minimum height that the user
can resize the window to.</td>
</tr>
<tr>
<td><a name="minimumWidth"></a><code>minimumWidth</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 minimum width that the user
can resize the window to.</td>
</tr>
<tr>
<td><a name="movable"></a><code>movable</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 the window can be moved by the user.
Maximized windows cannot be moved.</td>
</tr>
<tr>
<td><a name="resizable"></a><code>resizable</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 the window can be resized by the user.
If the window cannot be resized and the maximize button is shown the
button is disabled.</td>
</tr>
<tr>
<td><a name="showClose"></a><code>showClose</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 show the close buttton on the caption</td>
</tr>
<tr>
<td><a name="showIcon"></a><code>showIcon</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 show the icon on the caption</td>
</tr>
<tr>
<td><a name="showMaximize"></a><code>showMaximize</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 show the maximize buttton on the caption</td>
</tr>
<tr>
<td><a name="showMinimize"></a><code>showMinimize</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 show the minimize buttton on the caption</td>
</tr>
<tr>
<td><a name="state"></a><code>state</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 state of the window. Valid values are:<br>
<br>
<code>normal</code><br>
<code>maximized</code><br>
<code>minimized</code>
</td>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -