Show
Ignore:
Timestamp:
05/04/08 18:12:38 (7 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted the char[] to String and use the an alias.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/custom/TableTreeItem.d

    r155 r212  
    4343    TableTreeItem parentItem; 
    4444    TableTreeItem [] items; 
    45     char[][] texts; 
     45    String[] texts; 
    4646    Image[] images; 
    4747    Color background; 
     
    489489    return parentItem; 
    490490} 
    491 public override char[] getText () { 
     491public override String getText () { 
    492492    checkWidget(); 
    493493    return getText(0); 
     
    506506 * @return the item text at the specified index, which can be null 
    507507 */ 
    508 public char[] getText(int index) { 
     508public String getText(int index) { 
    509509    //checkWidget(); 
    510510    if (0 <= index && index < texts.length) return texts[index]; 
     
    828828 *  </ul> 
    829829 */ 
    830 public void setText(int index, char[] text) { 
     830public void setText(int index, String text) { 
    831831    checkWidget(); 
    832832    if (text is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); 
     
    834834    if (index < 0 || index >= columnCount) return; 
    835835    if (texts.length < columnCount) { 
    836         char[][] newTexts = new char[][columnCount]; 
     836        String[] newTexts = new String[columnCount]; 
    837837        System.arraycopy(texts, 0, newTexts, 0, texts.length); 
    838838        texts = newTexts; 
     
    841841    if (tableItem !is null) tableItem.setText(index, text); 
    842842} 
    843 public override void setText (char[] string) { 
     843public override void setText (String string) { 
    844844    setText(0, string); 
    845845}