Mercurial > projects > dwt-win
annotate 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 |
rev | line source |
---|---|
212
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
1 /******************************************************************************* |
155 | 2 * Copyright (c) 2000, 2004 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwt.custom.ExtendedModifyEvent; | |
14 | |
15 import dwt.events.TypedEvent; | |
16 import dwt.custom.StyledTextEvent; | |
212
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
17 import dwt.dwthelper.utils; |
155 | 18 |
19 /** | |
20 * This event is sent after a text change occurs. | |
21 */ | |
22 public final class ExtendedModifyEvent : TypedEvent { | |
23 /** start offset of the new text */ | |
24 public int start; | |
25 /** length of the new text */ | |
26 public int length; | |
27 /** replaced text or empty string if no text was replaced */ | |
212
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
28 public String replacedText; |
155 | 29 |
30 static final long serialVersionUID = 3258696507027830832L; | |
31 | |
32 public this(StyledTextEvent e) { | |
33 super(cast(Object)e); | |
34 start = e.start; | |
35 length = e.end - e.start; | |
36 replacedText = e.text; | |
37 } | |
38 } |