public static final class WidgetAction.WidgetDropTargetDropEvent extends Object implements WidgetAction.WidgetLocationEvent
| Constructor and Description |
|---|
WidgetDropTargetDropEvent(long id,
DropTargetDropEvent event)
Creates a drop target drop event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptDrop(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) |
boolean |
isLocalTransfer() |
void |
rejectDrop() |
void |
setPoint(Point point)
Sets a new location.
|
void |
translatePoint(int x,
int y)
Translates the stored location.
|
public WidgetDropTargetDropEvent(long id,
DropTargetDropEvent event)
id - the event idevent - the Swing eventpublic long getEventID()
getEventID in interface WidgetAction.WidgetEventpublic Point getPoint()
getPoint in interface WidgetAction.WidgetLocationEventpublic void setPoint(Point point)
setPoint in interface WidgetAction.WidgetLocationEventpoint - the new locationpublic void translatePoint(int x,
int y)
translatePoint in interface WidgetAction.WidgetLocationEventx - the x-axis additiony - the y-axis additionpublic DataFlavor[] getCurrentDataFlavors()
DropTargetDropEventpublic List<DataFlavor> getCurrentDataFlavorsAsList()
DropTargetDropEventpublic boolean isDataFlavorSupported(DataFlavor df)
DropTargetDropEventpublic int getSourceActions()
DropTargetDropEventpublic int getDropAction()
DropTargetDropEventpublic Transferable getTransferable()
DropTargetDropEventpublic boolean isLocalTransfer()
DropTargetDropEventpublic DropTargetContext getDropTargetContext()
DropTargetDropEventpublic void acceptDrop(int dragOperation)
DropTargetDropEventpublic void rejectDrop()
DropTargetDropEventBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.