comparison dwt/dnd/DragSourceEffect.d @ 45:d8635bb48c7c

Merge with SWT 3.5
author Jacob Carlborg <doob@me.com>
date Mon, 01 Dec 2008 17:07:00 +0100
parents 1a8b3cb347e0
children bc175cd0484a
comparison
equal deleted inserted replaced
44:ca5e494f2bbf 45:d8635bb48c7c
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2007 IBM Corporation and others. 2 * Copyright (c) 2007, 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.DragSourceEffect;
12 12
13 import dwt.*; 13 import dwt.dwthelper.utils;
14 import dwt.widgets.*; 14
15 import dwt.DWT;
16 import dwt.widgets.Control;
15 17
16 /** 18 /**
17 * This class provides default implementations to display a drag source 19 * This class provides default implementations to display a drag source
18 * effect during a drag and drop operation. The current implementation 20 * effect during a drag and drop operation. The current implementation
19 * does not provide any visual feedback. 21 * does not provide any visual feedback.
30 * The image should be disposed when <code>DragSourceAdapter.dragFinished</code> is called. 32 * The image should be disposed when <code>DragSourceAdapter.dragFinished</code> is called.
31 * </p> 33 * </p>
32 * 34 *
33 * @see DragSourceAdapter 35 * @see DragSourceAdapter
34 * @see DragSourceEvent 36 * @see DragSourceEvent
37 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
35 * 38 *
36 * @since 3.3 39 * @since 3.3
37 */ 40 */
38 public class DragSourceEffect : DragSourceAdapter { 41 public class DragSourceEffect extends DragSourceAdapter {
39 Control control = null; 42 Control control = null;
40 43
41 /** 44 /**
42 * Creates a new <code>DragSourceEffect</code> to handle drag effect from the specified <code>Control</code>. 45 * Creates a new <code>DragSourceEffect</code> to handle drag effect from the specified <code>Control</code>.
43 * 46 *
45 * 48 *
46 * @exception IllegalArgumentException <ul> 49 * @exception IllegalArgumentException <ul>
47 * <li>ERROR_NULL_ARGUMENT - if the control is null</li> 50 * <li>ERROR_NULL_ARGUMENT - if the control is null</li>
48 * </ul> 51 * </ul>
49 */ 52 */
50 public this(Control control) { 53 public DragSourceEffect(Control control) {
51 if (control is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); 54 if (control is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
52 this.control = control; 55 this.control = control;
53 } 56 }
54 57
55 /** 58 /**