1. /*
  2. * @(#)DnDConstants.java 1.16 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.awt.dnd;
  11. /**
  12. * This class contains constant values representing
  13. * the type of action(s) to be performed by a Drag and Drop operation.
  14. * @version 1.16, 02/02/00
  15. * @since 1.2
  16. */
  17. public final class DnDConstants {
  18. private DnDConstants() {} // define null private constructor.
  19. /**
  20. * An <code>int</code> representing no action.
  21. */
  22. public static final int ACTION_NONE = 0x0;
  23. /**
  24. * An <code>int</code> representing a "copy" action.
  25. */
  26. public static final int ACTION_COPY = 0x1;
  27. /**
  28. * An <code>int</code> representing a "move" action.
  29. */
  30. public static final int ACTION_MOVE = 0x2;
  31. /**
  32. * An <code>int</code> representing a "copy" or
  33. * "move" action.
  34. */
  35. public static final int ACTION_COPY_OR_MOVE = ACTION_COPY | ACTION_MOVE;
  36. /**
  37. * An <code>int</code> representing a "link" action.
  38. *
  39. * The link verb is found in many, if not all native DnD platforms, and the
  40. * actual interpretation of LINK semantics is both platform
  41. * and application dependent. Broadly speaking, the
  42. * semantic is "do not copy, or move the operand, but create a reference
  43. * to it". Defining the meaning of "reference" is where ambiguity is
  44. * introduced.
  45. *
  46. * The verb is provided for completeness, but its use is not recommended
  47. * for DnD operations between logically distinct applications where
  48. * misinterpretation of the operations semantics could lead to confusing
  49. * results for the user.
  50. */
  51. public static final int ACTION_LINK = 0x40000000;
  52. /**
  53. * An <code>int</code> representing a "reference"
  54. * action (synonym for ACTION_LINK).
  55. */
  56. public static final int ACTION_REFERENCE = ACTION_LINK;
  57. }