org.eclipse.ecf.presence.collab.ui.url
Class URLRosterViewerDropTarget

java.lang.Object
  extended by org.eclipse.ecf.presence.collab.ui.url.URLRosterViewerDropTarget
All Implemented Interfaces:
IRosterViewerDropTarget

public class URLRosterViewerDropTarget
extends java.lang.Object
implements IRosterViewerDropTarget


Constructor Summary
URLRosterViewerDropTarget()
           
 
Method Summary
 boolean performDrop(java.lang.Object data)
          Performs any work associated with the drop.
 boolean validateDrop(IRosterItem rosterItem, int operation, org.eclipse.swt.dnd.TransferData transferType)
          Validates dropping on the given roster item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLRosterViewerDropTarget

public URLRosterViewerDropTarget()
Method Detail

performDrop

public boolean performDrop(java.lang.Object data)
Description copied from interface: IRosterViewerDropTarget
Performs any work associated with the drop.

Specified by:
performDrop in interface IRosterViewerDropTarget
Parameters:
data - the drop data
Returns:
true if the drop was successful, and false otherwise

validateDrop

public boolean validateDrop(IRosterItem rosterItem,
                            int operation,
                            org.eclipse.swt.dnd.TransferData transferType)
Description copied from interface: IRosterViewerDropTarget
Validates dropping on the given roster item. This method is called whenever some aspect of the drop operation changes.

Specified by:
validateDrop in interface IRosterViewerDropTarget
Parameters:
rosterItem - the roster item that the mouse is currently hovering over, or null if the mouse is hovering over empty space
operation - the current drag operation (copy, move, etc.)
transferType - the current transfer type
Returns:
true if the drop is valid, and false otherwise