|
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.AbstractDragSourceListener
public abstract class AbstractDragSourceListener
Abstract parent of all the drag source listeners
Constructor Summary | |
---|---|
AbstractDragSourceListener(java.lang.String[] transferIdArray)
Constructor for AbstractDragSourceListener. |
Method Summary | |
---|---|
protected java.lang.Object[] |
combineArraysInList(java.util.List list,
java.lang.Object[] resultingArrayType)
Combines the arrays in the passed list into one array. |
void |
dragFinished(DragSourceEvent event)
|
void |
dragSetData(DragSourceEvent event)
|
void |
dragStart(DragSourceEvent event)
|
protected IDragSourceContext |
getContext()
Returns the context. |
java.lang.String[] |
getSupportingTransferIds()
Returns the supporting transfer agent ids. |
protected abstract boolean |
isDraggable()
Checks if the selection contained in the context is draggable. |
boolean |
isDraggable(IDragSourceContext cntxt)
Determines if the selection in the context is draggable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDragSourceListener(java.lang.String[] transferIdArray)
transferIdArray
- The transfer agent idsMethod Detail |
---|
public final boolean isDraggable(IDragSourceContext cntxt)
IDragSourceListener
isDraggable
in interface IDragSourceListener
cntxt
- The context associated with the drag source
public final java.lang.String[] getSupportingTransferIds()
IDragSourceListener
getSupportingTransferIds
in interface IDragSourceListener
public final void dragStart(DragSourceEvent event)
dragStart
in interface DragSourceListener
public void dragSetData(DragSourceEvent event)
dragSetData
in interface DragSourceListener
public void dragFinished(DragSourceEvent event)
dragFinished
in interface DragSourceListener
protected final IDragSourceContext getContext()
protected abstract boolean isDraggable()
getContext()
method.
protected final java.lang.Object[] combineArraysInList(java.util.List list, java.lang.Object[] resultingArrayType)
list
- The List of arrays to combine togetherresultingArrayType
- the Object[] used to define the type of the combined array
|
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.