站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

WidgetAction.WidgetDropTargetDropEvent (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.action
Class WidgetAction.WidgetDropTargetDropEvent

java.lang.Object
  extended by 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
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

WidgetAction.WidgetDropTargetDropEvent

public WidgetAction.WidgetDropTargetDropEvent(long id,
                                              DropTargetDropEvent event)
Creates a drop target drop event.

Parameters:
id - the event id
event - the Swing event
Method Detail

getEventID

public long getEventID()
Returns an event id.

Specified by:
getEventID in interface WidgetAction.WidgetEvent
Returns:
the event id

getPoint

public Point getPoint()
Returns stored location.

Specified by:
getPoint in interface WidgetAction.WidgetLocationEvent
Returns:
the location

setPoint

public void setPoint(Point point)
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 interface WidgetAction.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 interface WidgetAction.WidgetLocationEvent
Parameters:
x - the x-axis addition
y - the y-axis addition

getCurrentDataFlavors

public DataFlavor[] getCurrentDataFlavors()
See Also:
DropTargetDropEvent

getCurrentDataFlavorsAsList

public List<DataFlavor> getCurrentDataFlavorsAsList()
See Also:
DropTargetDropEvent

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor df)
See Also:
DropTargetDropEvent

getSourceActions

public int getSourceActions()
See Also:
DropTargetDropEvent

getDropAction

public int getDropAction()
See Also:
DropTargetDropEvent

getTransferable

public Transferable getTransferable()
See Also:
DropTargetDropEvent

isLocalTransfer

public boolean isLocalTransfer()
See Also:
DropTargetDropEvent

getDropTargetContext

public DropTargetContext getDropTargetContext()
See Also:
DropTargetDropEvent

acceptDrop

public void acceptDrop(int dragOperation)
See Also:
DropTargetDropEvent

rejectDrop

public void rejectDrop()
See Also:
DropTargetDropEvent

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.