All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.ibm.dnd.DDSource

public interface DDSource
The interface for objects that handle DnD events for a particular drag source component.


Method Index

 o dragBegin(Point)
As a drag begins.
 o dragDropEnd(boolean)
As the user drops an object.
 o dragEnter()
As the mouse enters a target component.
 o dragExit()
As the mouse exits the target component.
 o dragOver()
As the mouse passes the target component.
 o getDragData(Point)
The DnD subsystem calls this method to get an object to drag (sometimes referred to as "drag object").
 o isDDSourceActive()
Indicates if DDSource is active.

Methods

 o dragBegin
 public abstract void dragBegin(Point point)
As a drag begins.

Parameters:
point - - point the drag started at
 o dragDropEnd
 public abstract void dragDropEnd(boolean success)
As the user drops an object.

 o dragEnter
 public abstract void dragEnter()
As the mouse enters a target component.

 o dragExit
 public abstract void dragExit()
As the mouse exits the target component.

 o dragOver
 public abstract void dragOver()
As the mouse passes the target component.

 o getDragData
 public abstract Transferable getDragData(Point point)
The DnD subsystem calls this method to get an object to drag (sometimes referred to as "drag object"). If this method returns null, the drag is not started.

Parameters:
point - point the drag is starting at
Returns:
object to drag
 o isDDSourceActive
 public abstract boolean isDDSourceActive()
Indicates if DDSource is active.

Returns:
boolean indicating if the DDSource is active

All Packages  Class Hierarchy  This Package  Previous  Next  Index