List of usage examples for com.google.gwt.query.client GQuery get
public NodeList<Element> get()
From source file:com.google.gwt.site.demo.AbstractDemos.java
License:Apache License
@Override public void onContentLoaded() { GQuery demos = $("//div[@id='content']//div[starts-with(@id, '" + prefix + "')]"); NodeList<Element> nodeList = demos.get(); for (int i = 0; i < nodeList.getLength(); i++) { Element item = nodeList.getItem(i); Widget demo = getDemoToLoad(item.getId().replace(prefix, "")); if (demo != null) { HTMLPanel panel = HTMLPanel.wrap(item); panel.add(demo);/*w w w .j a v a2s.com*/ } } }