Mercurial > projects > dwt-mac
comparison dwt/dnd/DropTargetAdapter.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 | c2f1ba00473b |
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.DropTargetAdapter; |
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>DropTargetListener</code> interface. | 18 * methods described by the <code>DropTargetListener</code> interface. |
20 * interested in. | 22 * interested in. |
21 * </p> | 23 * </p> |
22 * | 24 * |
23 * @see DropTargetListener | 25 * @see DropTargetListener |
24 * @see DropTargetEvent | 26 * @see DropTargetEvent |
27 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
25 */ | 28 */ |
26 public class DropTargetAdapter : DropTargetListener { | 29 public class DropTargetAdapter implements DropTargetListener { |
27 | 30 |
28 /** | 31 /** |
29 * This implementation of <code>dragEnter</code> permits the default | 32 * This implementation of <code>dragEnter</code> permits the default |
30 * operation defined in <code>event.detail</code>to be performed on the current data type | 33 * operation defined in <code>event.detail</code>to be performed on the current data type |
31 * defined in <code>event.currentDataType</code>. | 34 * defined in <code>event.currentDataType</code>. |
32 * For additional information see <code>DropTargetListener.dragEnter</code>. | 35 * For additional information see <code>DropTargetListener.dragEnter</code>. |
36 * | |
37 * @param event the information associated with the drag enter event | |
33 */ | 38 */ |
34 public void dragEnter(DropTargetEvent event){} | 39 public void dragEnter(DropTargetEvent event){} |
40 | |
35 /** | 41 /** |
36 * This implementation of <code>dragLeave</code> does nothing. | 42 * This implementation of <code>dragLeave</code> does nothing. |
37 * For additional information see <code>DropTargetListener.dragOperationChanged</code>. | 43 * For additional information see <code>DropTargetListener.dragOperationChanged</code>. |
44 * | |
45 * @param event the information associated with the drag leave event | |
38 */ | 46 */ |
39 public void dragLeave(DropTargetEvent event){} | 47 public void dragLeave(DropTargetEvent event){} |
48 | |
40 /** | 49 /** |
41 * This implementation of <code>dragOperationChanged</code> permits the default | 50 * This implementation of <code>dragOperationChanged</code> permits the default |
42 * operation defined in <code>event.detail</code>to be performed on the current data type | 51 * operation defined in <code>event.detail</code>to be performed on the current data type |
43 * defined in <code>event.currentDataType</code>. | 52 * defined in <code>event.currentDataType</code>. |
44 * For additional information see <code>DropTargetListener.dragOperationChanged</code>. | 53 * For additional information see <code>DropTargetListener.dragOperationChanged</code>. |
54 * | |
55 * @param event the information associated with the drag operation changed event | |
45 */ | 56 */ |
46 public void dragOperationChanged(DropTargetEvent event){} | 57 public void dragOperationChanged(DropTargetEvent event){} |
58 | |
47 /** | 59 /** |
48 * This implementation of <code>dragOver</code> permits the default | 60 * This implementation of <code>dragOver</code> permits the default |
49 * operation defined in <code>event.detail</code>to be performed on the current data type | 61 * operation defined in <code>event.detail</code>to be performed on the current data type |
50 * defined in <code>event.currentDataType</code>. | 62 * defined in <code>event.currentDataType</code>. |
51 * For additional information see <code>DropTargetListener.dragOver</code>. | 63 * For additional information see <code>DropTargetListener.dragOver</code>. |
64 * | |
65 * @param event the information associated with the drag over event | |
52 */ | 66 */ |
53 public void dragOver(DropTargetEvent event){} | 67 public void dragOver(DropTargetEvent event){} |
68 | |
54 /** | 69 /** |
55 * This implementation of <code>drop</code> does nothing. | 70 * This implementation of <code>drop</code> does nothing. |
56 * For additional information see <code>DropTargetListener.drop</code>. | 71 * For additional information see <code>DropTargetListener.drop</code>. |
72 * | |
73 * @param event the information associated with the drop event | |
57 */ | 74 */ |
58 public void drop(DropTargetEvent event){} | 75 public void drop(DropTargetEvent event){} |
76 | |
59 /** | 77 /** |
60 * This implementation of <code>dropAccept</code> permits the default | 78 * This implementation of <code>dropAccept</code> permits the default |
61 * operation defined in <code>event.detail</code>to be performed on the current data type | 79 * operation defined in <code>event.detail</code>to be performed on the current data type |
62 * defined in <code>event.currentDataType</code>. | 80 * defined in <code>event.currentDataType</code>. |
63 * For additional information see <code>DropTargetListener.dropAccept</code>. | 81 * For additional information see <code>DropTargetListener.dropAccept</code>. |
82 * | |
83 * @param event the information associated with the drop accept event | |
64 */ | 84 */ |
65 public void dropAccept(DropTargetEvent event){} | 85 public void dropAccept(DropTargetEvent event){} |
66 | 86 |
67 } | 87 } |