LPEX
4.4.0

com.ibm.lpex.core
Class TextWindowDropTargetEffect

java.lang.Object
  extended by DropTargetEffect
      extended by com.ibm.lpex.core.TextWindowDropTargetEffect

public final class TextWindowDropTargetEffect
extends DropTargetEffect

This class extends SWT's DropTargetEffect (which provides no visual feedback) for TextWindow. It provides a drag-under effect (set drop position and scroll) during a DND drop-hoverin' taking place over a TextWindow. The class has the same API as (extends) DropTargetAdapter, so that it can provide custom visual feedback when a DropTargetEvent occurs.


Constructor Summary
TextWindowDropTargetEffect(com.ibm.lpex.core.TextWindow textWindow)
          Constructor.
 
Method Summary
 void dragEnter(DropTargetEvent event)
          The cursor has entered the TextWindow (drop target) boundaries.
 void dragLeave(DropTargetEvent event)
          The cursor has left the drop target boundaries, or the drop has been cancelled, or the data is about to be dropped.
 void dragOver(DropTargetEvent event)
          The cursor is moving over the drop target.
 void dropAccept(DropTargetEvent event)
          The drop is about to be performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextWindowDropTargetEffect

public TextWindowDropTargetEffect(com.ibm.lpex.core.TextWindow textWindow)
Constructor.

Parameters:
textWindow - the text window over which the user is moving to do the drop
Method Detail

dragEnter

public void dragEnter(DropTargetEvent event)
The cursor has entered the TextWindow (drop target) boundaries.

Parameters:
event - drag-enter event information

dragLeave

public void dragLeave(DropTargetEvent event)
The cursor has left the drop target boundaries, or the drop has been cancelled, or the data is about to be dropped.

Parameters:
event - drag-leave event information

dragOver

public void dragOver(DropTargetEvent event)
The cursor is moving over the drop target. The event's feedback value is FEEDBACK_SELECT and/or FEEDBACK_SCROLL.

Parameters:
event - drag-over event information

dropAccept

public void dropAccept(DropTargetEvent event)
The drop is about to be performed.

Parameters:
event - drop-accept event information

LPEX
4.4.0

Copyright � 2016 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.