[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mozilla-rdf
Subject:    Re: monitoring progress of nsIXULTemplateBuilder?
From:       Jan Varga <varga () utcru ! sk>
Date:       2000-07-31 7:06:28
[Download RAW message or body]

"Michael D. Melez" wrote:

> I want to sort a tree after building it from a XUL template, but I can't
> sort the tree until it has finished building, and nsIXULTemplateBuilder
> doesn't appear to have any public interfaces for determining the status
> of its asynchronous builds.  Its only public method is "rebuild" (as in
> "myTree.builder.rebuild();" from JavaScript).
>
> MailNews does this with a call to nsIMsgViewNavigationService's
> EnsureDocumentIsLoaded method, and Address Book does the same thing
> (tagged with a "fix me" that says Address Book should not be reliant on
> this MailNews-specific interface), but I couldn't get this method to
> work in my own application.
>
> What I want is the equivalent of what nsIRDFXMLSink provides for
> asynchronously loading datasources (observers for
> begin/interrupt/resume/end/error events on the build) or perhaps more

I use nsIRDFXMLSink to observe when datasource is loaded (onEndLoad)
or I test it with nsIRDFRemoteDataSource.loaded attribute

When I get observed or loaded is true, I can manipulate with <tree>
which using this datasource.


> simply just a boolean "built" property of the builder object that tells
> me whether the build is complete or not.
>
> Is there already some way to do this?  Is this an RFE?
>

I think there is no such attribute.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic