Mercurial > projects > dwt2
view base/src/java/beans/PropertyChangeEvent.d @ 112:9f4c18c268b2
Update to compile and execute with dmd 2.052.
author | kntroh |
---|---|
date | Wed, 16 Mar 2011 21:53:53 +0900 |
parents | 1bf55a6eb092 |
children |
line wrap: on
line source
module java.beans.PropertyChangeEvent; import java.lang.all; import java.util.EventObject; class PropertyChangeEvent : EventObject { private String propertyName; private Object oldValue; private Object newValue; private Object propagationId; this( Object source, String propertyName, Object oldValue, Object newValue) { super( source ); this.propertyName = propertyName; this.oldValue = oldValue; this.newValue = newValue; } Object getNewValue(){ return newValue; } Object getOldValue(){ return oldValue; } Object getPropagationId(){ return propagationId; } String getPropertyName(){ return propertyName; } void setPropagationId(Object propagationId){ this.propagationId = propagationId; } public override String toString() { return this.classinfo.name ~ "[source=" ~ source.toString() ~ "]"; } }