1 /******************************************************************************* 2 * Copyright (c) 2000, 2008 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 org.eclipse.swt.custom.ExtendedModifyListener; 14 15 import org.eclipse.swt.internal.SWTEventListener; 16 import org.eclipse.swt.custom.ExtendedModifyEvent; 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 public interface ExtendedModifyListener : SWTEventListener { 27 28 /** 29 * This method is called after a text change occurs. 30 * <p> 31 * The following event fields are used:<ul> 32 * <li>event.start the start offset of the new text (input)</li> 33 * <li>event.length the length of the new text (input)</li> 34 * <li>event.replacedText the replaced text (input)</li> 35 * </ul> 36 * 37 * @param event the given event 38 * @see ExtendedModifyEvent 39 */ 40 public void modifyText(ExtendedModifyEvent event); 41 } 42 43