xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DeWeese Thomas <thomas.dewe...@gmail.com>
Subject Re: How to assert that a document is done loading
Date Wed, 06 Jun 2012 23:25:12 GMT
Hi Marco,

On Jun 6, 2012, at 7:32 AM, ml@mherrn.de wrote:

>> 	I would suggest adding your listener before starting the load of the
>> document. Then you know for sure that the document hasn't finished when you add your
>> listener.
> 
> The problem is: I need to allow access to the DOM also _after_ it was
> displayed. Therefore I am searching for a way that works in both cases,
> before loading finished and after it finished.

	I don't understand, just always register the listener.  Then if you need it you will
have it, if you don't need it you will still have it (and if you change your mind later you
will have it).

>> 	Also I should point out that getSVGDocument might return true before the
>> SVG DOM
>> is really ready to be used so just checking that could be bad you really
>> need to use the
>> LoadEventDispatcherListener.
> 
> Ah, I didn't knew that. Still I need a reliable way to access it without
> knowing whether loading finished or not.

	You can't you need to know that the DOM was finished loading,
before you use it.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message