1 7 8 package java.util; 9 10 20 21 public class EventObject implements java.io.Serializable { 22 23 private static final long serialVersionUID = 5516075349620653480L; 24 25 28 protected transient Object source; 29 30 36 public EventObject(Object source) { 37 if (source == null) 38 throw new IllegalArgumentException ("null source"); 39 40 this.source = source; 41 } 42 43 48 public Object getSource() { 49 return source; 50 } 51 52 57 public String toString() { 58 return getClass().getName() + "[source=" + source + "]"; 59 } 60 } 61 | Popular Tags |