< prev index next >

src/java.desktop/share/classes/java/awt/dnd/DnDConstants.java

Print this page




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.awt.dnd;
  27 
  28 import java.lang.annotation.Native;
  29 
  30 /**
  31  * This class contains constant values representing
  32  * the type of action(s) to be performed by a Drag and Drop operation.
  33  * @since 1.2
  34  */
  35 public final class DnDConstants {
  36 
  37     private DnDConstants() {} // define null private constructor.
  38 
  39     /**
  40      * An <code>int</code> representing no action.
  41      */
  42     @Native public static final int ACTION_NONE         = 0x0;
  43 
  44     /**
  45      * An <code>int</code> representing a &quot;copy&quot; action.
  46      */
  47     @Native public static final int ACTION_COPY         = 0x1;
  48 
  49     /**
  50      * An <code>int</code> representing a &quot;move&quot; action.
  51      */
  52     @Native public static final int ACTION_MOVE         = 0x2;
  53 
  54     /**
  55      * An <code>int</code> representing a &quot;copy&quot; or
  56      * &quot;move&quot; action.
  57      */
  58     @Native public static final int ACTION_COPY_OR_MOVE = ACTION_COPY | ACTION_MOVE;
  59 
  60     /**
  61      * An <code>int</code> representing a &quot;link&quot; action.
  62      *
  63      * The link verb is found in many, if not all native DnD platforms, and the
  64      * actual interpretation of LINK semantics is both platform
  65      * and application dependent. Broadly speaking, the
  66      * semantic is "do not copy, or move the operand, but create a reference
  67      * to it". Defining the meaning of "reference" is where ambiguity is
  68      * introduced.
  69      *
  70      * The verb is provided for completeness, but its use is not recommended
  71      * for DnD operations between logically distinct applications where
  72      * misinterpretation of the operations semantics could lead to confusing
  73      * results for the user.
  74      */
  75 
  76     @Native public static final int ACTION_LINK         = 0x40000000;
  77 
  78     /**
  79      * An <code>int</code> representing a &quot;reference&quot;
  80      * action (synonym for ACTION_LINK).
  81      */
  82     @Native public static final int ACTION_REFERENCE    = ACTION_LINK;
  83 
  84 }


  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.awt.dnd;
  27 
  28 import java.lang.annotation.Native;
  29 
  30 /**
  31  * This class contains constant values representing
  32  * the type of action(s) to be performed by a Drag and Drop operation.
  33  * @since 1.2
  34  */
  35 public final class DnDConstants {
  36 
  37     private DnDConstants() {} // define null private constructor.
  38 
  39     /**
  40      * An {@code int} representing no action.
  41      */
  42     @Native public static final int ACTION_NONE         = 0x0;
  43 
  44     /**
  45      * An {@code int} representing a "copy" action.
  46      */
  47     @Native public static final int ACTION_COPY         = 0x1;
  48 
  49     /**
  50      * An {@code int} representing a "move" action.
  51      */
  52     @Native public static final int ACTION_MOVE         = 0x2;
  53 
  54     /**
  55      * An {@code int} representing a "copy" or
  56      * "move" action.
  57      */
  58     @Native public static final int ACTION_COPY_OR_MOVE = ACTION_COPY | ACTION_MOVE;
  59 
  60     /**
  61      * An {@code int} representing a "link" action.
  62      *
  63      * The link verb is found in many, if not all native DnD platforms, and the
  64      * actual interpretation of LINK semantics is both platform
  65      * and application dependent. Broadly speaking, the
  66      * semantic is "do not copy, or move the operand, but create a reference
  67      * to it". Defining the meaning of "reference" is where ambiguity is
  68      * introduced.
  69      *
  70      * The verb is provided for completeness, but its use is not recommended
  71      * for DnD operations between logically distinct applications where
  72      * misinterpretation of the operations semantics could lead to confusing
  73      * results for the user.
  74      */
  75 
  76     @Native public static final int ACTION_LINK         = 0x40000000;
  77 
  78     /**
  79      * An {@code int} representing a "reference"
  80      * action (synonym for ACTION_LINK).
  81      */
  82     @Native public static final int ACTION_REFERENCE    = ACTION_LINK;
  83 
  84 }
< prev index next >