public static final class WidgetAction.WidgetDropTargetDragEvent extends Object implements WidgetAction.WidgetLocationEvent
Constructor and Description |
---|
WidgetDropTargetDragEvent(long id,
DropTargetDragEvent event)
Creates a drop target drag event.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptDrag(int dragOperation) |
DataFlavor[] |
getCurrentDataFlavors() |
List<DataFlavor> |
getCurrentDataFlavorsAsList() |
int |
getDropAction() |
DropTargetContext |
getDropTargetContext() |
long |
getEventID()
Returns an event id.
|
Point |
getPoint()
Returns stored location.
|
int |
getSourceActions() |
Transferable |
getTransferable() |
boolean |
isDataFlavorSupported(DataFlavor df) |
void |
rejectDrag() |
void |
setPoint(Point point)
Sets a new location.
|
void |
translatePoint(int x,
int y)
Translates the stored location.
|
public WidgetDropTargetDragEvent(long id, DropTargetDragEvent event)
id
- the event idevent
- the Swing eventpublic long getEventID()
getEventID
in interface WidgetAction.WidgetEvent
public Point getPoint()
getPoint
in interface WidgetAction.WidgetLocationEvent
public void setPoint(Point point)
setPoint
in interface WidgetAction.WidgetLocationEvent
point
- the new locationpublic void translatePoint(int x, int y)
translatePoint
in interface WidgetAction.WidgetLocationEvent
x
- the x-axis additiony
- the y-axis additionpublic DataFlavor[] getCurrentDataFlavors()
DropTargetDragEvent
public List<DataFlavor> getCurrentDataFlavorsAsList()
DropTargetDragEvent
public boolean isDataFlavorSupported(DataFlavor df)
DropTargetDragEvent
public int getSourceActions()
DropTargetDragEvent
public int getDropAction()
DropTargetDragEvent
public Transferable getTransferable()
DropTargetDragEvent
public DropTargetContext getDropTargetContext()
DropTargetDragEvent
public void acceptDrag(int dragOperation)
DropTargetDragEvent
public void rejectDrag()
DropTargetDragEvent