diff dwt/custom/TableTreeItem.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 a5afe31f5cdd
children 36f5cb12e1a2
line wrap: on
line diff
--- a/dwt/custom/TableTreeItem.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/custom/TableTreeItem.d	Mon May 05 00:12:38 2008 +0200
@@ -42,7 +42,7 @@
     TableTree parent;
     TableTreeItem parentItem;
     TableTreeItem [] items;
-    char[][] texts;
+    String[] texts;
     Image[] images;
     Color background;
     Color foreground;
@@ -488,7 +488,7 @@
     //checkWidget();
     return parentItem;
 }
-public override char[] getText () {
+public override String getText () {
     checkWidget();
     return getText(0);
 }
@@ -505,7 +505,7 @@
  * @param index the index of the item
  * @return the item text at the specified index, which can be null
  */
-public char[] getText(int index) {
+public String getText(int index) {
     //checkWidget();
     if (0 <= index && index < texts.length) return texts[index];
     return null;
@@ -827,20 +827,20 @@
  *      <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
  *  </ul>
  */
-public void setText(int index, char[] text) {
+public void setText(int index, String text) {
     checkWidget();
     if (text is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
     int columnCount = Math.max(parent.getTable().getColumnCount(), 1);
     if (index < 0 || index >= columnCount) return;
     if (texts.length < columnCount) {
-        char[][] newTexts = new char[][columnCount];
+        String[] newTexts = new String[columnCount];
         System.arraycopy(texts, 0, newTexts, 0, texts.length);
         texts = newTexts;
     }
     texts[index] = text;
     if (tableItem !is null) tableItem.setText(index, text);
 }
-public override void setText (char[] string) {
+public override void setText (String string) {
     setText(0, string);
 }