mozilla

Revision 125460 of extIPreference

  • Revision slug: Toolkit_API/extIPreference
  • Revision title: extIPreference
  • Revision id: 125460
  • Created:
  • Creator: jenzed
  • Is current revision? No
  • Comment 2 words added, 2 words removed

Revision Content

{{ Fx_minversion_header("3") }}

Method overview

void reset()

Attributes

Attribute Type Description
name readonly attribute AString The name of the preference.
type readonly attribute AString A string representing the type of preference (String, Boolean, or Number).
value attribute nsIVariant Get/Set the value of the preference.
locked attribute boolean Get the locked state of the preference. Set to a boolean value to (un)lock it.
modified readonly attribute boolean Check if a preference has been modified by the user, or not.
branch readonly attribute extIPreferenceBranch The preference branch that contains this preference.
events readonly attribute extIEvents The events object for this preference. supports: "change"

Methods

reset()

Resets a preference back to its default values.

void reset()
Parameters
Return value

 

See also

 

{{ languages( { "es": "es/FUEL/Preference", "fr": "fr/FUEL/Preference", "ja": "ja/FUEL/Preference" } ) }}

Revision Source

<p>{{ Fx_minversion_header("3") }}</p>
<h2 name="Method_overview">Method overview</h2>
<table class="standard-table"> <tbody> <tr> <td><code>void <a href="#reset.28.29">reset</a>()</code></td> </tr> </tbody>
</table>
<h2 name="Attributes">Attributes</h2>
<table class="standard-table"> <tbody> <tr> <td class="header">Attribute</td> <td class="header">Type</td> <td class="header">Description</td> </tr> <tr> <td><code>name</code></td> <td><code>readonly attribute AString</code></td> <td>The name of the preference.</td> </tr> <tr> <td><code>type</code></td> <td><code>readonly attribute AString</code></td> <td>A string representing the type of preference (String, Boolean, or Number).</td> </tr> <tr> <td><code>value</code></td> <td><code>attribute nsIVariant</code></td> <td>Get/Set the value of the preference.</td> </tr> <tr> <td><code>locked</code></td> <td><code>attribute boolean</code></td> <td>Get the locked state of the preference. Set to a boolean value to (un)lock it.</td> </tr> <tr> <td><code>modified</code></td> <td><code>readonly attribute boolean</code></td> <td>Check if a preference has been modified by the user, or not.</td> </tr> <tr> <td><code>branch</code></td> <td><code>readonly attribute <a href="/en/FUEL/PreferenceBranch" title="en/FUEL/PreferenceBranch">extIPreferenceBranch</a></code></td> <td>The preference branch that contains this preference.</td> </tr> <tr> <td><code>events</code></td> <td><code>readonly attribute <a href="/en/FUEL/Events" title="en/FUEL/Events">extIEvents</a></code></td> <td>The events object for this preference. supports: "change"</td> </tr> </tbody>
</table>
<h2 name="Methods">Methods</h2>
<h3 name="reset.28.29">reset()</h3>
<p>Resets a preference back to its default values.</p>
<pre class="eval">void reset()
</pre>
<h6 name="Parameters">Parameters</h6>
<h6 name="Return_value">Return value</h6>
<p> </p>
<h2 name="See_also">See also</h2>
<p> </p>

<p>{{ languages( { "es": "es/FUEL/Preference", "fr": "fr/FUEL/Preference", "ja": "ja/FUEL/Preference" } ) }}</p>
Revert to this revision