home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / awt / dnd / DnDConstants.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.7 KB  |  54 lines

  1. /*
  2.  * @(#)DnDConstants.java    1.3 98/03/18
  3.  *
  4.  * Copyright 1997, 1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt.dnd;
  16.  
  17. /**
  18.  * @version 1.3
  19.  * @since JDK1.2
  20.  *
  21.  */
  22.  
  23. public final class DnDConstants {
  24.  
  25.     /**
  26.      * DnD operation actions/verbs ...
  27.      */
  28.  
  29.     public static final int ACTION_NONE        = 0x0;
  30.     public static final int ACTION_COPY        = 0x1;
  31.     public static final int ACTION_MOVE        = 0x2;
  32.     public static final int ACTION_COPY_OR_MOVE    = ACTION_COPY | ACTION_MOVE;
  33.  
  34.     /**
  35.      * DnD operation action/verb
  36.      *
  37.      * The link verb is found in many, if not all native DnD platforms, the
  38.      * actual interpretation of LINK semantics is not only highly platform
  39.      * dependent but is also application dependent. Broadly speaking the
  40.      * semantic is "do not copy, or move the operand, but create a reference
  41.      * to it". Defining the meaning of "reference" is where ambiguity is
  42.      * introduced.
  43.      *
  44.      * The vern is provided for completness. but its use is not recommended
  45.      * for DnD operations between logically distinct applications where 
  46.      * misinterpretation of the operations semantics could lead to confusing
  47.      * results for the user.
  48.      */
  49.  
  50.     public static final int ACTION_LINK            = 0x40000000;
  51.     public static final int ACTION_REFERENCE    = ACTION_LINK;
  52.  
  53. }
  54.