Interface DNDProvider
-
- All Known Subinterfaces:
TableViewerSWTCustomization<T>
- All Known Implementing Classes:
DefaultTableControlSWTCustomization
public interface DNDProvider
Interface to influence the D&D support which is added to the table viewer.- Author:
- Johannes Faltermeier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.swt.dnd.DragSourceListener
getDragListener(org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
Returns theDragSourceListener
used to setup thedrag support
for the viewer.int
getDragOperations()
Returns the drag operations bits used to setup thedrag support
for the viewer.org.eclipse.swt.dnd.Transfer[]
getDragTransferTypes()
Returns the drag transfer types used to setup thedrag support
for the viewer.org.eclipse.swt.dnd.DropTargetListener
getDropListener(org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
Returns theDragSourceListener
used to setup thedrop support
for the viewer.int
getDropOperations()
Returns the drag operations bits used to setup thedrop support
for the viewer.org.eclipse.swt.dnd.Transfer[]
getDropTransferTypes()
Returns the drag transfer types used to setup thedrop support
for the viewer.boolean
hasDND()
Whether DND support should be added to the table.
-
-
-
Method Detail
-
hasDND
boolean hasDND()
Whether DND support should be added to the table.- Returns:
true
if DND will be added, based on the other methods of this interface, orfalse
if DND should not be added
-
getDragOperations
int getDragOperations()
Returns the drag operations bits used to setup thedrag support
for the viewer.- Returns:
- the drag operations
-
getDragTransferTypes
org.eclipse.swt.dnd.Transfer[] getDragTransferTypes()
Returns the drag transfer types used to setup thedrag support
for the viewer.- Returns:
- the drag
transfer types
-
getDragListener
org.eclipse.swt.dnd.DragSourceListener getDragListener(org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
Returns theDragSourceListener
used to setup thedrag support
for the viewer.- Parameters:
tableViewer
- the AbstractTableViewer- Returns:
- the listener
-
getDropOperations
int getDropOperations()
Returns the drag operations bits used to setup thedrop support
for the viewer.- Returns:
- the drop operations
-
getDropTransferTypes
org.eclipse.swt.dnd.Transfer[] getDropTransferTypes()
Returns the drag transfer types used to setup thedrop support
for the viewer.- Returns:
- the drop
transfer types
-
getDropListener
org.eclipse.swt.dnd.DropTargetListener getDropListener(org.eclipse.jface.viewers.AbstractTableViewer tableViewer)
Returns theDragSourceListener
used to setup thedrop support
for the viewer.- Parameters:
tableViewer
- the AbstractTableViewer- Returns:
- the listener
-
-