Mercurial > projects > dwt-win
comparison dwt/custom/SashFormData.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 | aee1890f38c3 |
children | 349b8c12e243 |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module dwt.custom.SashFormData; | 13 module dwt.custom.SashFormData; |
14 | 14 |
15 static import tango.text.Util; | 15 static import tango.text.Util; |
16 import tango.util.Convert; | 16 import tango.util.Convert; |
17 import dwt.dwthelper.utils; | |
17 | 18 |
18 class SashFormData { | 19 class SashFormData { |
19 | 20 |
20 long weight; | 21 long weight; |
21 | 22 |
22 char[] getName () { | 23 String getName () { |
23 char[] string = this.classinfo.name; | 24 String string = this.classinfo.name; |
24 int index = tango.text.Util.locatePrior( string ,'.' ); | 25 int index = tango.text.Util.locatePrior( string ,'.' ); |
25 if (index is string.length ) return string; | 26 if (index is string.length ) return string; |
26 return string[ index + 1 .. $ ]; | 27 return string[ index + 1 .. $ ]; |
27 } | 28 } |
28 | 29 |
30 * Returns a string containing a concise, human-readable | 31 * Returns a string containing a concise, human-readable |
31 * description of the receiver. | 32 * description of the receiver. |
32 * | 33 * |
33 * @return a string representation of the event | 34 * @return a string representation of the event |
34 */ | 35 */ |
35 public override char[] toString () { | 36 public override String toString () { |
36 return getName()~" {weight="~to!(char[])(weight)~"}"; //$NON-NLS-2$ | 37 return getName()~" {weight="~to!(String)(weight)~"}"; //$NON-NLS-2$ |
37 } | 38 } |
38 } | 39 } |