Mercurial > projects > dwt-win
comparison dwt/events/SelectionEvent.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 | bef1ed4ebc50 |
children | fd9c62a2998e |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
16 import dwt.widgets.Event; | 16 import dwt.widgets.Event; |
17 import dwt.widgets.Widget; | 17 import dwt.widgets.Widget; |
18 import dwt.events.TypedEvent; | 18 import dwt.events.TypedEvent; |
19 | 19 |
20 import tango.text.convert.Format; | 20 import tango.text.convert.Format; |
21 import dwt.dwthelper.utils; | |
22 | |
21 /** | 23 /** |
22 * Instances of this class are sent as a result of | 24 * Instances of this class are sent as a result of |
23 * widgets being selected. | 25 * widgets being selected. |
24 * <p> | 26 * <p> |
25 * Note: The fields that are filled in depend on the widget. | 27 * Note: The fields that are filled in depend on the widget. |
90 * if one was specified. | 92 * if one was specified. |
91 * | 93 * |
92 * @see dwt.widgets.Link#setText(String) | 94 * @see dwt.widgets.Link#setText(String) |
93 * @since 3.1 | 95 * @since 3.1 |
94 */ | 96 */ |
95 public char[] text; | 97 public String text; |
96 | 98 |
97 /** | 99 /** |
98 * A flag indicating whether the operation should be allowed. | 100 * A flag indicating whether the operation should be allowed. |
99 * Setting this field to <code>false</code> will cancel the | 101 * Setting this field to <code>false</code> will cancel the |
100 * operation, depending on the widget. | 102 * operation, depending on the widget. |
126 * Returns a string containing a concise, human-readable | 128 * Returns a string containing a concise, human-readable |
127 * description of the receiver. | 129 * description of the receiver. |
128 * | 130 * |
129 * @return a string representation of the event | 131 * @return a string representation of the event |
130 */ | 132 */ |
131 public override char[] toString() { | 133 public override String toString() { |
132 return Format( "{} item={} detail={} x={} y={} width={} height={} stateMask={} text={} doit={}}", | 134 return Format( "{} item={} detail={} x={} y={} width={} height={} stateMask={} text={} doit={}}", |
133 super.toString[ 0 .. $-2 ], | 135 super.toString[ 0 .. $-2 ], |
134 item, | 136 item, |
135 detail, | 137 detail, |
136 x, | 138 x, |