/** Overridden to check if the edit failed, and if so, set a focus event * countdown for re-initiating editing */ public void editingStopped(ChangeEvent e) { super.editingStopped(e); //Po Ting's request for Rave - if commit on focus loss is on, all //edits look like failures and trigger a new call to editCellAt() if(!PropUtils.psCommitOnFocusLoss && !getEditor().isLastUpdateSuccessful()) { //The last update failed, we're two focus events away from really //having focus again - we'll get one, then the error dialog will //steal focus. On the second one we've got focus back. countDown = 2; } }
/** Overridden to check if the edit failed, and if so, set a focus event * countdown for re-initiating editing */ public void editingStopped(ChangeEvent e) { super.editingStopped(e); //Po Ting's request for Rave - if commit on focus loss is on, all //edits look like failures and trigger a new call to editCellAt() if(!PropUtils.psCommitOnFocusLoss && !getEditor().isLastUpdateSuccessful()) { //The last update failed, we're two focus events away from really //having focus again - we'll get one, then the error dialog will //steal focus. On the second one we've got focus back. countDown = 2; } }
/** Overridden to check if the edit failed, and if so, set a focus event * countdown for re-initiating editing */ @Override public void editingStopped(ChangeEvent e) { super.editingStopped(e); //Po Ting's request for Rave - if commit on focus loss is on, all //edits look like failures and trigger a new call to editCellAt() if (!PropUtils.psCommitOnFocusLoss && !getEditor().isLastUpdateSuccessful()) { //The last update failed, we're two focus events away from really //having focus again - we'll get one, then the error dialog will //steal focus. On the second one we've got focus back. countDown = 2; } }