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