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: /**
13: * This adapter class provides default implementations for the
14: * methods described by the <code>ControlListener</code> interface.
15: * <p>
16: * Classes that wish to deal with <code>ControlEvent</code>s can
17: * extend this class and override only the methods which they are
18: * interested in.
19: * </p>
20: *
21: * @see ControlListener
22: * @see ControlEvent
23: */
24: public abstract class ControlAdapter implements ControlListener {
25:
26: /**
27: * Sent when the location (x, y) of a control changes relative
28: * to its parent (or relative to the display, for <code>Shell</code>s).
29: * The default behavior is to do nothing.
30: *
31: * @param e an event containing information about the move
32: */
33: public void controlMoved(ControlEvent e) {
34: }
35:
36: /**
37: * Sent when the size (width, height) of a control changes.
38: * The default behavior is to do nothing.
39: *
40: * @param e an event containing information about the resize
41: */
42: public void controlResized(ControlEvent e) {
43: }
44: }
|