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: 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 <code>ExpandItem</code>s.
17: *
18: * <p>
19: * After creating an instance of a class that implements
20: * this interface it can be added to a <code>ExpandBar</code>
21: * control using the <code>addExpandListener</code> method and
22: * removed using the <code>removeExpandListener</code> method.
23: * When a item of the <code>ExpandBar</code> is expanded or
24: * collapsed, the appropriate method will be invoked.
25: * </p>
26: *
27: * @see ExpandAdapter
28: * @see ExpandEvent
29: *
30: * @since 3.2
31: */
32: public interface ExpandListener extends SWTEventListener {
33:
34: /**
35: * Sent when an item is collapsed.
36: *
37: * @param e an event containing information about the operation
38: */
39: public void itemCollapsed(ExpandEvent e);
40:
41: /**
42: * Sent when an item is expanded.
43: *
44: * @param e an event containing information about the operation
45: */
46: public void itemExpanded(ExpandEvent e);
47: }
|