WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIAnnotationObserver

IID:63fe98e0-6889-4c2c-ac9f-703e4bc25027
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void onItemAnnotationRemoved ( PRInt64 itemId , AUTF8String name ) void onItemAnnotationSet ( PRInt64 itemId , AUTF8String name ) void onPageAnnotationRemoved ( nsIURI URI , AUTF8String name ) void onPageAnnotationSet ( nsIURI page , AUTF8String name )

void onItemAnnotationRemoved ( PRInt64 itemId , AUTF8String name )

Arguments:
itemId
name

void onItemAnnotationSet ( PRInt64 itemId , AUTF8String name )

Arguments:
itemId
name

void onPageAnnotationRemoved ( nsIURI URI , AUTF8String name )

Called when an annotation is deleted. If name is empty, then ALL annotations for the given URI have been deleted. This is not called when annotations are expired (normally happens when the app exits).

Arguments:
URI
name

void onPageAnnotationSet ( nsIURI page , AUTF8String name )

Called when an annotation value is set. It could be a new annotation, or it could be a new value for an existing annotation.

Arguments:
page
name

References

This interface is passed as an argument to the following methods:

nsIAnnotationService.addObserver, nsIAnnotationService.removeObserver

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com