Mercurial > projects > dwt-win
comparison dwt/custom/TableTreeItem.d @ 315:349b8c12e243
Sync dwt/custom with dwt-linux
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 07 Oct 2008 16:18:26 +0200 |
parents | fd9c62a2998e |
children |
comparison
equal
deleted
inserted
replaced
314:0e2b4fed7a0f | 315:349b8c12e243 |
---|---|
824 * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li> | 824 * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li> |
825 * </ul> | 825 * </ul> |
826 */ | 826 */ |
827 public void setText(int index, String text) { | 827 public void setText(int index, String text) { |
828 checkWidget(); | 828 checkWidget(); |
829 // DWT extension: allow null string | 829 // DWT extension: allow null for zero length string |
830 //if (text is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); | 830 //if (text is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); |
831 int columnCount = Math.max(parent.getTable().getColumnCount(), 1); | 831 int columnCount = Math.max(parent.getTable().getColumnCount(), 1); |
832 if (index < 0 || index >= columnCount) return; | 832 if (index < 0 || index >= columnCount) return; |
833 if (texts.length < columnCount) { | 833 if (texts.length < columnCount) { |
834 String[] newTexts = new String[columnCount]; | 834 String[] newTexts = new String[columnCount]; |