0N/A/*
2362N/A * Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage java.awt.dnd;
0N/A
0N/A/**
0N/A * This class contains constant values representing
0N/A * the type of action(s) to be performed by a Drag and Drop operation.
0N/A * @since 1.2
0N/A */
0N/A
0N/Apublic final class DnDConstants {
0N/A
0N/A private DnDConstants() {} // define null private constructor.
0N/A
0N/A /**
0N/A * An <code>int</code> representing no action.
0N/A */
0N/A public static final int ACTION_NONE = 0x0;
0N/A
0N/A /**
0N/A * An <code>int</code> representing a &quot;copy&quot; action.
0N/A */
0N/A public static final int ACTION_COPY = 0x1;
0N/A
0N/A /**
0N/A * An <code>int</code> representing a &quot;move&quot; action.
0N/A */
0N/A public static final int ACTION_MOVE = 0x2;
0N/A
0N/A /**
0N/A * An <code>int</code> representing a &quot;copy&quot; or
0N/A * &quot;move&quot; action.
0N/A */
0N/A public static final int ACTION_COPY_OR_MOVE = ACTION_COPY | ACTION_MOVE;
0N/A
0N/A /**
0N/A * An <code>int</code> representing a &quot;link&quot; action.
0N/A *
0N/A * The link verb is found in many, if not all native DnD platforms, and the
0N/A * actual interpretation of LINK semantics is both platform
0N/A * and application dependent. Broadly speaking, the
0N/A * semantic is "do not copy, or move the operand, but create a reference
0N/A * to it". Defining the meaning of "reference" is where ambiguity is
0N/A * introduced.
0N/A *
0N/A * The verb is provided for completeness, but its use is not recommended
0N/A * for DnD operations between logically distinct applications where
0N/A * misinterpretation of the operations semantics could lead to confusing
0N/A * results for the user.
0N/A */
0N/A
0N/A public static final int ACTION_LINK = 0x40000000;
0N/A
0N/A /**
0N/A * An <code>int</code> representing a &quot;reference&quot;
0N/A * action (synonym for ACTION_LINK).
0N/A */
0N/A public static final int ACTION_REFERENCE = ACTION_LINK;
0N/A
0N/A}