KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > events > SelectionAdapter


1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.events;
12
13
14 /**
15  * This adapter class provides default implementations for the
16  * methods described by the <code>SelectionListener</code> interface.
17  * <p>
18  * Classes that wish to deal with <code>SelectionEvent</code>s can
19  * extend this class and override only the methods which they are
20  * interested in.
21  * </p>
22  *
23  * @see SelectionListener
24  * @see SelectionEvent
25  */

26 public abstract class SelectionAdapter implements SelectionListener {
27
28 /**
29  * Sent when selection occurs in the control.
30  * The default behavior is to do nothing.
31  *
32  * @param e an event containing information about the selection
33  */

34 public void widgetSelected(SelectionEvent e) {
35 }
36
37 /**
38  * Sent when default selection occurs in the control.
39  * The default behavior is to do nothing.
40  *
41  * @param e an event containing information about the default selection
42  */

43 public void widgetDefaultSelected(SelectionEvent e) {
44 }
45 }
46
Popular Tags