Example usage for javax.swing.event CellEditorListener editingCanceled

List of usage examples for javax.swing.event CellEditorListener editingCanceled

Introduction

In this page you can find the example usage for javax.swing.event CellEditorListener editingCanceled.

Prototype

public void editingCanceled(ChangeEvent e);

Source Link

Document

This tells the listeners the editor has canceled editing

Usage

From source file:AncestorTree.java

public void cancelCellEditing() {
    ChangeEvent e = new ChangeEvent(this);
    for (int k = 0; k < m_listeners.size(); k++) {
        CellEditorListener l = (CellEditorListener) m_listeners.elementAt(k);
        l.editingCanceled(e);
    }/*  w ww  . j av a2  s .c  o m*/

    removeEditor();
}

From source file:GenderEditor.java

protected void fireEditingCanceled() {
    CellEditorListener listener;
    Object[] listeners = listenerList.getListenerList();
    for (int i = 0; i < listeners.length; i++) {
        if (listeners[i] == CellEditorListener.class) {
            listener = (CellEditorListener) listeners[i + 1];
            listener.editingCanceled(changeEvent);
        }/*  w  ww  . ja  va2 s.  co  m*/
    }
}

From source file:org.pentaho.reporting.libraries.designtime.swing.date.DateCellEditor.java

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);
    }/*from  w  w w. j  a  va  2 s  . com*/
}