i'm not so sure in 1.4. you may have to use JSNI. in 1.5 you can do
this:
Button b = new Button("Check all");
b.addSelectionListener(new SelectionListener<ComponentEvent>() {
public void componentSelected(ComponentEvent ce) {
NodeList<Element> nl =
Document.get().getElementsByTagName("input");
for (int i = 0; i < nl.getLength(); i++) {
Element el = nl.getItem(i);
if (el.getTagName().toUpperCase().equals("INPUT")) {
if
(el.getPropertyString("type").toUpperCase().equals("CHECKBOX")) {
el.setPropertyBoolean("checked", true);
}
}
}
}
});
RootPanel.get().add(b);
return;