@Override public Component getFirstComponent(Container focusCycleRoot) { if (!inEditorRemoveRequest() && isEditing()) { return editorComp; } else { return SheetTable.this; } }
public Component getFirstComponent(Container focusCycleRoot) { if (!inEditorRemoveRequest() && isEditing()) { return editorComp; } else { return SheetTable.this; } } public Component getDefaultComponent(Container focusCycleRoot) {
public Component getFirstComponent(Container focusCycleRoot) { if (!inEditorRemoveRequest() && isEditing()) { return editorComp; } else { return SheetTable.this; } } public Component getDefaultComponent(Container focusCycleRoot) {
@Override public Component getDefaultComponent(Container focusCycleRoot) { if (!inEditorRemoveRequest() && isEditing() && editorComp.isShowing()) { return editorComp; } else { return SheetTable.this; } }
public Component getDefaultComponent(Container focusCycleRoot) { if (!inEditorRemoveRequest() && isEditing() && editorComp.isShowing()) { return editorComp; } else { return SheetTable.this; } } protected boolean accept(Component aComponent) {
public Component getDefaultComponent(Container focusCycleRoot) { if (!inEditorRemoveRequest() && isEditing() && editorComp.isShowing()) { return editorComp; } else { return SheetTable.this; } } protected boolean accept(Component aComponent) {
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(); } }
/** Temporarily store the currently edited feature descriptor and partial * value from the editor. This info is used to restore the editing state * after temporary losses of focus and recoverable changes like reordering * the model, or changes that derive from the underlying node */ void saveEditingState() { storedFd = _getSelection(); if (isEditing()) { InplaceEditor ine = getEditor().getInplaceEditor(); if (ine != null) { partialValue = ine.getValue(); } } }
/** Temporarily store the currently edited feature descriptor and partial * value from the editor. This info is used to restore the editing state * after temporary losses of focus and recoverable changes like reordering * the model, or changes that derive from the underlying node */ void saveEditingState() { storedFd = _getSelection(); if (isEditing()) { InplaceEditor ine = getEditor().getInplaceEditor(); if (ine != null) { partialValue = ine.getValue(); } } }
/** Temporarily store the currently edited feature descriptor and partial * value from the editor. This info is used to restore the editing state * after temporary losses of focus and recoverable changes like reordering * the model, or changes that derive from the underlying node */ void saveEditingState() { storedFd = _getSelection(); if (isEditing()) { InplaceEditor ine = getEditor().getInplaceEditor(); if (ine != null) { partialValue = ine.getValue(); } } }
/** Toggle the expanded state of a property set. If editing, the edit is * cancelled. */ private void toggleExpanded(int index) { if (isEditing()) { getEditor().cancelCellEditing(); } PropertySetModel psm = getSheetModel().getPropertySetModel(); psm.toggleExpanded(index); }
/** Toggle the expanded state of a property set. If editing, the edit is * cancelled. */ private void toggleExpanded (int index) { if (isEditing()) getEditor().cancelCellEditing(); PropertySetModel psm = getSheetModel().getPropertySetModel(); psm.toggleExpanded (index); }
/** Toggle the expanded state of a property set. If editing, the edit is * cancelled. */ private void toggleExpanded (int index) { if (isEditing()) getEditor().cancelCellEditing(); PropertySetModel psm = getSheetModel().getPropertySetModel(); psm.toggleExpanded (index); }
/** Overridden to store some data in the event of a recoverable change, * such as the row currently being edited */ public void tableChanged (TableModelEvent e) { boolean ed = isEditing(); lastSelectedRow = ed ? getEditingRow() : getSelectionModel().getAnchorSelectionIndex(); if (ed) getEditor().cancelCellEditing(); super.tableChanged (e); restoreEditingState(); }
/** Overridden to store some data in the event of a recoverable change, * such as the row currently being edited */ @Override public void tableChanged(TableModelEvent e) { boolean ed = isEditing(); lastSelectedRow = ed ? getEditingRow() : getSelectionModel().getAnchorSelectionIndex(); if (ed) { getEditor().stopCellEditing(); } super.tableChanged(e); restoreEditingState(); }
/** Overridden to store some data in the event of a recoverable change, * such as the row currently being edited */ public void tableChanged (TableModelEvent e) { boolean ed = isEditing(); lastSelectedRow = ed ? getEditingRow() : getSelectionModel().getAnchorSelectionIndex(); if (ed) getEditor().cancelCellEditing(); super.tableChanged (e); restoreEditingState(); }
protected boolean accept(Component aComponent) { //Do not allow focus to go to a child of the editor we're using if //we are in the process of removing the editor if (isEditing() && inEditorRemoveRequest()) { InplaceEditor ine = getEditor().getInplaceEditor(); if (ine != null) { if (aComponent == ine.getComponent() || ine.isKnownComponent(aComponent)) { return false; } } } return super.accept (aComponent) && aComponent.isShowing(); } }
protected boolean accept(Component aComponent) { //Do not allow focus to go to a child of the editor we're using if //we are in the process of removing the editor if (isEditing() && inEditorRemoveRequest()) { InplaceEditor ine = getEditor().getInplaceEditor(); if (ine != null) { if (aComponent == ine.getComponent() || ine.isKnownComponent(aComponent)) { return false; } } } return super.accept (aComponent) && aComponent.isShowing(); } }