DropTargetListener.dragOver

The cursor is moving over the drop target.

<p>The following fields in the DropTargetEvent apply: <ul> <li>(in)widget <li>(in)time <li>(in)x <li>(in)y <li>(in)dataTypes <li>(in,out)currentDataType <li>(in)operations <li>(in,out)detail <li>(in,out)feedback </ul></p>

<p>The <code>operation</code> value is determined by the value assigned to <code>currentDataType</code> in previous dragEnter and dragOver calls.</p>

<p>The <code>currentDataType</code> value is determined by the value assigned to <code>currentDataType</code> in previous dragEnter and dragOver calls.</p>

<p>The application can change the operation that will be performed by modifying the <code>detail</code> field but the choice must be one of the values in the <code>operations</code> field.</p>

<p>The application can also change the type of data being requested by modifying the <code>currentDataTypes</code> field but the value must be one of the values in the <code>dataTypes</code> list.</p>

<p>NOTE: At this point the <code>data</code> field is null. On some platforms, it is possible to obtain the data being transferred before the transfer occurs but in most platforms this is not possible. On those platforms where the data is available, the application can access the data as follows:</p>

<pre><code> public void dragOver(DropTargetEvent event) { TextTransfer textTransfer = TextTransfer.getInstance(); String data = (String)textTransfer.nativeToJava(event.currentDataType); if (data !is null) { System.out.println("Data to be dropped is (Text)"+data); } }; </code></pre>

@param event the information associated with the drag over event

@see DropTargetEvent

interface DropTargetListener
void
dragOver

Meta