|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.dnd.DelegatingDropAdapter
public class DelegatingDropAdapter
DelegatingDropAdapter
Constructor Summary | |
---|---|
DelegatingDropAdapter(TransferDropTargetListener[] listeners)
Creates a new delegating drop adapter. |
Method Summary | |
---|---|
void |
dragEnter(org.eclipse.swt.dnd.DropTargetEvent event)
The cursor has entered the drop target boundaries. |
void |
dragLeave(org.eclipse.swt.dnd.DropTargetEvent event)
The cursor has left the drop target boundaries. |
void |
dragOperationChanged(org.eclipse.swt.dnd.DropTargetEvent event)
The operation being performed has changed (usually due to the user changing a drag modifier key while dragging). |
void |
dragOver(org.eclipse.swt.dnd.DropTargetEvent event)
The cursor is moving over the drop target. |
void |
drop(org.eclipse.swt.dnd.DropTargetEvent event)
Forwards this event to the current listener, if there is one. |
void |
dropAccept(org.eclipse.swt.dnd.DropTargetEvent event)
Forwards this event to the current listener if there is one. |
org.eclipse.swt.dnd.Transfer[] |
getTransfers()
Returns the combined set of Transfer types of all
TransferDropTargetListeners . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingDropAdapter(TransferDropTargetListener[] listeners)
listeners
- an array of potential listenersMethod Detail |
---|
public void dragEnter(org.eclipse.swt.dnd.DropTargetEvent event)
#dragEnter()
is forwarded to the current
listener.
dragEnter
in interface org.eclipse.swt.dnd.DropTargetListener
event
- the drop target eventDropTargetListener.dragEnter(DropTargetEvent)
public void dragLeave(org.eclipse.swt.dnd.DropTargetEvent event)
dragLeave
in interface org.eclipse.swt.dnd.DropTargetListener
event
- the drop target eventDropTargetListener.dragLeave(DropTargetEvent)
public void dragOperationChanged(org.eclipse.swt.dnd.DropTargetEvent event)
dragOperationChanged
in interface org.eclipse.swt.dnd.DropTargetListener
event
- the drop target eventDropTargetListener.dragOperationChanged(DropTargetEvent)
public void dragOver(org.eclipse.swt.dnd.DropTargetEvent event)
event.detail
field is set to
DND.DROP_NONE
to indicate an invalid drop.
dragOver
in interface org.eclipse.swt.dnd.DropTargetListener
event
- the drop target eventDropTargetListener.dragOver(DropTargetEvent)
public void drop(org.eclipse.swt.dnd.DropTargetEvent event)
null
afterwards.
drop
in interface org.eclipse.swt.dnd.DropTargetListener
event
- the drop target eventDropTargetListener.drop(DropTargetEvent)
public void dropAccept(org.eclipse.swt.dnd.DropTargetEvent event)
dropAccept
in interface org.eclipse.swt.dnd.DropTargetListener
event
- the drop target eventDropTargetListener.dropAccept(DropTargetEvent)
public org.eclipse.swt.dnd.Transfer[] getTransfers()
Transfer
types of all
TransferDropTargetListeners
.
Transfer
types
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |