comparison dwt/widgets/Item.d @ 255:5a30aa9820f3

removed tango.stdc.stringz imports and allow null for arrays and string arguments.
author Frank Benoit <benoit@tionex.de>
date Sun, 15 Jun 2008 22:32:20 +0200
parents 380bad9f6852
children c0d810de7093
comparison
equal deleted inserted replaced
254:8bca790583c3 255:5a30aa9820f3
170 /** 170 /**
171 * Sets the receiver's text. 171 * Sets the receiver's text.
172 * 172 *
173 * @param string the new text 173 * @param string the new text
174 * 174 *
175 * @exception IllegalArgumentException <ul>
176 * <li>ERROR_NULL_ARGUMENT - if the text is null</li>
177 * </ul>
178 * @exception DWTException <ul> 175 * @exception DWTException <ul>
179 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 176 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
180 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 177 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
181 * </ul> 178 * </ul>
182 */ 179 */
183 public void setText (String string) { 180 public void setText (String string) {
184 checkWidget (); 181 checkWidget ();
185 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 182 // DWT extension: allow null for zero length string
183 //if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
186 text = string.dup; 184 text = string.dup;
187 } 185 }
188 186
189 } 187 }