|
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 agent| Method Detail |
|---|
public void dragEnter(DropTargetEvent event)
dragEnter in interface DropTargetListenerpublic void dragLeave(DropTargetEvent event)
dragLeave in interface DropTargetListenerpublic void dragOperationChanged(DropTargetEvent event)
dragOperationChanged in interface DropTargetListenerpublic void dragOver(DropTargetEvent event)
dragOver in interface DropTargetListenerpublic final void drop(DropTargetEvent event)
drop in interface DropTargetListenerpublic void dropAccept(DropTargetEvent event)
dropAccept in interface DropTargetListenerprotected final IDropTargetListener getListener()
protected final IDropTargetContext getContext()
public final void init(IDropTargetContext initialContext)
ITransferDropTargetListener
init in interface ITransferDropTargetListenerinitialContext - the drop target contextpublic final ITransferAgent getTransferAgent()
getTransferAgent in interface ITransferDropTargetListenerpublic boolean canSupport(DropTargetEvent event)
ITransferDropTargetListenerIDropActionContext and the current drop target listener
when this method is invoked.
canSupport in interface ITransferDropTargetListenerevent - 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.