comparison dwt/widgets/Dialog.d @ 238:380bad9f6852

reverted char[] to String
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:42:55 +0200
parents 45921f44a4b2
children ce446666f5a2
comparison
equal deleted inserted replaced
237:98b80b00af79 238:380bad9f6852
9 * IBM Corporation - initial API and implementation 9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language: 10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de> 11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/ 12 *******************************************************************************/
13 module dwt.widgets.Dialog; 13 module dwt.widgets.Dialog;
14
15 import dwt.dwthelper.utils;
14 16
15 17
16 import dwt.DWT; 18 import dwt.DWT;
17 import dwt.DWTException; 19 import dwt.DWTException;
18 import dwt.widgets.Shell; 20 import dwt.widgets.Shell;
79 */ 81 */
80 82
81 public abstract class Dialog { 83 public abstract class Dialog {
82 int style; 84 int style;
83 Shell parent; 85 Shell parent;
84 char[] title; 86 String title;
85 87
86 /** 88 /**
87 * Constructs a new instance of this class given only its 89 * Constructs a new instance of this class given only its
88 * parent. 90 * parent.
89 * 91 *
226 * @exception DWTException <ul> 228 * @exception DWTException <ul>
227 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 229 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
228 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 230 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
229 * </ul> 231 * </ul>
230 */ 232 */
231 public char[] getText () { 233 public String getText () {
232 return title; 234 return title;
233 } 235 }
234 236
235 /** 237 /**
236 * Sets the receiver's text, which is the string that the 238 * Sets the receiver's text, which is the string that the
245 * @exception DWTException <ul> 247 * @exception DWTException <ul>
246 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 248 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
247 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 249 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
248 * </ul> 250 * </ul>
249 */ 251 */
250 public void setText (char[] string) { 252 public void setText (String string) {
251 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 253 if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
252 title = string; 254 title = string;
253 } 255 }
254 256
255 } 257 }