|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.ui.services.dnd.drop.TransferDropTargetAdapter
public class TransferDropTargetAdapter
Parent of all the transfer drop target adapters. Every transfer type drop
target adapter should override the methods in the
DropTargetListener
interface.
Constructor Summary | |
---|---|
TransferDropTargetAdapter(ITransferAgent aTransferAgent)
Constructor for TransferDropTargetAdapter. |
Method Summary | |
---|---|
boolean |
canSupport(DropTargetEvent event)
Returns whether the drop operation for the current drop event is supported by this listener. |
protected boolean |
canSupportTransferData(DropTargetEvent event)
Checks if the transfer agent can support one of the transfer datas passed into the event. |
void |
dragEnter(DropTargetEvent event)
|
void |
dragLeave(DropTargetEvent event)
|
void |
dragOperationChanged(DropTargetEvent event)
|
void |
dragOver(DropTargetEvent event)
|
void |
drop(DropTargetEvent event)
|
void |
dropAccept(DropTargetEvent event)
|
protected IDropTargetContext |
getContext()
Returns the context. |
protected IDropTargetListener |
getListener()
Returns the listener. |
ITransferAgent |
getTransferAgent()
Returns the transfer agent. |
void |
init(IDropTargetContext initialContext)
Initializes this transfer drop target listener with the drop target context that provides the target and location information during the drag/drop operation. |
protected boolean |
isSupportingListenerAvailable()
Check if a supporting listener is available.It also updates the current listener cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransferDropTargetAdapter(ITransferAgent aTransferAgent)
aTransferAgent
- The transfer agentMethod Detail |
---|
public void dragEnter(DropTargetEvent event)
dragEnter
in interface DropTargetListener
public void dragLeave(DropTargetEvent event)
dragLeave
in interface DropTargetListener
public void dragOperationChanged(DropTargetEvent event)
dragOperationChanged
in interface DropTargetListener
public void dragOver(DropTargetEvent event)
dragOver
in interface DropTargetListener
public final void drop(DropTargetEvent event)
drop
in interface DropTargetListener
public void dropAccept(DropTargetEvent event)
dropAccept
in interface DropTargetListener
protected final IDropTargetListener getListener()
protected final IDropTargetContext getContext()
public final void init(IDropTargetContext initialContext)
ITransferDropTargetListener
init
in interface ITransferDropTargetListener
initialContext
- the drop target contextpublic final ITransferAgent getTransferAgent()
getTransferAgent
in interface ITransferDropTargetListener
public boolean canSupport(DropTargetEvent event)
ITransferDropTargetListener
IDropActionContext
and the current drop target listener
when this method is invoked.
canSupport
in interface ITransferDropTargetListener
event
- The drop target event
protected final boolean isSupportingListenerAvailable()
protected final boolean canSupportTransferData(DropTargetEvent event)
event
- the drop target event
|
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.