confirmButton.setTitle("OK");
confirmButton.setWidth(100);
confirmButton.setStartRow(true);
confirmButton.setEndRow(false);
confirmButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
onConfirm(event);
hide();
}
});
cancelButton.setTitle("Cancel");
cancelButton.setWidth(100);
cancelButton.setStartRow(false);
cancelButton.setEndRow(true);
cancelButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
hide();
}
});