Example usage for javax.swing.event EventListenerList EventListenerList

List of usage examples for javax.swing.event EventListenerList EventListenerList

Introduction

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

Prototype

EventListenerList

Source Link

Usage

From source file:com.adito.services.CoreEventServiceImpl.java

/**
 */
public CoreEventServiceImpl() {
    coreListeners = new EventListenerList();
}

From source file:WorkThreadPool.java

/**
 * Creates a new work thread pool with the specified number of work threads.
 * /*from   www. java  2  s  .c  om*/
 * @param name
 *          The thread name prefix
 * @param count
 *          The number of work threads
 */
public WorkThreadPool(String name, int count) {
    listenerList = new EventListenerList();

    if (count != 0) {
        threadGroup = new ThreadGroup(name);
        threads = new WorkThread[count];
        for (int i = 0; i < threads.length; i++) {
            threads[i] = new WorkThread(this, threadGroup, name + " #" + (i + 1));
        }
    }

}

From source file:org.mwc.cmap.grideditor.chart.JFreeChartComposite.java

@Override
public void addChartMouseListener(final ChartMouseListener listener) {
    super.addChartMouseListener(listener);
    if (listener instanceof ChartMouseListenerExtension) {
        if (myListenerExtensions == null) {
            myListenerExtensions = new EventListenerList();
        }// w  ww. j  av  a2  s .  c om
        myListenerExtensions.add(ChartMouseListenerExtension.class, (ChartMouseListenerExtension) listener);
    }
}

From source file:fr.amap.viewer3d.object.camera.TrackballCamera.java

public TrackballCamera() {

    listeners = new EventListenerList();
    viewMatrix = Mat4F.identity();/*w ww.j  a  v a  2  s.  c o m*/
    location = new Vec3F();
    target = new Vec3F();
    up = new Vec3F(0, 0, 1);
    mousePicker = new MousePicker(this);
}

From source file:gsilva.lirc.core.LircIO.java

public void addLircIOListener(LircIOListener l) {
    if (listeners == null)
        listeners = new EventListenerList();
    listeners.add(LircIOListener.class, l);
}

From source file:cl.uai.webcursos.emarking.desktop.QRextractor.java

public QRextractor(Moodle _moodle) {
    this.listenerList = new EventListenerList();
    this.decodedpages = new TreeMap<Integer, Map<Integer, String>>();
    this.errorpages = new TreeMap<Integer, String>();
    this.moodle = _moodle;
}

From source file:com.rapidminer.gui.viewer.metadata.model.AbstractAttributeStatisticsModel.java

/**
 * Inits the/*from w  ww. j  a v  a 2s  .  c om*/
 * 
 * @param exampleSet
 * @param attribute
 */
protected AbstractAttributeStatisticsModel(final ExampleSet exampleSet, final Attribute attribute) {
    this.attribute = attribute;
    this.weakExampleSet = new WeakReference<>(exampleSet);
    this.specialAttName = exampleSet.getAttributes().findRoleByName(attribute.getName()).getSpecialName();
    this.construction = attribute.getConstruction();

    this.eventListener = new EventListenerList();
}

From source file:com.swordlord.gozer.databinding.DataBindingManager.java

public DataBindingManager(DataContainer dc, DataBindingMember dataBindingMember) {
    _listChangedEventHandler = new EventListenerList();

    _dc = dc;// w ww . j  a v a 2  s  .co  m
    _dataViews = new HashMap<String, DataViewBase>();

    updatePath(dataBindingMember);

    this.moveFirst(dataBindingMember);
}

From source file:org.jfree.data.general.AbstractDataset.java

/**
 * Constructs a dataset. By default, the dataset is assigned to its own
 * group./*from   w  ww .j a va2 s  . c om*/
 */
protected AbstractDataset() {
    this.group = new DatasetGroup();
    this.listenerList = new EventListenerList();
    this.notify = true;
}

From source file:org.jfree.data.general.Series.java

/**
 * Creates a new series with the specified key and description.
 *
 * @param key  the series key (<code>null</code> NOT permitted).
 * @param description  the series description (<code>null</code> permitted).
 *//*from  w  ww  .  j a va2  s .c  o  m*/
protected Series(Comparable key, String description) {
    ParamChecks.nullNotPermitted(key, "key");
    this.key = key;
    this.description = description;
    this.listeners = new EventListenerList();
    this.propertyChangeSupport = new PropertyChangeSupport(this);
    this.vetoableChangeSupport = new VetoableChangeSupport(this);
    this.notify = true;
}