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 methods
16: * that deal with the expanding and collapsing of tree
17: * branches.
18: * <p>
19: * After creating an instance of a class that implements
20: * this interface it can be added to a tree control using the
21: * <code>addTreeListener</code> method and removed using
22: * the <code>removeTreeListener</code> method. When a branch
23: * of the tree is expanded or collapsed, the appropriate method
24: * will be invoked.
25: * </p>
26: *
27: * @see TreeAdapter
28: * @see TreeEvent
29: */
30: public interface TreeListener extends SWTEventListener {
31:
32: /**
33: * Sent when a tree branch is collapsed.
34: *
35: * @param e an event containing information about the tree operation
36: */
37: public void treeCollapsed(TreeEvent e);
38:
39: /**
40: * Sent when a tree branch is expanded.
41: *
42: * @param e an event containing information about the tree operation
43: */
44: public void treeExpanded(TreeEvent e);
45: }
|