1 11 package org.eclipse.swt.internal; 12 13 14 26 public class SWTEventObject implements SerializableCompatibility { 27 28 31 protected transient Object source; 32 33 38 public SWTEventObject(Object source) { 39 if (source != null) this.source = source; 40 else throw new IllegalArgumentException (); 41 } 42 43 48 public Object getSource() { 49 return source; 50 } 51 52 57 public String toString() { 58 return getClass().getName() + "[source=" + String.valueOf(source) + ']'; 59 } 60 61 } 62 | Popular Tags |