org.eclipse.net4j.util.ui.dnd
Class DNDDragListener<TYPE>

java.lang.Object
  extended by org.eclipse.swt.dnd.DragSourceAdapter
      extended by org.eclipse.net4j.util.ui.dnd.DNDDragListener<TYPE>
All Implemented Interfaces:
EventListener, DragSourceListener, org.eclipse.swt.internal.SWTEventListener

public abstract class DNDDragListener<TYPE>
extends DragSourceAdapter

Author:
Eike Stepper

Constructor Summary
protected DNDDragListener(Transfer[] transfers, StructuredViewer viewer)
           
 
Method Summary
 void dragSetData(DragSourceEvent event)
          This implementation of dragSetData does nothing.
 void dragStart(DragSourceEvent event)
          This implementation of dragStart permits the drag operation to start.
protected abstract  TYPE getObject(IStructuredSelection selection)
           
 Transfer[] getTransfers()
           
 StructuredViewer getViewer()
           
 
Methods inherited from class org.eclipse.swt.dnd.DragSourceAdapter
dragFinished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNDDragListener

protected DNDDragListener(Transfer[] transfers,
                          StructuredViewer viewer)
Since:
3.0
Method Detail

getTransfers

public Transfer[] getTransfers()
Since:
3.0

getViewer

public StructuredViewer getViewer()

dragSetData

public void dragSetData(DragSourceEvent event)
Description copied from class: org.eclipse.swt.dnd.DragSourceAdapter
This implementation of dragSetData does nothing. For additional information see DragSourceListener.dragSetData.

Specified by:
dragSetData in interface DragSourceListener
Overrides:
dragSetData in class DragSourceAdapter
Parameters:
event - the information associated with the drag set data event
See Also:
DragSourceEvent

dragStart

public void dragStart(DragSourceEvent event)
Description copied from class: org.eclipse.swt.dnd.DragSourceAdapter
This implementation of dragStart permits the drag operation to start. For additional information see DragSourceListener.dragStart.

Specified by:
dragStart in interface DragSourceListener
Overrides:
dragStart in class DragSourceAdapter
Parameters:
event - the information associated with the drag start event
See Also:
DragSourceEvent

getObject

protected abstract TYPE getObject(IStructuredSelection selection)


Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.