mozilla
Your Search Results

    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,