jdk/src/share/classes/java/awt/dnd/DropTargetDragEvent.java
author dav
Thu, 29 May 2008 13:48:51 +0400
changeset 638 69a80895db21
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
6691328: DragSourceContext returns unexpected cursor Summary: make the code to be executed if other options don't suit Reviewed-by: dcherepanov
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 1997-2004 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.awt.dnd;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.awt.Point;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.awt.datatransfer.DataFlavor;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.awt.datatransfer.Transferable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.util.List;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * The <code>DropTargetDragEvent</code> is delivered to a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * <code>DropTargetListener</code> via its
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * dragEnter() and dragOver() methods.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * The <code>DropTargetDragEvent</code> reports the <i>source drop actions</i>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * and the <i>user drop action</i> that reflect the current state of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * the drag operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * <i>Source drop actions</i> is a bitwise mask of <code>DnDConstants</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * that represents the set of drop actions supported by the drag source for
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * this drag operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * <i>User drop action</i> depends on the drop actions supported by the drag
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * source and the drop action selected by the user. The user can select a drop
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * action by pressing modifier keys during the drag operation:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 *   Ctrl + Shift -> ACTION_LINK
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 *   Ctrl         -> ACTION_COPY
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 *   Shift        -> ACTION_MOVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * If the user selects a drop action, the <i>user drop action</i> is one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * <code>DnDConstants</code> that represents the selected drop action if this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 * drop action is supported by the drag source or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * <code>DnDConstants.ACTION_NONE</code> if this drop action is not supported
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * by the drag source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * If the user doesn't select a drop action, the set of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 * <code>DnDConstants</code> that represents the set of drop actions supported
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 * by the drag source is searched for <code>DnDConstants.ACTION_MOVE</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 * then for <code>DnDConstants.ACTION_COPY</code>, then for
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * <code>DnDConstants.ACTION_LINK</code> and the <i>user drop action</i> is the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * first constant found. If no constant is found the <i>user drop action</i>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * is <code>DnDConstants.ACTION_NONE</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
public class DropTargetDragEvent extends DropTargetEvent {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    private static final long serialVersionUID = -8422265619058953682L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     * Construct a <code>DropTargetDragEvent</code> given the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * <code>DropTargetContext</code> for this operation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     * the location of the "Drag" <code>Cursor</code>'s hotspot
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * in the <code>Component</code>'s coordinates, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * user drop action, and the source drop actions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * @param dtc        The DropTargetContext for this operation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * @param cursorLocn The location of the "Drag" Cursor's
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * hotspot in Component coordinates
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * @param dropAction The user drop action
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * @param srcActions The source drop actions
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * @throws NullPointerException if cursorLocn is null
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * @throws <code>IllegalArgumentException</code> if dropAction is not one of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     *         <code>DnDConstants</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * @throws <code>IllegalArgumentException</code> if srcActions is not
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     *         a bitwise mask of <code>DnDConstants</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     * @throws <code>IllegalArgumentException</code> if dtc is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    public DropTargetDragEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions)  {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        super(dtc);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        if (cursorLocn == null) throw new NullPointerException("cursorLocn");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
        if (dropAction != DnDConstants.ACTION_NONE &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
            dropAction != DnDConstants.ACTION_COPY &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
            dropAction != DnDConstants.ACTION_MOVE &&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
            dropAction != DnDConstants.ACTION_LINK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        ) throw new IllegalArgumentException("dropAction" + dropAction);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        if ((srcActions & ~(DnDConstants.ACTION_COPY_OR_MOVE | DnDConstants.ACTION_LINK)) != 0) throw new IllegalArgumentException("srcActions");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        location        = cursorLocn;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        actions         = srcActions;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        this.dropAction = dropAction;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * This method returns a <code>Point</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * indicating the <code>Cursor</code>'s current
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * location within the <code>Component'</code>s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * coordinates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * @return the current cursor location in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * <code>Component</code>'s coords.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    public Point getLocation() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        return location;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * This method returns the current <code>DataFlavor</code>s from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * <code>DropTargetContext</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * @return current DataFlavors from the DropTargetContext
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    public DataFlavor[] getCurrentDataFlavors() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        return getDropTargetContext().getCurrentDataFlavors();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * This method returns the current <code>DataFlavor</code>s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * as a <code>java.util.List</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * @return a <code>java.util.List</code> of the Current <code>DataFlavor</code>s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
    public List<DataFlavor> getCurrentDataFlavorsAsList() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        return getDropTargetContext().getCurrentDataFlavorsAsList();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * This method returns a <code>boolean</code> indicating
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * if the specified <code>DataFlavor</code> is supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * @param df the <code>DataFlavor</code> to test
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * @return if a particular DataFlavor is supported
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    public boolean isDataFlavorSupported(DataFlavor df) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        return getDropTargetContext().isDataFlavorSupported(df);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * This method returns the source drop actions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     * @return the source drop actions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
    public int getSourceActions() { return actions; }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * This method returns the user drop action.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * @return the user drop action
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    public int getDropAction() { return dropAction; }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * This method returns the Transferable object that represents
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * the data associated with the current drag operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * @return the Transferable associated with the drag operation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * @throws InvalidDnDOperationException if the data associated with the drag
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     *         operation is not available
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    public Transferable getTransferable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        return getDropTargetContext().getTransferable();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     * Accepts the drag.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * This method should be called from a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * <code>DropTargetListeners</code> <code>dragEnter</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * <code>dragOver</code>, and <code>dropActionChanged</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * methods if the implementation wishes to accept an operation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * from the srcActions other than the one selected by
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * the user as represented by the <code>dropAction</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * @param dragOperation the operation accepted by the target
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    public void acceptDrag(int dragOperation) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
        getDropTargetContext().acceptDrag(dragOperation);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * Rejects the drag as a result of examining either the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * <code>dropAction</code> or the available <code>DataFlavor</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    public void rejectDrag() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
        getDropTargetContext().rejectDrag();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * fields
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * The location of the drag cursor's hotspot in Component coordinates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
    private Point               location;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
     * The source drop actions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    private int                 actions;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * The user drop action.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
    private int                 dropAction;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
}