Changeset 212:ab60f3309436 for dwt/events/TypedEvent.d
- Timestamp:
- 05/04/08 18:12:38 (8 months ago)
- Files:
-
- dwt/events/TypedEvent.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/events/TypedEvent.d
r86 r212 21 21 import tango.text.convert.Format; 22 22 import tango.text.Util : split; 23 import dwt.dwthelper.utils; 23 24 24 25 /** … … 88 89 * @return the name of the event 89 90 */ 90 char[]getName () {91 char[]str = this.classinfo.name;91 String getName () { 92 String str = this.classinfo.name; 92 93 return split( str, "." )[$-1]; 93 94 } … … 99 100 * @return a string representation of the event 100 101 */ 101 public override char[]toString() {102 char[]str_widget = widget is null ? "null" : widget.toString;103 char[]str_data = data is null ? "null" : data.toString;102 public override String toString() { 103 String str_widget = widget is null ? "null" : widget.toString; 104 String str_data = data is null ? "null" : data.toString; 104 105 return Format( "{}{{time={} data={}}", str_widget, time, str_data ); 105 106 }
