@Test public void testFireEditingCanceled() { CellEditorListener l = mock(CellEditorListener.class); editor.addCellEditorListener(l); editor.fireEditingCanceled(); verify(l, times(1)).editingCanceled((ChangeEvent) any()); }
protected void fireEditingCanceled() { Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == CellEditorListener.class) { ((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this)); } } }
AbstractCellEditor implements CellEditor { protected void fireEditingCanceled() { Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == CellEditorListener.class) { ((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this)); } } } }
AbstractCellEditor implements CellEditor { protected void fireEditingCanceled() { Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == CellEditorListener.class) { ((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this)); } } }  }
AbstractCellEditor implements CellEditor { protected void fireEditingCanceled() { Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == CellEditorListener.class) { ((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this)); } } }  @Override Object getCellEditorValue(); @Override boolean isCellEditable(EventObject e); @Override boolean shouldSelectCell(EventObject anEvent); @Override boolean stopCellEditing(); @Override void addCellEditorListener(CellEditorListener l); @Override void removeCellEditorListener(CellEditorListener l); }
AbstractCellEditor implements CellEditor { protected void fireEditingCanceled() { Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == CellEditorListener.class) { ((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this)); } } }  @Override Object getCellEditorValue(); @Override boolean isCellEditable(EventObject e); @Override boolean shouldSelectCell(EventObject anEvent); @Override boolean stopCellEditing(); @Override void addCellEditorListener(CellEditorListener l); @Override void removeCellEditorListener(CellEditorListener l);  }