Klasse CustomDropTargetAdapter
java.lang.Object
org.eclipse.swt.dnd.DropTargetAdapter
org.oxt.toolbox.helpers.CustomDropTargetAdapter
- Alle implementierten Schnittstellen:
EventListener
,org.eclipse.swt.dnd.DropTargetListener
,org.eclipse.swt.internal.SWTEventListener
public class CustomDropTargetAdapter
extends org.eclipse.swt.dnd.DropTargetAdapter
Class to define a custom drop target adapter.
Consumes a file or set of files and processes he validation of visualization.
- Autor:
- Dr. Jan C. Thiele
-
Feldübersicht
Modifizierer und TypFeldBeschreibung(Package privat) org.eclipse.swt.dnd.FileTransfer
(Package privat) org.apache.logging.log4j.Logger
(Package privat) org.eclipse.swt.widgets.Shell
(Package privat) boolean
(Package privat) boolean
-
Konstruktorübersicht
KonstruktorBeschreibungCustomDropTargetAdapter
(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.dnd.FileTransfer fileTransfer, boolean viz, boolean vali) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
drop
(org.eclipse.swt.dnd.DropTargetEvent event) Method to process dropped files.Von Klasse geerbte Methoden org.eclipse.swt.dnd.DropTargetAdapter
dragEnter, dragLeave, dragOperationChanged, dragOver, dropAccept
-
Felddetails
-
logger
org.apache.logging.log4j.Logger logger -
shell
org.eclipse.swt.widgets.Shell shell -
viz
boolean viz -
vali
boolean vali -
fileTransfer
org.eclipse.swt.dnd.FileTransfer fileTransfer
-
-
Konstruktordetails
-
CustomDropTargetAdapter
public CustomDropTargetAdapter(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.dnd.FileTransfer fileTransfer, boolean viz, boolean vali) Constructor.- Parameter:
shell
- Shell widgetfileTransfer
- drag-and-drop file transferviz
- indicator, if called for visualizationvali
- indicator, if called for validation
-
-
Methodendetails
-
drop
public void drop(org.eclipse.swt.dnd.DropTargetEvent event) Method to process dropped files. Creates either the visualization of validation report.- Angegeben von:
drop
in Schnittstelleorg.eclipse.swt.dnd.DropTargetListener
- Setzt außer Kraft:
drop
in Klasseorg.eclipse.swt.dnd.DropTargetAdapter
-