Search in sources :

Example 11 with PropertyChangeSupport

use of com.revolsys.beans.PropertyChangeSupport in project com.revolsys.open by revolsys.

the class BaseObjectWithPropertiesAndChange method clone.

@Override
protected BaseObjectWithPropertiesAndChange clone() {
    final BaseObjectWithPropertiesAndChange clone = (BaseObjectWithPropertiesAndChange) super.clone();
    clone.propertyChangeSupport = new PropertyChangeSupport(clone);
    return clone;
}
Also used : PropertyChangeSupport(com.revolsys.beans.PropertyChangeSupport)

Example 12 with PropertyChangeSupport

use of com.revolsys.beans.PropertyChangeSupport 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)12 PropertyChangeSupportProxy (com.revolsys.beans.PropertyChangeSupportProxy)5 ProxyPropertyChangeListener (com.revolsys.beans.ProxyPropertyChangeListener)5 WeakPropertyChangeListener (com.revolsys.beans.WeakPropertyChangeListener)5 PropertyChangeListener (java.beans.PropertyChangeListener)5 JComponent (javax.swing.JComponent)5 Component (java.awt.Component)3 PropertyChangeListenerProxy (java.beans.PropertyChangeListenerProxy)3 BeanPropertyListener (com.revolsys.swing.listener.BeanPropertyListener)1 ProjectFrame (com.revolsys.swing.map.ProjectFrame)1 ThreadBooleanValue (com.revolsys.value.ThreadBooleanValue)1 Path (java.nio.file.Path)1