Package org.eclipse.swt.dnd
Class DropTargetEvent
- java.lang.Object
-
- SWTEventObject
-
- org.eclipse.swt.events.TypedEvent
-
- org.eclipse.swt.dnd.DropTargetEvent
-
public class DropTargetEvent extends TypedEvent
The DropTargetEvent contains the event information passed in the methods of the DropTargetListener.- Since:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description TransferDatacurrentDataTypeThe type of data that will be dropped.TransferData[]dataTypesA list of the types of data that the DragSource is capable of providing.intdetailThe operation being performed.intfeedbackA bitwise OR'ing of the drag under effect feedback to be displayed to the user (e.g.WidgetitemIf the associated control is a table or tree, this field contains the item located at the cursor coordinates.intoperationsA bitwise OR'ing of the operations that the DragSource can support (e.g.intxThe x-cordinate of the cursor relative to theDisplayintyThe y-cordinate of the cursor relative to theDisplay-
Fields inherited from class org.eclipse.swt.events.TypedEvent
data, display, time, widget
-
-
Constructor Summary
Constructors Constructor Description DropTargetEvent(DNDEvent e)Constructs a new instance of this class based on the information in the given untyped event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
x
public int x
The x-cordinate of the cursor relative to theDisplay
-
y
public int y
The y-cordinate of the cursor relative to theDisplay
-
detail
public int detail
The operation being performed.- See Also:
DND.DROP_NONE,DND.DROP_MOVE,DND.DROP_COPY,DND.DROP_LINK,DND.DROP_DEFAULT
-
operations
public int operations
A bitwise OR'ing of the operations that the DragSource can support (e.g. DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK). The detail value must be a member of this list or DND.DROP_NONE.- See Also:
DND.DROP_NONE,DND.DROP_MOVE,DND.DROP_COPY,DND.DROP_LINK,DND.DROP_DEFAULT
-
feedback
public int feedback
A bitwise OR'ing of the drag under effect feedback to be displayed to the user (e.g. DND.FEEDBACK_SELECT | DND.FEEDBACK_SCROLL | DND.FEEDBACK_EXPAND).A value of DND.FEEDBACK_NONE indicates that no drag under effect will be displayed.
Feedback effects will only be applied if they are applicable.
The default value is DND.FEEDBACK_SELECT.
-
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.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classTypedEvent
-
-