comparison base/src/java/util/EventObject.d @ 27:1bf55a6eb092

Renamed java tree to base
author Frank Benoit <benoit@tionex.de>
date Sat, 21 Mar 2009 11:33:57 +0100
parents java/src/java/util/EventObject.d@712ffca654f3
children
comparison
equal deleted inserted replaced
26:f589fc20a5f9 27:1bf55a6eb092
1 module java.util.EventObject;
2
3 import java.lang.all;
4
5 class EventObject {
6 protected Object source;
7
8 public this(Object source) {
9 if (source is null)
10 throw new IllegalArgumentException( "null arg" );
11 this.source = source;
12 }
13
14 public Object getSource() {
15 return source;
16 }
17
18 public override String toString() {
19 return this.classinfo.name ~ "[source=" ~ source.toString() ~ "]";
20 }
21 }
22