check0.setValue(true);
check1.setValue(true);
checkA.setValue(true);
checkC.setValue(true);
groupVertical.addSelectionChangedHandler(new SelectionChangedHandler() {
public void onSelectionChanged(SelectionChangedEvent e) {
String s = "Favorite color: ";
for (XCheckbox c : groupVertical.getCheckedWidgets()) {
s += c.getName() + ", ";
}
label1.setText(s);
}
});
groupHorizontal.addSelectionChangedHandler(new SelectionChangedHandler() {
public void onSelectionChanged(SelectionChangedEvent e) {
String s = "Favorite color: ";
for (XCheckbox c : groupHorizontal.getCheckedWidgets()) {
s += c.getName() + ", ";
}