use of javax.swing.event.EventListenerList in project SIMVA-SoS by SESoS.
the class Marker method readObject.
/**
* Provides serialization support.
*
* @param stream the input stream.
*
* @throws IOException if there is an I/O error.
* @throws ClassNotFoundException if there is a classpath problem.
*/
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
stream.defaultReadObject();
this.paint = SerialUtilities.readPaint(stream);
this.stroke = SerialUtilities.readStroke(stream);
this.outlinePaint = SerialUtilities.readPaint(stream);
this.outlineStroke = SerialUtilities.readStroke(stream);
this.labelPaint = SerialUtilities.readPaint(stream);
this.listenerList = new EventListenerList();
}
use of javax.swing.event.EventListenerList in project SIMVA-SoS by SESoS.
the class AbstractDataset method readObject.
/**
* Restores a serialized object.
*
* @param stream the input stream.
*
* @throws IOException if there is an I/O problem.
* @throws ClassNotFoundException if there is a problem loading a class.
*/
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
stream.defaultReadObject();
this.listenerList = new EventListenerList();
// see comments about priority of
stream.registerValidation(this, 10);
// 10 in validateObject()
}
use of javax.swing.event.EventListenerList in project SIMVA-SoS by SESoS.
the class AbstractDataset method clone.
/**
* Returns a clone of the dataset. The cloned dataset will NOT include the
* {@link DatasetChangeListener} references that have been registered with
* this dataset.
*
* @return A clone.
*
* @throws CloneNotSupportedException if the dataset does not support
* cloning.
*/
@Override
public Object clone() throws CloneNotSupportedException {
AbstractDataset clone = (AbstractDataset) super.clone();
clone.listenerList = new EventListenerList();
return clone;
}
use of javax.swing.event.EventListenerList in project cayenne by apache.
the class ProjectController method reset.
public void reset() {
clearState();
setDirty(false);
setEntityTabSelection(0);
listenerList = new EventListenerList();
controllerStateHistory.clear();
}
use of javax.swing.event.EventListenerList in project SIMVA-SoS by SESoS.
the class AbstractDialLayer method readObject.
/**
* Provides serialization support.
*
* @param stream the input stream.
*
* @throws IOException if there is an I/O error.
* @throws ClassNotFoundException if there is a classpath problem.
*/
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
stream.defaultReadObject();
this.listenerList = new EventListenerList();
}
Aggregations