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