Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIXULBuilderListener

This object is a listener that will be notified when a template builder rebuilds its content.
Inherits from: nsISupports Last changed in Gecko 1.7

Method overview

void didRebuild(in nsIXULTemplateBuilder aBuilder);
void willRebuild(in nsIXULTemplateBuilder aBuilder);

Methods

didRebuild()

Called after a template builder has rebuilt its content.

void didRebuild(
  in nsIXULTemplateBuilder aBuilder
);
Parameters
aBuilder
The template builder that has rebuilt the content.

willRebuild()

Called before a template builder rebuilds its content.

void willRebuild(
  in nsIXULTemplateBuilder aBuilder
);
Parameters
aBuilder
The template builder that rebuilds the content.

Example

  1. Create an object which implements nsIXULBuilderListener:
    var myListener =
    {
     QueryInterface: function(aIID)
      {
       if (aIID.equals(Components.interfaces.nsIXULBuilderListener) ||
           aIID.equals(Components.interfaces.nsISupports))
         return this;
       throw Components.results.NS_NOINTERFACE;
    
      },
      willRebuild : function(builder) {},
      didRebuild : function(builder) { }
      }
    
  2. Attach the listener to a element:
    myElement.addListener(myListener);
    

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, julienfabre
 Last updated by: Sheppy,