Class UIDropOperation


  • public final class UIDropOperation
    extends java.lang.Object
    The UIDropInteraction's delegate uses a UIDropOperation to tell the system what operation it will perform if the user drops.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Cancel
      The drag will be cancelled.
      static long Copy
      The data represented by the drag item(s) will be copied.
      static long Forbidden
      The drag will be cancelled.
      static long Move
      The data represented by the drag item(s) will be moved.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Forbidden

        public static final long Forbidden
        The drag will be cancelled. Use this operation to signal that this interaction would *normally* perform a different operation, but that it explicitly forbids a drop at this specific time and place. This may cause a special symbol to be displayed on the drag image.
        See Also:
        Constant Field Values
      • Copy

        public static final long Copy
        The data represented by the drag item(s) will be copied. This is the most common operation to use.
        See Also:
        Constant Field Values
      • Move

        public static final long Move
        The data represented by the drag item(s) will be moved. You may use this only if UIDropSession's allowsMoveOperation is true. Otherwise it will be treated as UIDropOperationCancel. Note that the system does not give any special meaning to this operation. The delegates of both the UIDragInteraction and UIDropInteraction must cooperate to produce the correct result. For instance, the UIDropInteraction's delegate might insert the data in the new location, and the UIDragInteraction's delegate might remove the data from the old location.
        See Also:
        Constant Field Values