comparison dwt/widgets/ToolItem.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 6f75fdfa1bcd
children 36f5cb12e1a2
comparison
equal deleted inserted replaced
211:ff59aeb96cac 212:ab60f3309436
47 * </p> 47 * </p>
48 */ 48 */
49 public class ToolItem : Item { 49 public class ToolItem : Item {
50 ToolBar parent; 50 ToolBar parent;
51 Control control; 51 Control control;
52 char[] toolTipText; 52 String toolTipText;
53 Image disabledImage, hotImage; 53 Image disabledImage, hotImage;
54 Image disabledImage2; 54 Image disabledImage2;
55 int id; 55 int id;
56 56
57 /** 57 /**
358 * @exception DWTException <ul> 358 * @exception DWTException <ul>
359 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 359 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
360 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 360 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
361 * </ul> 361 * </ul>
362 */ 362 */
363 public char[] getToolTipText () { 363 public String getToolTipText () {
364 checkWidget(); 364 checkWidget();
365 return toolTipText; 365 return toolTipText;
366 } 366 }
367 367
368 /** 368 /**
766 * @exception DWTException <ul> 766 * @exception DWTException <ul>
767 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 767 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
768 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 768 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
769 * </ul> 769 * </ul>
770 */ 770 */
771 override public void setText (char[] string) { 771 override public void setText (String string) {
772 checkWidget(); 772 checkWidget();
773 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 773 if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
774 if ((style & DWT.SEPARATOR) !is 0) return; 774 if ((style & DWT.SEPARATOR) !is 0) return;
775 if (string==/*eq*/text) return; 775 if (string==/*eq*/text) return;
776 super.setText (string); 776 super.setText (string);
816 * @exception DWTException <ul> 816 * @exception DWTException <ul>
817 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 817 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
818 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 818 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
819 * </ul> 819 * </ul>
820 */ 820 */
821 public void setToolTipText (char[] string) { 821 public void setToolTipText (String string) {
822 checkWidget(); 822 checkWidget();
823 toolTipText = string; 823 toolTipText = string;
824 } 824 }
825 825
826 /** 826 /**