Hi Marco,

On Jun 6, 2012, at 7:32 AM, m...@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-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to