Mercurial > projects > dwt-linux
comparison dwt/events/TypedEvent.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | f2e04420fd6c |
children | c0d810de7093 |
comparison
equal
deleted
inserted
replaced
237:98b80b00af79 | 238:380bad9f6852 |
---|---|
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * Port to the D programming language: | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | 11 * Frank Benoit <benoit@tionex.de> |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module dwt.events.TypedEvent; | 13 module dwt.events.TypedEvent; |
14 | |
15 import dwt.dwthelper.utils; | |
14 | 16 |
15 | 17 |
16 import dwt.widgets.Event; | 18 import dwt.widgets.Event; |
17 import dwt.widgets.Display; | 19 import dwt.widgets.Display; |
18 import dwt.widgets.Widget; | 20 import dwt.widgets.Widget; |
85 * Returns the name of the event. This is the name of | 87 * Returns the name of the event. This is the name of |
86 * the class without the module name. | 88 * the class without the module name. |
87 * | 89 * |
88 * @return the name of the event | 90 * @return the name of the event |
89 */ | 91 */ |
90 char[] getName () { | 92 String getName () { |
91 char[] str = this.classinfo.name; | 93 String str = this.classinfo.name; |
92 return split( str, "." )[$-1]; | 94 return split( str, "." )[$-1]; |
93 } | 95 } |
94 | 96 |
95 /** | 97 /** |
96 * Returns a string containing a concise, human-readable | 98 * Returns a string containing a concise, human-readable |
97 * description of the receiver. | 99 * description of the receiver. |
98 * | 100 * |
99 * @return a string representation of the event | 101 * @return a string representation of the event |
100 */ | 102 */ |
101 public override char[] toString() { | 103 public override String toString() { |
102 char[] str_widget = widget is null ? "null" : widget.toString; | 104 String str_widget = widget is null ? "null" : widget.toString; |
103 char[] str_data = data is null ? "null" : data.toString; | 105 String str_data = data is null ? "null" : data.toString; |
104 return Format( "{}{{time={} data={}}", str_widget, time, str_data ); | 106 return Format( "{}{{time={} data={}}", str_widget, time, str_data ); |
105 } | 107 } |
106 } | 108 } |