01: /*******************************************************************************
02: * Copyright (c) 2000, 2003 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 methods
16: * that deal with the events that are generated by moving
17: * and resizing controls.
18: * <p>
19: * After creating an instance of a class that implements
20: * this interface it can be added to a control using the
21: * <code>addControlListener</code> method and removed using
22: * the <code>removeControlListener</code> method. When a
23: * control is moved or resized, the appropriate method will
24: * be invoked.
25: * </p>
26: *
27: * @see ControlAdapter
28: * @see ControlEvent
29: */
30: public interface ControlListener extends SWTEventListener {
31:
32: /**
33: * Sent when the location (x, y) of a control changes relative
34: * to its parent (or relative to the display, for <code>Shell</code>s).
35: *
36: * @param e an event containing information about the move
37: */
38: public void controlMoved(ControlEvent e);
39:
40: /**
41: * Sent when the size (width, height) of a control changes.
42: *
43: * @param e an event containing information about the resize
44: */
45: public void controlResized(ControlEvent e);
46: }
|