Class DropTargetEvent

    • Field Summary

      Fields 
      Modifier and Type Field Description
      TransferData currentDataType
      The type of data that will be dropped.
      TransferData[] dataTypes
      A list of the types of data that the DragSource is capable of providing.
      int detail
      The operation being performed.
      int feedback
      A bitwise OR'ing of the drag under effect feedback to be displayed to the user (e.g.
      Widget item
      If the associated control is a table or tree, this field contains the item located at the cursor coordinates.
      int operations
      A bitwise OR'ing of the operations that the DragSource can support (e.g.
      int x
      The x-cordinate of the cursor relative to the Display
      int y
      The y-cordinate of the cursor relative to the Display
    • Constructor Summary

      Constructors 
      Constructor Description
      DropTargetEvent​(org.eclipse.swt.dnd.DNDEvent e)
      Constructs a new instance of this class based on the information in the given untyped event.
    • Field Detail

      • x

        public int x
        The x-cordinate of the cursor relative to the Display
      • y

        public int y
        The y-cordinate of the cursor relative to the Display
      • item

        public Widget item
        If the associated control is a table or tree, this field contains the item located at the cursor coordinates.
      • currentDataType

        public TransferData currentDataType
        The type of data that will be dropped.
      • dataTypes

        public TransferData[] dataTypes
        A list of the types of data that the DragSource is capable of providing. The currentDataType must be a member of this list.
    • Constructor Detail

      • DropTargetEvent

        public DropTargetEvent​(org.eclipse.swt.dnd.DNDEvent e)
        Constructs a new instance of this class based on the information in the given untyped event.
        Parameters:
        e - the untyped event containing the information
    • Method Detail

      • toString

        public String toString()
        Returns a string containing a concise, human-readable description of the receiver.
        Overrides:
        toString in class TypedEvent
        Returns:
        a string representation of the event