Changeset 212:ab60f3309436 for dwt/custom/TableTreeItem.d
- Timestamp:
- 05/04/08 18:12:38 (7 months ago)
- Files:
-
- dwt/custom/TableTreeItem.d (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/custom/TableTreeItem.d
r155 r212 43 43 TableTreeItem parentItem; 44 44 TableTreeItem [] items; 45 char[][] texts;45 String[] texts; 46 46 Image[] images; 47 47 Color background; … … 489 489 return parentItem; 490 490 } 491 public override char[]getText () {491 public override String getText () { 492 492 checkWidget(); 493 493 return getText(0); … … 506 506 * @return the item text at the specified index, which can be null 507 507 */ 508 public char[]getText(int index) {508 public String getText(int index) { 509 509 //checkWidget(); 510 510 if (0 <= index && index < texts.length) return texts[index]; … … 828 828 * </ul> 829 829 */ 830 public void setText(int index, char[]text) {830 public void setText(int index, String text) { 831 831 checkWidget(); 832 832 if (text is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); … … 834 834 if (index < 0 || index >= columnCount) return; 835 835 if (texts.length < columnCount) { 836 char[][] newTexts = new char[][columnCount];836 String[] newTexts = new String[columnCount]; 837 837 System.arraycopy(texts, 0, newTexts, 0, texts.length); 838 838 texts = newTexts; … … 841 841 if (tableItem !is null) tableItem.setText(index, text); 842 842 } 843 public override void setText ( char[]string) {843 public override void setText (String string) { 844 844 setText(0, string); 845 845 }
