1 /*******************************************************************************
2  * Copyright (c) 2000, 2008 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  * Port to the D programming language:
11  *     Frank Benoit <benoit@tionex.de>
12  *******************************************************************************/
13 module org.eclipse.swt.dnd.DropTargetAdapter;
14 
15 import java.lang.all;
16 
17 import org.eclipse.swt.dnd.DropTargetListener;
18 import org.eclipse.swt.dnd.DropTargetEvent;
19 
20 /**
21  * This adapter class provides default implementations for the
22  * methods described by the <code>DropTargetListener</code> interface.
23  * <p>
24  * Classes that wish to deal with <code>DropTargetEvent</code>s can
25  * extend this class and override only the methods which they are
26  * interested in.
27  * </p>
28  *
29  * @see DropTargetListener
30  * @see DropTargetEvent
31  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
32  */
33 public class DropTargetAdapter : DropTargetListener {
34 
35 /**
36  * This implementation of <code>dragEnter</code> permits the default
37  * operation defined in <code>event.detail</code>to be performed on the current data type
38  * defined in <code>event.currentDataType</code>.
39  * For additional information see <code>DropTargetListener.dragEnter</code>.
40  * 
41  * @param event the information associated with the drag enter event
42  */
43 public void dragEnter(DropTargetEvent event){}
44 
45 /**
46  * This implementation of <code>dragLeave</code> does nothing.
47  * For additional information see <code>DropTargetListener.dragOperationChanged</code>.
48  * 
49  * @param event the information associated with the drag leave event
50  */
51 public void dragLeave(DropTargetEvent event){}
52 
53 /**
54  * This implementation of <code>dragOperationChanged</code> permits the default
55  * operation defined in <code>event.detail</code>to be performed on the current data type
56  * defined in <code>event.currentDataType</code>.
57  * For additional information see <code>DropTargetListener.dragOperationChanged</code>.
58  * 
59  * @param event the information associated with the drag operation changed event
60  */
61 public void dragOperationChanged(DropTargetEvent event){}
62 
63 /**
64  * This implementation of <code>dragOver</code> permits the default
65  * operation defined in <code>event.detail</code>to be performed on the current data type
66  * defined in <code>event.currentDataType</code>.
67  * For additional information see <code>DropTargetListener.dragOver</code>.
68  * 
69  * @param event the information associated with the drag over event
70  */
71 public void dragOver(DropTargetEvent event){}
72 
73 /**
74  * This implementation of <code>drop</code> does nothing.
75  * For additional information see <code>DropTargetListener.drop</code>.
76  * 
77  * @param event the information associated with the drop event
78  */
79 public void drop(DropTargetEvent event){}
80 
81 /**
82  * This implementation of <code>dropAccept</code> permits the default
83  * operation defined in <code>event.detail</code>to be performed on the current data type
84  * defined in <code>event.currentDataType</code>.
85  * For additional information see <code>DropTargetListener.dropAccept</code>.
86  * 
87  * @param event the information associated with the drop accept event
88  */
89 public void dropAccept(DropTargetEvent event){}
90 
91 }