]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/custom/ExtendedModifyListener.java
3652482bc6dc1ec77297edbf0b1c2d1d5c2bc7da
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / custom / ExtendedModifyListener.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2016 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.custom;
15
16 import org.eclipse.swt.internal.*;
17
18 /**
19  * Classes which implement this interface provide a method
20  * that deals with the event that is generated when text
21  * is modified.
22  *
23  * @see ExtendedModifyEvent
24  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
25  */
26 @FunctionalInterface
27 public interface ExtendedModifyListener extends SWTEventListener {
28
29 /**
30  * This method is called after a text change occurs.
31  * <p>
32  * The following event fields are used:<ul>
33  * <li>event.start the start offset of the new text (input)</li>
34  * <li>event.length the length of the new text (input)</li>
35  * <li>event.replacedText the replaced text (input)</li>
36  * </ul>
37  *
38  * @param event the given event
39  * @see ExtendedModifyEvent
40  */
41 public void modifyText(ExtendedModifyEvent event);
42 }
43
44