/** This method exists to support experimental support for commit-on-focus-loss * if NetBeans is started with a specific line switch - SheetTable overrides * this method to stop cell editing if the flag is true. */ protected void focusLostCancel() { removeEditor(); }
/** This method exists to support experimental support for commit-on-focus-loss * if NetBeans is started with a specific line switch - SheetTable overrides * this method to stop cell editing if the flag is true. */ protected void focusLostCancel() { removeEditor(); }
/** This method exists to support experimental support for commit-on-focus-loss * if NetBeans is started with a specific line switch - SheetTable overrides * this method to stop cell editing if the flag is true. */ protected void focusLostCancel() { removeEditor(); }
public void removeEditor() { enterEditorRemoveRequest(); try { // synchronized(getTreeLock()) { super.removeEditor(); //Make the editor detach its listeners and clear values in the //inplace editor since we're done with it getEditor().setInplaceEditor(null); // } //Order of removal can cause the custom editor button to get focus even //though it's no longer onscreen, when the custom editor is removed // Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); } finally { exitEditorRemoveRequest(); } }
@Override public void removeEditor() { enterEditorRemoveRequest(); try { // synchronized(getTreeLock()) { super.removeEditor(); //Make the editor detach its listeners and clear values in the //inplace editor since we're done with it getEditor().setInplaceEditor(null); // } //Order of removal can cause the custom editor button to get focus even //though it's no longer onscreen, when the custom editor is removed // Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); } finally { exitEditorRemoveRequest(); } }
public void removeEditor() { enterEditorRemoveRequest(); try { // synchronized(getTreeLock()) { super.removeEditor(); //Make the editor detach its listeners and clear values in the //inplace editor since we're done with it getEditor().setInplaceEditor(null); // } //Order of removal can cause the custom editor button to get focus even //though it's no longer onscreen, when the custom editor is removed // Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); } finally { exitEditorRemoveRequest(); } }
private void doFocusLost(Component opposite) { // TerminateEditOnFocusLost does not always work, ensure it PropUtils.log(BaseTable.class, " removing editor due to focus change"); //NOI18N if (PropUtils.psCommitOnFocusLoss && isEditing()) { // && (source instanceof InplaceEditor)) { getCellEditor().stopCellEditing(); } else { removeEditor(); } // fire a change if focus did not go to null, so the property sheet will // display the node name, not the selected property if (opposite != null) { fireChange(); } paintSelectionRow(); }
getCellEditor().stopCellEditing(); } else { removeEditor();
getCellEditor().stopCellEditing(); } else { removeEditor();
PropUtils.log(BaseTable.class, " was already editing, removing the editor"); //NOI18N removeEditor();
PropUtils.log(BaseTable.class, " was already editing, removing the editor"); //NOI18N removeEditor();