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

The following examples show how to use javax.swing.event.CellEditorListener#editingStopped() . 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: TimeCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 2
Source File: MarkdownDocletOptionsForm.java    From markdown-doclet with GNU General Public License v3.0 5 votes vote down vote up
@Override
public boolean stopCellEditing() {
    for (CellEditorListener l : listeners) {
        l.editingStopped(new ChangeEvent(this));
    }
    return true;
}
 
Example 3
Source File: ThreeStateCheckBoxRenderer.java    From consulo with Apache License 2.0 5 votes vote down vote up
@Override
public boolean stopCellEditing() {
  final ChangeEvent e = new ChangeEvent(this);
  for (final CellEditorListener listener : new ArrayList<CellEditorListener>(myListeners)) {
    listener.editingStopped(e);
  }
  return true;
}
 
Example 4
Source File: GroupDataEntryCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 5
Source File: AbstractStringValueCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 6
Source File: ArrayCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 7
Source File: ReportPreProcessorCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 8
Source File: StructureFunctionCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 9
Source File: TypedHeaderCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 10
Source File: ArrayCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 11
Source File: WatchesColumnModels.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private void fireEditingStopped() {
    synchronized(listeners) {
        List<CellEditorListener> list = new ArrayList<CellEditorListener>(listeners);
        for (CellEditorListener listener : list) {
            listener.editingStopped(new ChangeEvent(this));
        }
    }
}
 
Example 12
Source File: DateCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 13
Source File: PropertyCellEditorWithEllipsis.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 14
Source File: TagListTableCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 15
Source File: FormulaFragmentCellEditor.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void fireEditingStopped() {
  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.editingStopped( event );
  }
}
 
Example 16
Source File: ColumnModels.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
protected void processKeyEvent(KeyEvent e) {
    KeyStroke ks = KeyStroke.getKeyStrokeForEvent(e);
    if (enter.equals(ks)) {
        // Prevent JComponent.processKeyBindings() to be called (it is called from
        // JComponent.processKeyEvent() ), notify only registered key listeners
        int id = e.getID();
        for (KeyListener keyListener : getKeyListeners()) {
            switch(id) {
              case KeyEvent.KEY_TYPED:
                  keyListener.keyTyped(e);
                  break;
              case KeyEvent.KEY_PRESSED:
                  keyListener.keyPressed(e);
                  break;
              case KeyEvent.KEY_RELEASED:
                  keyListener.keyReleased(e);
                  break;
            }
        }
        if (!e.isConsumed() && id == KeyEvent.KEY_PRESSED) {
            synchronized(listeners) {
                List<CellEditorListener> list = new ArrayList<CellEditorListener>(listeners);
                for (CellEditorListener listener : list) {
                    listener.editingStopped(new ChangeEvent(this));
                }
            }
        }
        e.consume();
    } else {
        super.processKeyEvent(e);
    }
}
 
Example 17
Source File: ColumnModels.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private void fireEditingStopped() {
    synchronized(listeners) {
        List<CellEditorListener> list = new ArrayList<CellEditorListener>(listeners);
        for (CellEditorListener listener : list) {
            listener.editingStopped(new ChangeEvent(this));
        }
    }
}
 
Example 18
Source File: ComponentsSelectionPanel.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private void fireEditingStopped() {
    final CellEditorListener[] clone;
    synchronized (listeners) {
        clone = listeners.toArray(new CellEditorListener[0]);
    }
    
    final ChangeEvent event = new ChangeEvent(this);
    for (CellEditorListener listener: clone) {
        listener.editingStopped(event);
    }
}
 
Example 19
Source File: WatchesColumnModels.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
protected void processKeyEvent(KeyEvent e) {
    KeyStroke ks = KeyStroke.getKeyStrokeForEvent(e);
    if (enter.equals(ks)) {
        // Prevent JComponent.processKeyBindings() to be called (it is called from
        // JComponent.processKeyEvent() ), notify only registered key listeners
        int id = e.getID();
        for (KeyListener keyListener : getKeyListeners()) {
            switch(id) {
              case KeyEvent.KEY_TYPED:
                  keyListener.keyTyped(e);
                  break;
              case KeyEvent.KEY_PRESSED:
                  keyListener.keyPressed(e);
                  break;
              case KeyEvent.KEY_RELEASED:
                  keyListener.keyReleased(e);
                  break;
            }
        }
        if (!e.isConsumed() && id == KeyEvent.KEY_PRESSED) {
            synchronized(listeners) {
                List<CellEditorListener> list = new ArrayList<CellEditorListener>(listeners);
                for (CellEditorListener listener : list) {
                    listener.editingStopped(new ChangeEvent(this));
                }
            }
        }
        e.consume();
    } else {
        super.processKeyEvent(e);
    }
}
 
Example 20
Source File: AttrTable.java    From Logisim with GNU General Public License v3.0 4 votes vote down vote up
public void fireEditingStopped() {
	ChangeEvent e = new ChangeEvent(AttrTable.this);
	for (CellEditorListener l : new ArrayList<CellEditorListener>(listeners)) {
		l.editingStopped(e);
	}
}