org.eclipse.ecf.presence.ui.dnd
Interface IRosterViewerDropTarget

All Known Implementing Classes:
URLRosterViewerDropTarget

public interface IRosterViewerDropTarget

Roster viewer drop target. This interface defines the required methods for implementers of the rosterViewerDropTarget extension point.


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 transferData)
          Validates dropping on the given roster item.
 

Method Detail

validateDrop

boolean validateDrop(IRosterItem rosterItem,
                     int operation,
                     org.eclipse.swt.dnd.TransferData transferData)
Validates dropping on the given roster item. This method is called whenever some aspect of the drop operation changes.

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.)
transferData - the current transfer type
Returns:
true if the drop is valid, and false otherwise

performDrop

boolean performDrop(java.lang.Object data)
Performs any work associated with the drop.

Parameters:
data - the drop data
Returns:
true if the drop was successful, and false otherwise