comparison dwt/internal/DWTEventObject.d @ 310:d650eede28b3

Fix remaining porting type
author Frank Benoit <benoit@tionex.de>
date Mon, 15 Sep 2008 03:41:14 +0200
parents ab60f3309436
children
comparison
equal deleted inserted replaced
309:8117dc3a8faa 310:d650eede28b3
14 14
15 15
16 //import java.util.EventObject; 16 //import java.util.EventObject;
17 import tango.core.Exception; 17 import tango.core.Exception;
18 import dwt.dwthelper.utils; 18 import dwt.dwthelper.utils;
19
20 /+
21 ///PORTING_TYPE
22 class EventObject : EventObject {
23 protected Object source;
24
25 public this(Object source) {
26 if (source is null)
27 throw new IllegalArgumentException( "null arg" );
28 this.source = source;
29 }
30
31 public Object getSource() {
32 return source;
33 }
34
35 public override String toString() {
36 return this.classinfo.name ~ "[source=" ~ source.toString() ~ "]";
37 }
38 }
39
40 +/
41
42 19
43 /** 20 /**
44 * This class is the cross-platform version of the 21 * This class is the cross-platform version of the
45 * java.util.EventObject class. 22 * java.util.EventObject class.
46 * <p> 23 * <p>