Implemented by
[scriptable, uuid(9da147a7-5854-49e3-a397-22ecdd93e96d)]
interface nsIXULTemplateBuilder : nsISupports
Attributes
The composite datasource that the template builder observes and uses to create content
readonly attribute
nsIRDFCompositeDataSource
database
The ``root'' node in the DOM to which this builder is attached
readonly attribute
nsIDOMElement
root
Methods
Add a listener to this template builder. The template builder holds a strong reference to the listener.
void
addListener(in nsIXULBuilderListener aListener)
Invoked lazily by a XUL element that needs its child content built.
[noscript]
void
createContents(in nsIContent_ptr aElement)
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.
[noscript]
void
init(in nsIContent_ptr aElement)
Force the template builder to rebuild its content.
void
rebuild()
Reload any of our RDF datasources that support nsIRDFRemoteDatasource.
@note This is a temporary hack so that remote-XUL authors can
reload remote datasources. When RDF becomes remote-scriptable,
this will no longer be necessary.
void
refresh()
Remove a listener from this template builder.
void
removeListener(in nsIXULBuilderListener aListener)
Compare to: