I'm working with an editable Grid with Vaadin 7. When a row is in edit mode, it shows two buttons: save and cancel.
(Just in case, the image was taken from here Book of Vaadin)
With the:
grid.getEditorFieldGroup().addCommitHandler(new CommitHandler() {
private static final long serialVersionUID = 1L;
@SuppressWarnings("unchecked")
@Override
public void preCommit(CommitEvent commitEvent) throws CommitException{}
@Override
public void postCommit(CommitEvent commitEvent) throws CommitException{}
});
I can do something in the save action. But, can I do something like that with the cancel action?
Thank you.
Actually, saveEditor() should be also overridden, as doCancelEditor() seems to be invoked on save action, too. My code: