public boolean isEnabled() { return isEditing(); }
public boolean isEnabled() { return isEditing(); }
public boolean isEnabled() { return isEditing(); }
public void actionPerformed(ActionEvent ae) { if (ae.getSource() instanceof BaseTable) { BaseTable bt = (BaseTable) ae.getSource(); if (bt.isEditing()) { return; } trySendEnterToDialog(bt); } }
public void actionPerformed(ActionEvent ae) { if (ae.getSource() instanceof BaseTable) { BaseTable bt = (BaseTable) ae.getSource(); if (bt.isEditing()) { return; } trySendEnterToDialog(bt); } }
public void actionPerformed(ActionEvent ae) { if (ae.getSource() instanceof BaseTable) { BaseTable bt = (BaseTable) ae.getSource(); if (bt.isEditing()) { return; } trySendEnterToDialog(bt); } }
public void mouseMoved(MouseEvent e) { setArmed(!isEditing() && onCenterLine(e)); }
public void mouseMoved(MouseEvent e) { setArmed(!isEditing() && onCenterLine(e)); }
public void mouseMoved(MouseEvent e) { setArmed(!isEditing() && onCenterLine(e)); }
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(); }
/** The old window system will force focus back to the table, when an editor * becomes visible. This will cause the combo box to close its popup because * it has lost focus, unless we intervene here and make sure focus must be * passed directly to the editor if present */ public final void requestFocus() { if (isEditing()) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "RequestFocus on table delegating to editor component"); //NOI18N } editorComp.requestFocus(); } else { if (!inEditorChangeRequest()) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "RequestFocus on table with no editor present"); //NOI18N } super.requestFocus(); } } }
/** The old window system will force focus back to the table, when an editor * becomes visible. This will cause the combo box to close its popup because * it has lost focus, unless we intervene here and make sure focus must be * passed directly to the editor if present */ public final void requestFocus() { if (isEditing()) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "RequestFocus on table delegating to editor component"); //NOI18N } editorComp.requestFocus(); } else { if (!inEditorChangeRequest()) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "RequestFocus on table with no editor present"); //NOI18N } super.requestFocus(); } } }
/** The old window system will force focus back to the table, when an editor * becomes visible. This will cause the combo box to close its popup because * it has lost focus, unless we intervene here and make sure focus must be * passed directly to the editor if present */ public final void requestFocus() { if (isEditing()) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "RequestFocus on table delegating to editor component"); //NOI18N } editorComp.requestFocus(); } else { if (!inEditorChangeRequest()) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "RequestFocus on table with no editor present"); //NOI18N } super.requestFocus(); } } }
/** The old window system will force focus back to the table, when an editor * becomes visible. This will cause the combo box to close its popup because * it has lost focus, unless we intervene here and make sure focus must be * passed directly to the editor if present */ public final boolean requestFocusInWindow() { if (isEditing()) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "RequestFocusInWindow on table delegating to editor"); //NOI18N } return editorComp.requestFocusInWindow(); } else { if (!inEditorChangeRequest()) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "RequestFocusInWindow on table with no editor present"); //NOI18N } boolean result = super.requestFocusInWindow(); if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, " RequestFocusInWindow result " + result); //NOI18N } return result; } else { return false; } } }
/** The old window system will force focus back to the table, when an editor * becomes visible. This will cause the combo box to close its popup because * it has lost focus, unless we intervene here and make sure focus must be * passed directly to the editor if present */ public final boolean requestFocusInWindow() { if (isEditing()) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "RequestFocusInWindow on table delegating to editor"); //NOI18N } return editorComp.requestFocusInWindow(); } else { if (!inEditorChangeRequest()) { if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, "RequestFocusInWindow on table with no editor present"); //NOI18N } boolean result = super.requestFocusInWindow(); if (PropUtils.isLoggable(BaseTable.class)) { PropUtils.log(BaseTable.class, " RequestFocusInWindow result " + result); //NOI18N } return result; } else { return false; } } }
if (PropUtils.psCommitOnFocusLoss && isEditing() && (fe.getComponent() instanceof InplaceEditor)) { getCellEditor().stopCellEditing(); } else {
if (PropUtils.psCommitOnFocusLoss && isEditing() && (fe.getComponent() instanceof InplaceEditor)) { getCellEditor().stopCellEditing(); } else {
/** 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(); } }