Mercurial > projects > dwt-win
comparison dwt/widgets/Event.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | f2b62ad9777b |
children | 36f5cb12e1a2 |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
17 | 17 |
18 import dwt.widgets.Widget; | 18 import dwt.widgets.Widget; |
19 import dwt.widgets.Display; | 19 import dwt.widgets.Display; |
20 | 20 |
21 import tango.text.convert.Format; | 21 import tango.text.convert.Format; |
22 import dwt.dwthelper.utils; | |
22 | 23 |
23 | 24 |
24 /** | 25 /** |
25 * Instances of this class provide a description of a particular | 26 * Instances of this class provide a description of a particular |
26 * event which occurred within DWT. The DWT <em>untyped listener</em> | 27 * event which occurred within DWT. The DWT <em>untyped listener</em> |
178 /** | 179 /** |
179 * depending on the event, the new text that will be inserted. | 180 * depending on the event, the new text that will be inserted. |
180 * Setting this field will change the text that is about to | 181 * Setting this field will change the text that is about to |
181 * be inserted or deleted. | 182 * be inserted or deleted. |
182 */ | 183 */ |
183 public char[] text; | 184 public String text; |
184 | 185 |
185 /** | 186 /** |
186 * depending on the event, a flag indicating whether the operation | 187 * depending on the event, a flag indicating whether the operation |
187 * should be allowed. Setting this field to false will cancel the | 188 * should be allowed. Setting this field to false will cancel the |
188 * operation. | 189 * operation. |
219 * Returns a string containing a concise, human-readable | 220 * Returns a string containing a concise, human-readable |
220 * description of the receiver. | 221 * description of the receiver. |
221 * | 222 * |
222 * @return a string representation of the event | 223 * @return a string representation of the event |
223 */ | 224 */ |
224 override public char[] toString () { | 225 override public String toString () { |
225 return Format( "Event {{type={} {} time={} data={} x={} y={} width={} height={} detail={}}", | 226 return Format( "Event {{type={} {} time={} data={} x={} y={} width={} height={} detail={}}", |
226 type, widget, time, data, x, y, width, height, detail ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ | 227 type, widget, time, data, x, y, width, height, detail ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$ |
227 } | 228 } |
228 } | 229 } |