yeah you're right mr.Todd, haha sorry.btw, I think this is a bug with the
TableRowEditor. I tried it with the tableroweditor demo, added a validation
that will prompt if the amount text input is empty
tableViewRowEditor.getRowEditorListeners().add(new
TableView.RowEditorListener.Adapter() {
@Override
public Vote previewSaveChanges(RowEditor rowEditor, TableView
tableView, int rowIndex, int columnIndex,
Dictionary<String, Object> changes) {
if (amountTextInput.getText().isEmpty()) {
Prompt.prompt(MessageType.ERROR, "amt empty", null,
window);
return Vote.DENY;
}
return Vote.APPROVE;
}
});
while in edit mode and amountTextInput is empty, clicking any other row will
call previewSaveChanges a lot