Search in sources :

Example 1 with BeanPropertyListener

use of com.revolsys.swing.listener.BeanPropertyListener in project com.revolsys.open by revolsys.

the class AbstractLayer method clone.

@Override
public AbstractLayer clone() {
    final AbstractLayer clone = (AbstractLayer) super.clone();
    clone.beanPropertyListener = new BeanPropertyListener(clone);
    clone.eventsEnabled = new ThreadBooleanValue(true);
    clone.id = this.id = ID_GEN.incrementAndGet();
    clone.initialized = false;
    clone.layerGroup = null;
    clone.propertyChangeSupport = new PropertyChangeSupport(clone);
    if (clone.renderer != null) {
        clone.renderer = clone.renderer.clone();
    }
    clone.sync = new Object();
    return clone;
}
Also used : PropertyChangeSupport(com.revolsys.beans.PropertyChangeSupport) BeanPropertyListener(com.revolsys.swing.listener.BeanPropertyListener) ThreadBooleanValue(com.revolsys.value.ThreadBooleanValue)

Aggregations

PropertyChangeSupport (com.revolsys.beans.PropertyChangeSupport)1 BeanPropertyListener (com.revolsys.swing.listener.BeanPropertyListener)1 ThreadBooleanValue (com.revolsys.value.ThreadBooleanValue)1