Example usage for javax.swing.event ChangeListener stateChanged

List of usage examples for javax.swing.event ChangeListener stateChanged

Introduction

In this page you can find the example usage for javax.swing.event ChangeListener stateChanged.

Prototype

void stateChanged(ChangeEvent e);

Source Link

Document

Invoked when the target of the listener has changed its state.

Usage

From source file:org.nuclos.client.ui.collect.Chart.java

/**
 * fires a <code>ChangeEvent</code> whenever the model of this <code>Chart</code> changes.
 *//*from   w ww.j a  va  2 s  .c om*/
public synchronized void fireStateChanged() {
    if (layer == null || (layer != null && !((LockableUI) layer.getUI()).isLocked())) {
        final ChangeEvent ev = new ChangeEvent(this);
        for (ChangeListener changelistener : lstchangelistener) {
            changelistener.stateChanged(ev);
        }
    }
}

From source file:org.nuclos.client.relation.EntityRelationshipModelEditPanel.java

public void fireChangeListenEvent() {
    for (ChangeListener cl : lstChangeListener) {
        cl.stateChanged(new ChangeEvent(this));
    }//from  ww w  .j a  v  a2s .c  o m
}

From source file:org.nuclos.client.ui.collect.model.SortableCollectableTableModelImpl.java

private synchronized void fireSortingChanged() {
    final ChangeEvent ev = new ChangeEvent(this);
    for (ChangeListener listener : lstSortingListeners) {
        listener.stateChanged(ev);
    }/* ww w  . ja v  a 2  s. c o  m*/
}

From source file:org.nuclos.client.ui.collect.SubForm.java

/**
 * fires a <code>ChangeEvent</code> whenever the model of this <code>SubForm</code> changes.
 */// w w  w.j a  v  a  2  s .  c om
public synchronized void fireStateChanged() {
    if (layer == null || (layer != null && !((LockableUI) layer.getUI()).isLocked())) {
        final ChangeEvent ev = new ChangeEvent(this);
        if (!isDetailsChangedIgnored()) {
            for (ChangeListener changelistener : lstchangelistener) {
                changelistener.stateChanged(ev);
            }
        }
    }
}

From source file:org.nuclos.client.ui.collect.SubForm.java

/**
 * fires a <code>ChangeEvent</code> whenever the model of this <code>SubForm</code> changes.
 *//*www . java  2  s . c  o m*/
private synchronized void fireParameterChanged() {
    if (layer == null || (layer != null && !((LockableUI) layer.getUI()).isLocked())) {
        final ChangeEvent ev = new ChangeEvent(this);
        for (ChangeListener changelistener : parameterListener) {
            changelistener.stateChanged(ev);
        }
    }
}

From source file:org.nuclos.client.ui.resplan.header.JHeaderGrid.java

protected void fireStateChanged() {
    ChangeEvent changeEvent = null;
    for (ChangeListener listener : listenerList.getListeners(ChangeListener.class)) {
        if (changeEvent == null) {
            changeEvent = new ChangeEvent(this);
        }/* ww w. j a  v a  2 s.  c o m*/
        listener.stateChanged(changeEvent);
    }
}

From source file:org.pentaho.reporting.designer.core.util.dnd.ClipboardManager.java

private void fireContentsChanged() {
    final ChangeListener[] changeListeners = listeners.getListeners(ChangeListener.class);
    final ChangeEvent event = new ChangeEvent(this);

    for (int i = 0; i < changeListeners.length; i++) {
        final ChangeListener changeListener = changeListeners[i];
        changeListener.stateChanged(event);
    }//from  w  w  w  . j ava2 s  . co  m
}

From source file:org.pentaho.reporting.designer.core.util.undo.UndoManager.java

private void fireChangeEvent() {
    final ChangeListener[] changeListeners = undoListeners.getListeners(ChangeListener.class);
    final ChangeEvent event = new ChangeEvent(this);
    for (int i = 0; i < changeListeners.length; i++) {
        final ChangeListener listener = changeListeners[i];
        listener.stateChanged(event);
    }/* w  w w  .  j  a v a 2  s.  c  om*/
}

From source file:pl.edu.icm.visnow.lib.basic.viewers.Viewer2D.Display2DPanel.java

/**
 * Notifies all registered listeners about the event.
 *
 * @param object Parameter #1 of the <CODE>ChangeEvent<CODE> constructor.
 *///  w  ww  .  jav a  2  s  . c  o  m
private void fireStateChanged() {
    ChangeEvent e = new ChangeEvent(this);
    for (ChangeListener listener : changeListenerList) {
        listener.stateChanged(e);
    }
}