Mercurial > projects > dwt-win
diff dwt/widgets/Item.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 | 0f25be5cbe6f |
children | b4846fd3437a |
line wrap: on
line diff
--- a/dwt/widgets/Item.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/widgets/Item.d Mon May 05 00:12:38 2008 +0200 @@ -16,6 +16,7 @@ import dwt.widgets.Widget; import dwt.DWT; import dwt.graphics.Image; +import dwt.dwthelper.utils; /** * This class is the abstract superclass of all non-windowed @@ -30,7 +31,7 @@ */ public abstract class Item : Widget { - char[] text; + String text; Image image; /** @@ -119,7 +120,7 @@ return image; } -override char[] getNameText () { +override String getNameText () { return getText (); } @@ -134,7 +135,7 @@ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ -public char[] getText () { +public String getText () { checkWidget(); return text; } @@ -178,7 +179,7 @@ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ -public void setText (char[] string) { +public void setText (String string) { checkWidget (); if (string is null) error (DWT.ERROR_NULL_ARGUMENT); text = string;