Mercurial > projects > dwt-win
comparison dwt/dnd/DropTargetAdapter.d @ 135:242e33c0e383
Added dnd source, ByteArrayTransfer,Clipboard completed
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 13 Feb 2008 04:51:22 +0100 |
parents | |
children | fd9c62a2998e |
comparison
equal
deleted
inserted
replaced
134:fa7d7d66b9ed | 135:242e33c0e383 |
---|---|
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 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwt.dnd.DropTargetAdapter; | |
14 | |
15 import dwt.dnd.DropTargetListener; | |
16 import dwt.dnd.DropTargetEvent; | |
17 | |
18 /** | |
19 * This adapter class provides default implementations for the | |
20 * methods described by the <code>DropTargetListener</code> interface. | |
21 * <p> | |
22 * Classes that wish to deal with <code>DropTargetEvent</code>s can | |
23 * extend this class and override only the methods which they are | |
24 * interested in. | |
25 * </p> | |
26 * | |
27 * @see DropTargetListener | |
28 * @see DropTargetEvent | |
29 */ | |
30 public class DropTargetAdapter : DropTargetListener { | |
31 | |
32 /** | |
33 * This implementation of <code>dragEnter</code> permits the default | |
34 * operation defined in <code>event.detail</code>to be performed on the current data type | |
35 * defined in <code>event.currentDataType</code>. | |
36 * For additional information see <code>DropTargetListener.dragEnter</code>. | |
37 */ | |
38 public void dragEnter(DropTargetEvent event){} | |
39 /** | |
40 * This implementation of <code>dragLeave</code> does nothing. | |
41 * For additional information see <code>DropTargetListener.dragOperationChanged</code>. | |
42 */ | |
43 public void dragLeave(DropTargetEvent event){} | |
44 /** | |
45 * This implementation of <code>dragOperationChanged</code> permits the default | |
46 * operation defined in <code>event.detail</code>to be performed on the current data type | |
47 * defined in <code>event.currentDataType</code>. | |
48 * For additional information see <code>DropTargetListener.dragOperationChanged</code>. | |
49 */ | |
50 public void dragOperationChanged(DropTargetEvent event){} | |
51 /** | |
52 * This implementation of <code>dragOver</code> permits the default | |
53 * operation defined in <code>event.detail</code>to be performed on the current data type | |
54 * defined in <code>event.currentDataType</code>. | |
55 * For additional information see <code>DropTargetListener.dragOver</code>. | |
56 */ | |
57 public void dragOver(DropTargetEvent event){} | |
58 /** | |
59 * This implementation of <code>drop</code> does nothing. | |
60 * For additional information see <code>DropTargetListener.drop</code>. | |
61 */ | |
62 public void drop(DropTargetEvent event){} | |
63 /** | |
64 * This implementation of <code>dropAccept</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.dropAccept</code>. | |
68 */ | |
69 public void dropAccept(DropTargetEvent event){} | |
70 | |
71 } |