comparison dwt/widgets/Decorations.d @ 238:380bad9f6852

reverted char[] to String
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:42:55 +0200
parents 08789b28bdf3
children 5a30aa9820f3
comparison
equal deleted inserted replaced
237:98b80b00af79 238:380bad9f6852
107 */ 107 */
108 public class Decorations : Canvas { 108 public class Decorations : Canvas {
109 109
110 alias Canvas.sort sort; 110 alias Canvas.sort sort;
111 111
112 char[] text; 112 String text;
113 Image image; 113 Image image;
114 Image [] images; 114 Image [] images;
115 bool minimized, maximized; 115 bool minimized, maximized;
116 Menu menuBar; 116 Menu menuBar;
117 Menu [] menus; 117 Menu [] menus;
424 public bool getMinimized () { 424 public bool getMinimized () {
425 checkWidget(); 425 checkWidget();
426 return minimized; 426 return minimized;
427 } 427 }
428 428
429 override char[] getNameText () { 429 override String getNameText () {
430 return getText (); 430 return getText ();
431 } 431 }
432 432
433 /** 433 /**
434 * Returns the receiver's text, which is the string that the 434 * Returns the receiver's text, which is the string that the
441 * @exception DWTException <ul> 441 * @exception DWTException <ul>
442 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 442 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
443 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 443 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
444 * </ul> 444 * </ul>
445 */ 445 */
446 public char[] getText () { 446 public String getText () {
447 checkWidget(); 447 checkWidget();
448 return text; 448 return text;
449 } 449 }
450 450
451 override public bool isReparentable () { 451 override public bool isReparentable () {
715 * @exception DWTException <ul> 715 * @exception DWTException <ul>
716 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 716 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
717 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 717 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
718 * </ul> 718 * </ul>
719 */ 719 */
720 public void setText (char[] string) { 720 public void setText (String string) {
721 checkWidget(); 721 checkWidget();
722 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 722 if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
723 text = string; 723 text = string;
724 } 724 }
725 725