|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDropTargetListener
Interface to be implemented by providers to handle drop target events
Method Summary | |
---|---|
boolean |
canSupport(IDropTargetContext context,
IDropTargetEvent currentEvent,
ITransferAgent currentAgent)
Returns a boolean indicating whether the listener can support drop operations on the current target. |
ICommand |
getExecutableContext(DropTargetEvent event)
Returns a command for dropping the event data on the drop target. |
java.lang.String[] |
getSupportingTransferIds()
Returns the supporting transfer agent ids. |
void |
setFeedback(DropTargetEvent event)
Provides the listener an opportunity to set the feedback when hovering over a target. |
Methods inherited from interface org.eclipse.swt.dnd.DropTargetListener |
---|
dragEnter, dragLeave, dragOperationChanged, dragOver, drop, dropAccept |
Method Detail |
---|
ICommand getExecutableContext(DropTargetEvent event)
event
- the event associated with the drop event
boolean canSupport(IDropTargetContext context, IDropTargetEvent currentEvent, ITransferAgent currentAgent)
context
- The drop action contextcurrentEvent
- The current drop eventcurrentAgent
- the current transfer agent
void setFeedback(DropTargetEvent event)
event
- The drop target eventjava.lang.String[] getSupportingTransferIds()
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.