|
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.drag.TransferDragSourceAdapter
public class TransferDragSourceAdapter
Parent of all the transfer drag source adapters. Every transfer type drag
source adapter should override the methods in the
DragSourceListener
interface.
Constructor Summary | |
---|---|
TransferDragSourceAdapter(ITransferAgent aTransferAgent)
Constructor for TransferDragSourceAdapter. |
Method Summary | |
---|---|
void |
dragFinished(DragSourceEvent event)
|
void |
dragSetData(DragSourceEvent event)
|
void |
dragStart(DragSourceEvent event)
|
protected IDragSourceContext |
getContext()
Returns the context. |
protected IDragSourceListener[] |
getListeners()
Returns the listeners. |
ITransferAgent |
getTransferAgent()
Returns the transfer agent associated with this transfer listener. |
void |
init(IDragSourceListener[] dragSourceListeners,
IDragSourceContext dragSourceContext)
Initializes this transfer drag source listener with the drag source listeners, registered against this transfer agent, and the drag source context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransferDragSourceAdapter(ITransferAgent aTransferAgent)
aTransferAgent
- ITransferAgent that this class is an adpater forMethod Detail |
---|
protected final IDragSourceListener[] getListeners()
protected final IDragSourceContext getContext()
public void dragFinished(DragSourceEvent event)
dragFinished
in interface DragSourceListener
public void dragSetData(DragSourceEvent event)
dragSetData
in interface DragSourceListener
public void dragStart(DragSourceEvent event)
dragStart
in interface DragSourceListener
public final void init(IDragSourceListener[] dragSourceListeners, IDragSourceContext dragSourceContext)
ITransferDragSourceListener
init
in interface ITransferDragSourceListener
dragSourceListeners
- the drag source listenersdragSourceContext
- the drag source contextpublic final ITransferAgent getTransferAgent()
ITransferDragSourceListener
getTransferAgent
in interface ITransferDragSourceListener
|
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.