comparison dwt/widgets/Dialog.d @ 239:43b41c7fe84a

work on allow null strings and arrays
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Jun 2008 16:27:36 +0200
parents 36f5cb12e1a2
children fd9c62a2998e
comparison
equal deleted inserted replaced
238:efe25e7c8a96 239:43b41c7fe84a
253 * window manager will typically display as the receiver's 253 * window manager will typically display as the receiver's
254 * <em>title</em>, to the argument, which must not be null. 254 * <em>title</em>, to the argument, which must not be null.
255 * 255 *
256 * @param string the new text 256 * @param string the new text
257 * 257 *
258 * @exception IllegalArgumentException <ul>
259 * <li>ERROR_NULL_ARGUMENT - if the text is null</li>
260 * </ul>
261 * @exception DWTException <ul> 258 * @exception DWTException <ul>
262 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 259 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
263 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 260 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
264 * </ul> 261 * </ul>
265 */ 262 */
266 public void setText (String string) { 263 public void setText (String string) {
267 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 264 // DWT extension: allow null string
265 //if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
268 title = string; 266 title = string;
269 } 267 }
270 268
271 } 269 }