Package org.eclipse.swt.dnd
Class DropTargetEvent
java.lang.Object
java.util.EventObject
org.eclipse.swt.events.TypedEvent
org.eclipse.swt.dnd.DropTargetEvent
- All Implemented Interfaces:
Serializable
The DropTargetEvent contains the event information passed in the methods of the DropTargetListener.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe type of data that will be dropped.A list of the types of data that the DragSource is capable of providing.intThe operation being performed.intA bitwise OR'ing of the drag under effect feedback to be displayed to the user (e.g.If the associated control is a table or tree, this field contains the item located at the cursor coordinates.intA bitwise OR'ing of the operations that the DragSource can support (e.g.intThe x-cordinate of the cursor relative to theDisplayintThe y-cordinate of the cursor relative to theDisplayFields inherited from class org.eclipse.swt.events.TypedEvent
data, display, time, widgetFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDropTargetEvent(org.eclipse.swt.dnd.DNDEvent e) Constructs a new instance of this class based on the information in the given untyped event. -
Method Summary
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
x
public int xThe x-cordinate of the cursor relative to theDisplay -
y
public int yThe y-cordinate of the cursor relative to theDisplay -
detail
public int detailThe operation being performed. -
operations
public int operationsA 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. -
feedback
public int feedbackA 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
If the associated control is a table or tree, this field contains the item located at the cursor coordinates. -
currentDataType
The type of data that will be dropped. -
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 Details
-
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 Details
-
toString
Returns a string containing a concise, human-readable description of the receiver.- Overrides:
toStringin classTypedEvent- Returns:
- a string representation of the event
-