Mercurial > projects > dwt-mac
comparison dwt/dnd/DragSourceAdapter.d @ 45:d8635bb48c7c
Merge with SWT 3.5
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 01 Dec 2008 17:07:00 +0100 |
parents | 380af2bdd8e5 |
children | 52007db1276d |
comparison
equal
deleted
inserted
replaced
44:ca5e494f2bbf | 45:d8635bb48c7c |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2004 IBM Corporation and others. | 2 * Copyright (c) 2000, 2008 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
8 * Contributors: | 8 * Contributors: |
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 *******************************************************************************/ | 10 *******************************************************************************/ |
11 module dwt.dnd; | 11 module dwt.dnd.DragSourceAdapter; |
12 | |
13 import dwt.dwthelper.utils; | |
12 | 14 |
13 | 15 |
14 /** | 16 /** |
15 * This adapter class provides default implementations for the | 17 * This adapter class provides default implementations for the |
16 * methods described by the <code>DragSourceListener</code> interface. | 18 * methods described by the <code>DragSourceListener</code> interface. |
19 * extend this class and override only the methods which they are | 21 * extend this class and override only the methods which they are |
20 * interested in.</p> | 22 * interested in.</p> |
21 * | 23 * |
22 * @see DragSourceListener | 24 * @see DragSourceListener |
23 * @see DragSourceEvent | 25 * @see DragSourceEvent |
26 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
24 */ | 27 */ |
25 public class DragSourceAdapter : DragSourceListener { | 28 public class DragSourceAdapter implements DragSourceListener { |
26 /** | 29 |
27 * This implementation of <code>dragStart</code> permits the drag operation to start. | 30 /** |
28 * For additional information see <code>DragSourceListener.dragStart</code>. | 31 * This implementation of <code>dragStart</code> permits the drag operation to start. |
29 */ | 32 * For additional information see <code>DragSourceListener.dragStart</code>. |
30 public void dragStart(DragSourceEvent event){} | 33 * |
31 /** | 34 * @param event the information associated with the drag start event |
32 * This implementation of <code>dragFinished</code> does nothing. | 35 */ |
33 * For additional information see <code>DragSourceListener.dragFinished</code>. | 36 public void dragStart(DragSourceEvent event){} |
34 */ | 37 |
35 public void dragFinished(DragSourceEvent event){} | 38 /** |
36 /** | 39 * This implementation of <code>dragFinished</code> does nothing. |
37 * This implementation of <code>dragSetData</code> does nothing. | 40 * For additional information see <code>DragSourceListener.dragFinished</code>. |
38 * For additional information see <code>DragSourceListener.dragSetData</code>. | 41 * |
39 */ | 42 * @param event the information associated with the drag finished event |
40 public void dragSetData(DragSourceEvent event){} | 43 */ |
44 public void dragFinished(DragSourceEvent event){} | |
45 | |
46 /** | |
47 * This implementation of <code>dragSetData</code> does nothing. | |
48 * For additional information see <code>DragSourceListener.dragSetData</code>. | |
49 * | |
50 * @param event the information associated with the drag set data event | |
51 */ | |
52 public void dragSetData(DragSourceEvent event){} | |
53 | |
41 } | 54 } |