What is the best way to check if an Element instance is attached? The same like Widget.isAttached().
-- The options I see: I could
1) ask the Body Element if it contains the Element instance (Document.get().getBody().isOrHasChild(element))
2) I could walk up the tree from the Element instance till I encounter the Body html element.
I think 2) is faster, but is there another (better) option I am forgetting.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment