comparison dwt/widgets/TableColumn.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 3afcd4ddcf90
children 36f5cb12e1a2
comparison
equal deleted inserted replaced
211:ff59aeb96cac 212:ab60f3309436
46 * </p> 46 * </p>
47 */ 47 */
48 public class TableColumn : Item { 48 public class TableColumn : Item {
49 Table parent; 49 Table parent;
50 bool resizable, moveable; 50 bool resizable, moveable;
51 char[] toolTipText; 51 String toolTipText;
52 int id; 52 int id;
53 53
54 /** 54 /**
55 * Constructs a new instance of this class given its parent 55 * Constructs a new instance of this class given its parent
56 * (which must be a <code>Table</code>) and a style value 56 * (which must be a <code>Table</code>) and a style value
221 if ((style & DWT.CENTER) !is 0) return DWT.CENTER; 221 if ((style & DWT.CENTER) !is 0) return DWT.CENTER;
222 if ((style & DWT.RIGHT) !is 0) return DWT.RIGHT; 222 if ((style & DWT.RIGHT) !is 0) return DWT.RIGHT;
223 return DWT.LEFT; 223 return DWT.LEFT;
224 } 224 }
225 225
226 override char[] getNameText () { 226 override String getNameText () {
227 return getText (); 227 return getText ();
228 } 228 }
229 229
230 /** 230 /**
231 * Returns the receiver's parent, which must be a <code>Table</code>. 231 * Returns the receiver's parent, which must be a <code>Table</code>.
295 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 295 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
296 * </ul> 296 * </ul>
297 * 297 *
298 * @since 3.2 298 * @since 3.2
299 */ 299 */
300 public char[] getToolTipText () { 300 public String getToolTipText () {
301 checkWidget(); 301 checkWidget();
302 return toolTipText; 302 return toolTipText;
303 } 303 }
304 304
305 /** 305 /**
769 default: 769 default:
770 } 770 }
771 } 771 }
772 } 772 }
773 773
774 override public void setText (char[] string) { 774 override public void setText (String string) {
775 checkWidget (); 775 checkWidget ();
776 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 776 if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
777 if (string==/*eq*/text) return; 777 if (string==/*eq*/text) return;
778 int index = parent.indexOf (this); 778 int index = parent.indexOf (this);
779 if (index is -1) return; 779 if (index is -1) return;
822 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 822 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
823 * </ul> 823 * </ul>
824 * 824 *
825 * @since 3.2 825 * @since 3.2
826 */ 826 */
827 public void setToolTipText (char[] string) { 827 public void setToolTipText (String string) {
828 checkWidget(); 828 checkWidget();
829 toolTipText = string; 829 toolTipText = string;
830 auto hwndHeaderToolTip = parent.headerToolTipHandle; 830 auto hwndHeaderToolTip = parent.headerToolTipHandle;
831 if (hwndHeaderToolTip is null) { 831 if (hwndHeaderToolTip is null) {
832 parent.createHeaderToolTips (); 832 parent.createHeaderToolTips ();