You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by "Bishop, Michael W. CONTR J9C880" <Mi...@je.jfcom.mil> on 2006/11/16 19:21:14 UTC
Problems with GVTTreeAdapter
In a whiteboard, I'm switching pages (documents) and refreshing pages
for images, etc., causing me to wait for the GVTTree to render and I
believe it's causing errors in my application. At random times, I get
an NPE when trying to access the UpdateManager. If I already have an
"onLoad" listener attached to the document, can I just use that class to
tell me when everything's ready? Doesn't "onLoad" come after the
GVTTree and ensure that the UpdateManager is ready?
Michael Bishop
Re: Problems with GVTTreeAdapter
Posted by th...@kodak.com.
Hi Michael,
"Bishop, Michael W. CONTR J9C880" <Mi...@je.jfcom.mil> wrote on
11/16/2006 01:21:14 PM:
> In a whiteboard, I?m switching pages (documents) and refreshing pages
for
> images, etc., causing me to wait for the GVTTree to render and I believe
it?s
> causing errors in my application. At random times, I get an NPE when
trying
> to access the UpdateManager. If I already have an ?onLoad? listener
attached
> to the document, can I just use that class to tell me when everything?s
ready?
> Doesn?t ?onLoad? come after the GVTTree and ensure that the
UpdateManager is ready?
From memory onLoad actually happens before the UpdateManager is
started, this is because
we run onLoad before the first rendering happens. You should wait for the
first
gvtRendered callback before accessing the updateManager.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org