|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.action.WidgetAction.WidgetDropTargetDropEvent
public static final class WidgetAction.WidgetDropTargetDropEvent
Represents a drop target drop event.
Constructor Summary | |
---|---|
WidgetAction.WidgetDropTargetDropEvent(long id,
DropTargetDropEvent event)
Creates a drop target drop event. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WidgetAction.WidgetDropTargetDropEvent(long id, DropTargetDropEvent event)
id
- the event idevent
- the Swing eventMethod Detail |
---|
public 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()
DropTargetDropEvent
public List<DataFlavor> getCurrentDataFlavorsAsList()
DropTargetDropEvent
public boolean isDataFlavorSupported(DataFlavor df)
DropTargetDropEvent
public int getSourceActions()
DropTargetDropEvent
public int getDropAction()
DropTargetDropEvent
public Transferable getTransferable()
DropTargetDropEvent
public boolean isLocalTransfer()
DropTargetDropEvent
public DropTargetContext getDropTargetContext()
DropTargetDropEvent
public void acceptDrop(int dragOperation)
DropTargetDropEvent
public void rejectDrop()
DropTargetDropEvent
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |