Mercurial > projects > dwt-mac
comparison dwt/accessibility/AccessibleTextEvent.d @ 36:db5a898b2119
Fixed a lot of compile errors
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 07 Oct 2008 12:56:18 +0200 |
parents | f565d3a95c0a |
children | d8635bb48c7c |
comparison
equal
deleted
inserted
replaced
35:7d135fe0caf2 | 36:db5a898b2119 |
---|---|
11 * Port to the D programming language: | 11 * Port to the D programming language: |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | 12 * Jacob Carlborg <jacob.carlborg@gmail.com> |
13 *******************************************************************************/ | 13 *******************************************************************************/ |
14 module dwt.accessibility.AccessibleTextEvent; | 14 module dwt.accessibility.AccessibleTextEvent; |
15 | 15 |
16 import dwt.internal.DWTEventObject; | |
17 | |
18 import tango.text.convert.Format; | |
19 | |
16 import dwt.dwthelper.utils; | 20 import dwt.dwthelper.utils; |
17 import dwt.internal.DWTEventObject; | |
18 | 21 |
19 /** | 22 /** |
20 * Instances of this class are sent as a result of | 23 * Instances of this class are sent as a result of |
21 * accessibility clients sending messages to controls | 24 * accessibility clients sending messages to controls |
22 * asking for detailed information about the implementation | 25 * asking for detailed information about the implementation |
34 */ | 37 */ |
35 public class AccessibleTextEvent : DWTEventObject { | 38 public class AccessibleTextEvent : DWTEventObject { |
36 public int childID; // IN | 39 public int childID; // IN |
37 public int offset, length; // OUT | 40 public int offset, length; // OUT |
38 | 41 |
39 static final long serialVersionUID = 3977019530868308275L; | 42 static const long serialVersionUID = 3977019530868308275L; |
40 | 43 |
41 /** | 44 /** |
42 * Constructs a new instance of this class. | 45 * Constructs a new instance of this class. |
43 * | 46 * |
44 * @param source the object that fired the event | 47 * @param source the object that fired the event |
52 * description of the receiver. | 55 * description of the receiver. |
53 * | 56 * |
54 * @return a String representation of the event | 57 * @return a String representation of the event |
55 */ | 58 */ |
56 public String toString () { | 59 public String toString () { |
57 return "AccessibleTextEvent {childID=" ~ childID + //$NON-NLS-1$ | 60 return Format("AccessibleTextEvent {childID={}{}{}{}{}{}" , childID , //$NON-NLS-1$ |
58 " offset=" + offset + //$NON-NLS-1$ | 61 " offset=" , offset , //$NON-NLS-1$ |
59 " length=" + length + //$NON-NLS-1$ | 62 " length=" , length , //$NON-NLS-1$ |
60 "}"; //$NON-NLS-1$ | 63 "}"); //$NON-NLS-1$ |
61 } | 64 } |
62 } | 65 } |