Mercurial > projects > dwt-win
comparison dwt/custom/ExtendedModifyEvent.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | a5afe31f5cdd |
children | fd9c62a2998e |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2004 IBM Corporation and others. | 2 * Copyright (c) 2000, 2004 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module dwt.custom.ExtendedModifyEvent; | 13 module dwt.custom.ExtendedModifyEvent; |
14 | 14 |
15 import dwt.events.TypedEvent; | 15 import dwt.events.TypedEvent; |
16 import dwt.custom.StyledTextEvent; | 16 import dwt.custom.StyledTextEvent; |
17 import dwt.dwthelper.utils; | |
17 | 18 |
18 /** | 19 /** |
19 * This event is sent after a text change occurs. | 20 * This event is sent after a text change occurs. |
20 */ | 21 */ |
21 public final class ExtendedModifyEvent : TypedEvent { | 22 public final class ExtendedModifyEvent : TypedEvent { |
22 /** start offset of the new text */ | 23 /** start offset of the new text */ |
23 public int start; | 24 public int start; |
24 /** length of the new text */ | 25 /** length of the new text */ |
25 public int length; | 26 public int length; |
26 /** replaced text or empty string if no text was replaced */ | 27 /** replaced text or empty string if no text was replaced */ |
27 public char[] replacedText; | 28 public String replacedText; |
28 | 29 |
29 static final long serialVersionUID = 3258696507027830832L; | 30 static final long serialVersionUID = 3258696507027830832L; |
30 | 31 |
31 public this(StyledTextEvent e) { | 32 public this(StyledTextEvent e) { |
32 super(cast(Object)e); | 33 super(cast(Object)e); |