Column<MyProxy, Boolean> colIsReference =
new Column<MyProxy, Boolean>(new CheckboxCell()) {
@Override
public Boolean getValue(MyProxy rdm) {
return Boolean.valueOf(rdm.isReference());
}
};
colIsReference.setFieldUpdater(new FieldUpdater<MyProxy, Boolean>() {
public void update(final int index, final MyProxy rmd, Boolean value) {
dataUpdater().setReference(
rmd,
value.booleanValue(),
false, // don't override current reference (opens dialog if there is another reference)
new Runnable() {
// called if canceled
public void run() {
// ---> Do something that unchecks the checkbox <---
}
}
);
}
});