01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 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>ExpandListener</code> interface.
15: * <p>
16: * Classes that wish to deal with <code>ExpandEvent</code>s can
17: * extend this class and override only the methods which they are
18: * interested in.
19: * </p>
20: *
21: * @see ExpandListener
22: * @see ExpandEvent
23: *
24: * @since 3.2
25: */
26: public abstract class ExpandAdapter implements ExpandListener {
27:
28: /**
29: * Sent when an item is collapsed.
30: * The default behavior is to do nothing.
31: *
32: * @param e an event containing information about the operation
33: */
34: public void itemCollapsed(ExpandEvent e) {
35: }
36:
37: /**
38: * Sent when an item is expanded.
39: * The default behavior is to do nothing.
40: *
41: * @param e an event containing information about the operation
42: */
43: public void itemExpanded(ExpandEvent e) {
44: }
45: }
|