Hi,
I wanted to check if a popup is showing, so I wrote this method:
public static int getNumPopupsShowing() {
int result = 0;
NodeList<Element> divs = Document.get().getElementsByTagName("div");
for (int i=0; i<divs.getLength(); i++) {
if ("gwt-PopupPanel".equals(divs.getItem(i).getClassName())) {
result++;
}
}
return result;
}
However, is there a better way?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/Jwf77I4AUsoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.