fuelIAnnotations

  • Revision slug: Toolkit_API/FUEL/fuelIAnnotations
  • Revision title: fuelIAnnotations
  • Revision id: 168366
  • Created:
  • Creator: Gomita
  • Is current revision? No
  • Comment /* Method overview */

Revision Content

Method overview

boolean has(in AString aName)
nsIVariant get(in AString aName)
void set(in AString aName, in nsIVariant aValue, in PRInt32 aExpiration)
void remove(in AString aName)

Attributes

Attribute Type Description
names readonly attribute nsIVariant Array of the annotation names associated with the owning item

Methods

has()

Determines if an annotation exists with the given name.

boolean has(in AString aName)
Parameters
<tt>aName</tt>
The name of the annotation
Return value

true if an annotation exists with the given name, false otherwise.

get()

Gets the value of an annotation with the given name.

nsIVariant get(in AString aName)
Parameters
<tt>aName</tt>
The name of the annotation
Return value

A variant containing the value of the annotation. Supports string, boolean and number.

set()

Sets the value of an annotation with the given name.

void set(in AString aName, in nsIVariant aValue, in PRInt32 aExpiration)
Parameters
<tt>aName</tt>
The name of the annotation
<tt>aValue</tt>
The new value of the annotation. Supports string, boolean and number.
<tt>aExpiration</tt>
The expiration policy for the annotation. See nsIAnnotationService.
Return value


remove()

Removes the named annotation from the owner item.

void remove(in AString aName)
Parameters
<tt>aName</tt>
The name of annotation.
Return value


See also

{{ wiki.languages( { "fr": "fr/FUEL/Annotations" } ) }}

Revision Source

<p>
</p>
<h2 name="Method_overview">Method overview</h2>
<table class="standard-table">

<tbody><tr>
<td> <code>boolean <a href="#has.28.29">has</a>(in AString aName)</code>
</td></tr>
<tr>
<td> <code>nsIVariant <a href="#get.28.29">get</a>(in AString aName)</code>
</td></tr>
<tr>
<td> <code>void <a href="#set.28.29">set</a>(in AString aName, in nsIVariant aValue, in PRInt32 aExpiration)</code>
</td></tr>
<tr>
<td> <code>void <a href="#remove.28.29">remove</a>(in AString aName)</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>names</code>
</td><td><code>readonly attribute nsIVariant</code>
</td><td>Array of the annotation names associated with the owning item
</td></tr></tbody></table>
<h2 name="Methods">Methods</h2>
<h3 name="has.28.29">has()</h3>
<p>Determines if an annotation exists with the given name. 
</p>
<pre class="eval">boolean has(in AString aName)
</pre>
<h6 name="Parameters">Parameters</h6>
<dl><dt><tt>aName</tt>
</dt><dd>The name of the annotation
</dd></dl>
<h6 name="Return_value">Return value</h6>
<p>true if an annotation exists with the given name, false otherwise.
</p>
<h3 name="get.28.29">get()</h3>
<p>Gets the value of an annotation with the given name. 
</p>
<pre class="eval">nsIVariant get(in AString aName)
</pre>
<h6 name="Parameters_2">Parameters</h6>
<dl><dt><tt>aName</tt>
</dt><dd>The name of the annotation
</dd></dl>
<h6 name="Return_value_2">Return value</h6>
<p>A variant containing the value of the annotation. Supports string, boolean and number.
</p>
<h3 name="set.28.29">set()</h3>
<p>Sets the value of an annotation with the given name. 
</p>
<pre class="eval">void set(in AString aName, in nsIVariant aValue, in PRInt32 aExpiration)
</pre>
<h6 name="Parameters_3">Parameters</h6>
<dl><dt><tt>aName</tt>
</dt><dd>The name of the annotation
</dd><dt><tt>aValue</tt>
</dt><dd>The new value of the annotation. Supports string, boolean and number.
</dd><dt><tt>aExpiration</tt>
</dt><dd>The expiration policy for the annotation. See nsIAnnotationService.
</dd></dl>
<h6 name="Return_value_3">Return value</h6>
<p><br>
</p>
<h3 name="remove.28.29">remove()</h3>
<p>Removes the named annotation from the owner item. 
</p>
<pre class="eval">void remove(in AString aName)
</pre>
<h6 name="Parameters_4">Parameters</h6>
<dl><dt><tt>aName</tt>
</dt><dd>The name of annotation.
</dd></dl>
<h6 name="Return_value_4">Return value</h6>
<p><br>
</p>
<h2 name="See_also">See also</h2>
<div class="noinclude">
</div>
{{ wiki.languages( { "fr": "fr/FUEL/Annotations" } ) }}
Revert to this revision