protected void focusLostCancel() { if (PropUtils.psCommitOnFocusLoss && isEditing()) { getEditor().stopCellEditing(); } else { super.focusLostCancel(); } }
@Override protected void focusLostCancel() { if (PropUtils.psCommitOnFocusLoss && isEditing()) { getEditor().stopCellEditing(); } else { super.focusLostCancel(); } }
protected void focusLostCancel() { if (PropUtils.psCommitOnFocusLoss && isEditing()) { getEditor().stopCellEditing(); } else { super.focusLostCancel(); } }
/** Overridden to remove the editor on focus lost */ public void processFocusEvent(FocusEvent fe) { super.processFocusEvent(fe); if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "processFocusEvent - "); //NOI18N PropUtils.log(BaseTable.class, fe); } if (!isAncestorOf(fe.getOppositeComponent()) || fe.getOppositeComponent() == null) { if (isEditing() && fe.getID() == fe.FOCUS_LOST) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "ProcessFocusEvent got focus lost to unknown component, removing editor"); //NOI18N } focusLostCancel(); } } if (!inEditorRemoveRequest() && !inEditRequest()) { //XXX inEditRequest probably shouldn't be here if (fe.getOppositeComponent() == null && fe.getID() == fe.FOCUS_LOST) { //ignore the strange focus to null stuff NetBeans does return; } paintSelectionRow(); } else { paintSelectionRow(); } }
/** Overridden to remove the editor on focus lost */ public void processFocusEvent(FocusEvent fe) { super.processFocusEvent(fe); if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "processFocusEvent - "); //NOI18N PropUtils.log(BaseTable.class, fe); } if (!isAncestorOf(fe.getOppositeComponent()) || (fe.getOppositeComponent() == null)) { if (isEditing() && (fe.getID() == fe.FOCUS_LOST)) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log( BaseTable.class, "ProcessFocusEvent got focus lost to unknown component, removing editor" ); //NOI18N } focusLostCancel(); } } if (!inEditorRemoveRequest() && !inEditRequest()) { //XXX inEditRequest probably shouldn't be here if ((fe.getOppositeComponent() == null) && (fe.getID() == fe.FOCUS_LOST)) { //ignore the strange focus to null stuff NetBeans does return; } paintSelectionRow(); } else { paintSelectionRow(); } }
/** Overridden to remove the editor on focus lost */ public void processFocusEvent(FocusEvent fe) { super.processFocusEvent(fe); if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "processFocusEvent - "); //NOI18N PropUtils.log(BaseTable.class, fe); } if (!isAncestorOf(fe.getOppositeComponent()) || fe.getOppositeComponent() == null) { if (isEditing() && fe.getID() == fe.FOCUS_LOST) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "ProcessFocusEvent got focus lost to unknown component, removing editor"); //NOI18N } focusLostCancel(); } } if (!inEditorRemoveRequest() && !inEditRequest()) { //XXX inEditRequest probably shouldn't be here if (fe.getOppositeComponent() == null && fe.getID() == fe.FOCUS_LOST) { //ignore the strange focus to null stuff NetBeans does return; } paintSelectionRow(); } else { paintSelectionRow(); } }