📄 bitheme.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>BiTheme</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="BiTheme">BiTheme</h1><p>This class represents a theme which consists of a css file</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>BiTheme</code>.</p><ul class="partial-class-tree"><li><code><a href="BiObject.html">BiObject</a></code><ul><li><code>BiTheme</code><ul id="api-derived-classes"></ul></li></ul></li></ul><h2>Constructor</h2><p><code> new BiTheme([<span class="methodArgument">sName</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>sName</code></td><td><code class="type">String</code></td><td class="optional-column"><img src="check.png" alt="checked"></td><td></td><td>The name of the theme </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="default"></a><code>default</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 theme is the default theme</td></tr><tr><td><a name="menuCss"></a><code>menuCss</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>This is the string needed for the IE menus to work correctl</td></tr><tr><td><a name="name"></a><code>name</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>The name of the theme</td></tr></tbody></table><h2>Methods</h2><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td><code><a href="#addAppearance">addAppearance</a></code></td><td>Adds a state dependent appearance to the theme</td></tr><tr><td><code><a href="#getAppearanceProperty">getAppearanceProperty</a></code></td><td>Returns a property value for the given appearance.</td></tr><tr><td><code><a href="#getAppearanceStates">getAppearanceStates</a></code></td><td>This returns the states that the appearance supports</td></tr><tr><td><code><a href="#removeAppearance">removeAppearance</a></code></td><td>Removes a state dependent appearance from the theme</td></tr><tr><td><code><a href="#setAppearanceProperty">setAppearanceProperty</a></code></td><td>Sets a property value for a given appearance</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="addAppearance"></a>addAppearance</h3><p>Adds a state dependent appearance to the theme</p><h4>Syntax</h4><pre class="method-syntax">object.addAppearance(<span class="methodArgument">sAppearanceName</span>, <span class="methodArgument">oStates</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>sAppearanceName</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The name of the appearance</td></tr><tr><td><code>oStates</code></td><td><code class="type">String[]</code></td><td class="optional-column"></td><td></td><td>The pseudo states that we need listeners for</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p><h3><a name="getAppearanceProperty"></a>getAppearanceProperty</h3><p>Returns a property value for the given appearance.</p><h4>Syntax</h4><pre class="method-syntax">object.getAppearanceProperty(<span class="methodArgument">sName</span>, <span class="methodArgument">sPropertyName</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>sName</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The appearance name</td></tr><tr><td><code>sPropertyName</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The name of the property</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Object</code></p><h3><a name="getAppearanceStates"></a>getAppearanceStates</h3><p>This returns the states that the appearance supports</p><h4>Syntax</h4><pre class="method-syntax">object.getAppearanceStates(<span class="methodArgument">sName</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>sName</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The name of the appearance</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">Object</code></p><h3><a name="removeAppearance"></a>removeAppearance</h3><p>Removes a state dependent appearance from the theme</p><h4>Syntax</h4><pre class="method-syntax">object.removeAppearance(<span class="methodArgument">sAppearanceName</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>sAppearanceName</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The name of the appearance</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p><h3><a name="setAppearanceProperty"></a>setAppearanceProperty</h3><p>Sets a property value for a given appearance</p><h4>Syntax</h4><pre class="method-syntax">object.setAppearanceProperty(<span class="methodArgument">sName</span>, <span class="methodArgument">sPropertyName</span>, <span class="methodArgument">oValue</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>sName</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The appearance name</td></tr><tr><td><code>sPropertyName</code></td><td><code class="type">String</code></td><td class="optional-column"></td><td></td><td>The name of the property</td></tr><tr><td><code>oValue</code></td><td><code class="type">Object</code></td><td class="optional-column"></td><td></td><td>The value to set</td></tr></tbody></table><h4>Return Type</h4><p><code class="type">void</code></p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -