Example usage for javax.swing.event CellEditorListener editingStopped

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

Introduction

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

Prototype

public void editingStopped(ChangeEvent e);

Source Link

Document

This tells the listeners the editor has ended editing

Usage

From source file:AncestorTree.java

public boolean stopCellEditing() {
    if (m_item != null)
        m_item.m_data = m_editor.getText();

    ChangeEvent e = new ChangeEvent(this);
    for (int k = 0; k < m_listeners.size(); k++) {
        CellEditorListener l = (CellEditorListener) m_listeners.elementAt(k);
        l.editingStopped(e);
    }/*from  w w  w .j a v a  2 s  . c om*/

    removeEditor();
    return true;
}

From source file:GenderEditor.java

protected void fireEditingStopped() {
    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.editingStopped(changeEvent);
        }/*from   w w w  .  j  a v a 2s  .  c om*/
    }
}

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

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);
    }/*from   www .j  a  v a 2 s. c o m*/
}