Mercurial > projects > dwt-mac
comparison dwt/dnd/DropTargetAdapter.d @ 0:380af2bdd8e5
Upload of whole dwt tree
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 17:00:02 +0200 |
parents | |
children | d8635bb48c7c |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:380af2bdd8e5 |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2000, 2004 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 module dwt.dnd; | |
12 | |
13 | |
14 /** | |
15 * This adapter class provides default implementations for the | |
16 * methods described by the <code>DropTargetListener</code> interface. | |
17 * <p> | |
18 * Classes that wish to deal with <code>DropTargetEvent</code>s can | |
19 * extend this class and override only the methods which they are | |
20 * interested in. | |
21 * </p> | |
22 * | |
23 * @see DropTargetListener | |
24 * @see DropTargetEvent | |
25 */ | |
26 public class DropTargetAdapter : DropTargetListener { | |
27 | |
28 /** | |
29 * 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 | |
31 * defined in <code>event.currentDataType</code>. | |
32 * For additional information see <code>DropTargetListener.dragEnter</code>. | |
33 */ | |
34 public void dragEnter(DropTargetEvent event){} | |
35 /** | |
36 * This implementation of <code>dragLeave</code> does nothing. | |
37 * For additional information see <code>DropTargetListener.dragOperationChanged</code>. | |
38 */ | |
39 public void dragLeave(DropTargetEvent event){} | |
40 /** | |
41 * 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 | |
43 * defined in <code>event.currentDataType</code>. | |
44 * For additional information see <code>DropTargetListener.dragOperationChanged</code>. | |
45 */ | |
46 public void dragOperationChanged(DropTargetEvent event){} | |
47 /** | |
48 * 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 | |
50 * defined in <code>event.currentDataType</code>. | |
51 * For additional information see <code>DropTargetListener.dragOver</code>. | |
52 */ | |
53 public void dragOver(DropTargetEvent event){} | |
54 /** | |
55 * This implementation of <code>drop</code> does nothing. | |
56 * For additional information see <code>DropTargetListener.drop</code>. | |
57 */ | |
58 public void drop(DropTargetEvent event){} | |
59 /** | |
60 * 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 | |
62 * defined in <code>event.currentDataType</code>. | |
63 * For additional information see <code>DropTargetListener.dropAccept</code>. | |
64 */ | |
65 public void dropAccept(DropTargetEvent event){} | |
66 | |
67 } |