Mercurial > projects > dwt-win
comparison dwt/widgets/Item.d @ 241:b4846fd3437a
work on allow null strings and arrays
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 23 Jun 2008 01:45:58 +0200 |
parents | ab60f3309436 |
children | fd9c62a2998e |
comparison
equal
deleted
inserted
replaced
240:c84e3d3feb3f | 241:b4846fd3437a |
---|---|
169 /** | 169 /** |
170 * Sets the receiver's text. | 170 * Sets the receiver's text. |
171 * | 171 * |
172 * @param string the new text | 172 * @param string the new text |
173 * | 173 * |
174 * @exception IllegalArgumentException <ul> | |
175 * <li>ERROR_NULL_ARGUMENT - if the text is null</li> | |
176 * </ul> | |
177 * @exception DWTException <ul> | 174 * @exception DWTException <ul> |
178 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> | 175 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
179 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> | 176 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> |
180 * </ul> | 177 * </ul> |
181 */ | 178 */ |
182 public void setText (String string) { | 179 public void setText (String string) { |
183 checkWidget (); | 180 checkWidget (); |
184 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); | 181 // DWT extension: allow null string |
182 //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); | |
185 text = string; | 183 text = string; |
186 } | 184 } |
187 | 185 |
188 } | 186 } |