Java Code Examples for javax.swing.event.CellEditorListener#editingCanceled()

The following examples show how to use javax.swing.event.CellEditorListener#editingCanceled() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ComponentsSelectionPanel.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private void fireEditingCanceled() {
    final CellEditorListener[] clone;
    synchronized (listeners) {
        clone = listeners.toArray(new CellEditorListener[0]);
    }
    
    final ChangeEvent event = new ChangeEvent(this);
    for (CellEditorListener listener: clone) {
        listener.editingCanceled(event);
    }
}
 
Example 2
Source File: FormulaFragmentCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 3
Source File: TagListTableCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 4
Source File: PropertyCellEditorWithEllipsis.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 5
Source File: DateCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = this.listeners.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 6
Source File: TimeCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = this.listeners.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 7
Source File: ArrayCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 8
Source File: TypedHeaderCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 9
Source File: StructureFunctionCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 10
Source File: ReportPreProcessorCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 11
Source File: ArrayCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 12
Source File: AbstractStringValueCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 13
Source File: GroupDataEntryCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingCanceled() {
  final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class );
  final ChangeEvent event = new ChangeEvent( this );
  for ( int i = 0; i < listeners.length; i++ ) {
    final CellEditorListener listener = listeners[ i ];
    listener.editingCanceled( event );
  }
}
 
Example 14
Source File: ThreeStateCheckBoxRenderer.java    From consulo with Apache License 2.0 5 votes vote down vote up
@Override
public void cancelCellEditing() {
  final ChangeEvent e = new ChangeEvent(this);
  for (final CellEditorListener listener : new ArrayList<CellEditorListener>(myListeners)) {
    listener.editingCanceled(e);
  }
}
 
Example 15
Source File: AttrTable.java    From Logisim with GNU General Public License v3.0 4 votes vote down vote up
public void fireEditingCanceled() {
	ChangeEvent e = new ChangeEvent(AttrTable.this);
	for (CellEditorListener l : new ArrayList<CellEditorListener>(listeners)) {
		l.editingCanceled(e);
	}
}
 
Example 16
Source File: MarkdownDocletOptionsForm.java    From markdown-doclet with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void cancelCellEditing() {
    for (CellEditorListener l : listeners) {
        l.editingCanceled(new ChangeEvent(this));
    }
}