@Override public boolean isEnabled() { return isEditing(); }
@Override public boolean isEnabled() { return isEditing(); }
@Override public boolean isEnabled() { return isEditing(); }
@Override public boolean isEnabled() { return isEditing(); }
@Override public boolean isEnabled() { return isEditing(); }
/** * * @return a boolean to indicate whether the table needs to fake being focus * cycle root. */ private boolean isEditingFocusCycleRoot() { return isEditing() && isTerminateEditOnFocusLost(); }
/** * * @return a boolean to indicate whether the table needs to fake being focus * cycle root. */ private boolean isEditingFocusCycleRoot() { return isEditing() && isTerminateEditOnFocusLost(); }
/** * * @return a boolean to indicate whether the table needs to fake being focus * cycle root. */ private boolean isEditingFocusCycleRoot() { return isEditing() && isTerminateEditOnFocusLost(); }
/** * * @return a boolean to indicate whether the table needs to fake being focus * cycle root. */ private boolean isEditingFocusCycleRoot() { return isEditing() && isTerminateEditOnFocusLost(); }
/** * * @return a boolean to indicate whether the table needs to fake being focus * cycle root. */ private boolean isEditingFocusCycleRoot() { return isEditing() && isTerminateEditOnFocusLost(); }
@Override public void actionPerformed(ActionEvent e) { if (!isEditing()) return; getCellEditor().cancelCellEditing(); }
public void actionPerformed(ActionEvent e) { if (!isEditing()) return; getCellEditor().cancelCellEditing(); }
@Override public void actionPerformed(ActionEvent e) { if (!isEditing()) return; getCellEditor().cancelCellEditing(); }
@Override public void actionPerformed(ActionEvent e) { if (!isEditing()) return; getCellEditor().cancelCellEditing(); }
@Override public void actionPerformed(ActionEvent e) { if (!isEditing()) return; getCellEditor().cancelCellEditing(); }
/** * Adjusts editing state after column's property change. Cancels ongoing * editing if the sending column is the editingColumn and the column's * editable changed to <code>false</code>, otherwise does nothing. * * @param column the <code>TableColumn</code> which sent the change * notifcation * @param editable the new value of the column's editable property */ private void updateEditingAfterColumnChanged(TableColumn column, boolean editable) { if (!isEditing()) return; int viewIndex = convertColumnIndexToView(column.getModelIndex()); if ((viewIndex < 0) || (viewIndex != getEditingColumn())) return; getCellEditor().cancelCellEditing(); }
/** * Adjusts editing state after column's property change. Cancels ongoing * editing if the sending column is the editingColumn and the column's * editable changed to <code>false</code>, otherwise does nothing. * * @param column the <code>TableColumn</code> which sent the change * notifcation * @param editable the new value of the column's editable property */ private void updateEditingAfterColumnChanged(TableColumn column, boolean editable) { if (!isEditing()) return; int viewIndex = convertColumnIndexToView(column.getModelIndex()); if ((viewIndex < 0) || (viewIndex != getEditingColumn())) return; getCellEditor().cancelCellEditing(); }
/** * Adjusts editing state after column's property change. Cancels ongoing * editing if the sending column is the editingColumn and the column's * editable changed to <code>false</code>, otherwise does nothing. * * @param column the <code>TableColumn</code> which sent the change * notifcation * @param editable the new value of the column's editable property */ private void updateEditingAfterColumnChanged(TableColumn column, boolean editable) { if (!isEditing()) return; int viewIndex = convertColumnIndexToView(column.getModelIndex()); if ((viewIndex < 0) || (viewIndex != getEditingColumn())) return; getCellEditor().cancelCellEditing(); }
/** * Adjusts editing state after column's property change. Cancels ongoing * editing if the sending column is the editingColumn and the column's * editable changed to <code>false</code>, otherwise does nothing. * * @param column the <code>TableColumn</code> which sent the change * notifcation * @param editable the new value of the column's editable property */ private void updateEditingAfterColumnChanged(TableColumn column, boolean editable) { if (!isEditing()) return; int viewIndex = convertColumnIndexToView(column.getModelIndex()); if ((viewIndex < 0) || (viewIndex != getEditingColumn())) return; getCellEditor().cancelCellEditing(); }
/** * Returns a boolean to indicate if the current focus owner is descending * from this table. Returns false if not editing, otherwise walks the * focusOwner hierarchy, taking popups into account. * * @return a boolean to indicate if the current focus owner is contained. */ private boolean isFocusOwnerDescending() { if (!isEditing()) return false; Component focusOwner = KeyboardFocusManager .getCurrentKeyboardFocusManager().getFocusOwner(); // PENDING JW: special casing to not fall through ... really wanted? if (focusOwner == null) return false; if (SwingXUtilities.isDescendingFrom(focusOwner, this)) return true; // same with permanent focus owner Component permanent = KeyboardFocusManager .getCurrentKeyboardFocusManager().getPermanentFocusOwner(); return SwingXUtilities.isDescendingFrom(permanent, this); }