comparison dwt/widgets/TreeColumn.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 43c42c637c9c
children 36f5cb12e1a2
comparison
equal deleted inserted replaced
211:ff59aeb96cac 212:ab60f3309436
49 * @since 3.1 49 * @since 3.1
50 */ 50 */
51 public class TreeColumn : Item { 51 public class TreeColumn : Item {
52 Tree parent; 52 Tree parent;
53 bool resizable, moveable; 53 bool resizable, moveable;
54 char[] toolTipText; 54 String toolTipText;
55 int id; 55 int id;
56 56
57 /** 57 /**
58 * Constructs a new instance of this class given its parent 58 * Constructs a new instance of this class given its parent
59 * (which must be a <code>Tree</code>) and a style value 59 * (which must be a <code>Tree</code>) and a style value
249 public bool getMoveable () { 249 public bool getMoveable () {
250 checkWidget (); 250 checkWidget ();
251 return moveable; 251 return moveable;
252 } 252 }
253 253
254 override char[] getNameText () { 254 override String getNameText () {
255 return getText (); 255 return getText ();
256 } 256 }
257 257
258 /** 258 /**
259 * Returns the receiver's parent, which must be a <code>Tree</code>. 259 * Returns the receiver's parent, which must be a <code>Tree</code>.
298 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 298 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
299 * </ul> 299 * </ul>
300 * 300 *
301 * @since 3.2 301 * @since 3.2
302 */ 302 */
303 public char[] getToolTipText () { 303 public String getToolTipText () {
304 checkWidget(); 304 checkWidget();
305 return toolTipText; 305 return toolTipText;
306 } 306 }
307 307
308 /** 308 /**
663 default: 663 default:
664 } 664 }
665 } 665 }
666 } 666 }
667 667
668 override public void setText (char[] string) { 668 override public void setText (String string) {
669 checkWidget (); 669 checkWidget ();
670 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 670 if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
671 if (string==/*eq*/text) return; 671 if (string==/*eq*/text) return;
672 int index = parent.indexOf (this); 672 int index = parent.indexOf (this);
673 if (index is -1) return; 673 if (index is -1) return;
706 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 706 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
707 * </ul> 707 * </ul>
708 * 708 *
709 * @since 3.2 709 * @since 3.2
710 */ 710 */
711 public void setToolTipText (char[] string) { 711 public void setToolTipText (String string) {
712 checkWidget(); 712 checkWidget();
713 toolTipText = string; 713 toolTipText = string;
714 auto hwndHeaderToolTip = parent.headerToolTipHandle; 714 auto hwndHeaderToolTip = parent.headerToolTipHandle;
715 if (hwndHeaderToolTip is null) { 715 if (hwndHeaderToolTip is null) {
716 parent.createHeaderToolTips (); 716 parent.createHeaderToolTips ();