01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.events;
11:
12: import org.eclipse.swt.internal.SWTEventListener;
13:
14: /**
15: * Classes which implement this interface provide a method
16: * that deals with the events that are generated when text
17: * is about to be modified.
18: * <p>
19: * After creating an instance of a class that implements
20: * this interface it can be added to a text control using the
21: * <code>addVerifyListener</code> method and removed using
22: * the <code>removeVerifyListener</code> method. When the
23: * text is about to be modified, the verifyText method
24: * will be invoked.
25: * </p>
26: *
27: * @see VerifyEvent
28: */
29: public interface VerifyListener extends SWTEventListener {
30:
31: /**
32: * Sent when the text is about to be modified.
33: * <p>
34: * A verify event occurs after the user has done something
35: * to modify the text (typically typed a key), but before
36: * the text is modified. The doit field in the verify event
37: * indicates whether or not to modify the text.
38: * </p>
39: *
40: * @param e an event containing information about the verify
41: */
42: public void verifyText(VerifyEvent e);
43: }
|