comparison dwt/dnd/TreeDragSourceEffect.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 1a8b3cb347e0
comparison
equal deleted inserted replaced
-1:000000000000 0:380af2bdd8e5
1 /*******************************************************************************
2 * Copyright (c) 2007 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 import dwt.widgets.*;
14
15 /**
16 * This class provides default implementations to display a source image
17 * when a drag is initiated from a <code>Tree</code>.
18 *
19 * <p>Classes that wish to provide their own source image for a <code>Tree</code> can
20 * extend <code>TreeDragSourceEffect</code> class and override the <code>TreeDragSourceEffect.dragStart</code>
21 * method and set the field <code>DragSourceEvent.image</code> with their own image.</p>
22 *
23 * Subclasses that override any methods of this class must call the corresponding
24 * <code>super</code> method to get the default drag under effect implementation.
25 *
26 * @see DragSourceEffect
27 * @see DragSourceEvent
28 *
29 * @since 3.3
30 */
31 public class TreeDragSourceEffect : DragSourceEffect {
32 /**
33 * Creates a new <code>TreeDragSourceEffect</code> to handle drag effect
34 * from the specified <code>Tree</code>.
35 *
36 * @param tree the <code>Tree</code> that the user clicks on to initiate the drag
37 */
38 public TreeDragSourceEffect(Tree tree) {
39 super(tree);
40 }
41 }