Code example for PropertyChangeEvent

Methods: getNewValuegetOldValuegetPropertyNamegetSource

0
    public EntityObjectChangeSetDeltaPropertyChangeListener(EntityObjectEventSupport entityObjectEventSupport) {
        this.entityObjectEventSupport = entityObjectEventSupport;
    } 
 
    public void propertyChange(PropertyChangeEvent evt) {
        EntityObject source = (EntityObject) evt.getSource();
        Field field = source.getEntityDescriptor().getField(evt.getPropertyName());
        ChangeSetDelta<EntityObject> delta = new EntityObjectChangeSetDeltaImpl(source, field, evt.getOldValue(), evt.getNewValue());
        entityObjectEventSupport.fireEntityObjectChange(delta);
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE