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>TreeListener</code> interface.
15: * <p>
16: * Classes that wish to deal with <code>TreeEvent</code>s can
17: * extend this class and override only the methods which they are
18: * interested in.
19: * </p>
20: *
21: * @see TreeListener
22: * @see TreeEvent
23: */
24: public abstract class TreeAdapter implements TreeListener {
25:
26: /**
27: * Sent when a tree branch is collapsed.
28: * The default behavior is to do nothing.
29: *
30: * @param e an event containing information about the tree operation
31: */
32: public void treeCollapsed(TreeEvent e) {
33: }
34:
35: /**
36: * Sent when a tree branch is expanded.
37: * The default behavior is to do nothing.
38: *
39: * @param e an event containing information about the tree operation
40: */
41: public void treeExpanded(TreeEvent e) {
42: }
43: }
|