nsIXULTemplateBuilder

IID:9da147a7-5854-49e3-a397-22ecdd93e96d
Inherits From:nsISupports

This interface is implemented by the following components:


Properties

readonly nsIRDFCompositeDataSource database

The composite datasource that the template builder observes and uses to create content

readonly nsIDOMElement root

The ``root'' node in the DOM to which this builder is attached


Methods

void addListener ( nsIXULBuilderListener listener ) [noscript] void createContents ( nsIContent_ptr element ) [noscript] void init ( nsIContent_ptr element ) void rebuild ( ) void refresh ( ) void removeListener ( nsIXULBuilderListener listener )

void addListener ( nsIXULBuilderListener listener )

Add a listener to this template builder. The template builder holds a strong reference to the listener.

Arguments:
listener

void createContents ( nsIContent_ptr element )

Invoked lazily by a XUL element that needs its child content built.

Arguments:
element

void init ( nsIContent_ptr element )

Called to initialize a XUL content builder on a particular root element. This element presumably has a ``datasources'' attribute, which the builder will parse to set up the template builder's datasources.

Arguments:
element

void rebuild ( )

Force the template builder to rebuild its content.


void refresh ( )

Reload any of our RDF datasources that support nsIRDFRemoteDatasource.


void removeListener ( nsIXULBuilderListener listener )

Remove a listener from this template builder.

Arguments:
listener

References

This interface is the type of the following properties:

nsIDOMXULElement.builder

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

nsIXULBuilderListener.didRebuild, nsIXULBuilderListener.willRebuild

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com