Class WidgetAction.WidgetDropTargetDropEvent
java.lang.Object
org.netbeans.api.visual.action.WidgetAction.WidgetDropTargetDropEvent
- All Implemented Interfaces:
WidgetAction.WidgetEvent
,WidgetAction.WidgetLocationEvent
- Enclosing interface:
WidgetAction
public static final class WidgetAction.WidgetDropTargetDropEvent
extends Object
implements WidgetAction.WidgetLocationEvent
Represents a drop target drop event.
-
Constructor Summary
ConstructorsConstructorDescriptionWidgetDropTargetDropEvent
(long id, DropTargetDropEvent event) Creates a drop target drop event. -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptDrop
(int dragOperation) int
long
Returns an event id.getPoint()
Returns stored location.int
boolean
boolean
void
void
Sets a new location.void
translatePoint
(int x, int y) Translates the stored location.
-
Constructor Details
-
WidgetDropTargetDropEvent
Creates a drop target drop event.- Parameters:
id
- the event idevent
- the Swing event
-
-
Method Details
-
getEventID
public long getEventID()Returns an event id.- Specified by:
getEventID
in interfaceWidgetAction.WidgetEvent
- Returns:
- the event id
-
getPoint
Returns stored location.- Specified by:
getPoint
in interfaceWidgetAction.WidgetLocationEvent
- Returns:
- the location
-
setPoint
Sets a new location. This is called by a event provider only. Do not call this method unless you know what it does exactly.- Specified by:
setPoint
in interfaceWidgetAction.WidgetLocationEvent
- Parameters:
point
- the new location
-
translatePoint
public void translatePoint(int x, int y) Translates the stored location. Do not call this method unless you know what it does exactly.- Specified by:
translatePoint
in interfaceWidgetAction.WidgetLocationEvent
- Parameters:
x
- the x-axis additiony
- the y-axis addition
-
getCurrentDataFlavors
- See Also:
-
getCurrentDataFlavorsAsList
- See Also:
-
isDataFlavorSupported
- See Also:
-
getSourceActions
public int getSourceActions()- See Also:
-
getDropAction
public int getDropAction()- See Also:
-
getTransferable
- See Also:
-
isLocalTransfer
public boolean isLocalTransfer()- See Also:
-
getDropTargetContext
- See Also:
-
acceptDrop
public void acceptDrop(int dragOperation) - See Also:
-
rejectDrop
public void rejectDrop()- See Also:
-