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.
-
dragBegin(Point)
- As a drag begins.
-
dragDropEnd(boolean)
- As the user drops an object.
-
dragEnter()
- As the mouse enters a target component.
-
dragExit()
- As the mouse exits the target component.
-
dragOver()
- As the mouse passes the target component.
-
getDragData(Point)
- The DnD subsystem calls this method to get an object to drag
(sometimes referred to as "drag object").
-
isDDSourceActive()
- Indicates if DDSource is active.
dragBegin
public abstract void dragBegin(Point point)
- As a drag begins.
- Parameters:
- point - - point the drag started at
dragDropEnd
public abstract void dragDropEnd(boolean success)
- As the user drops an object.
dragEnter
public abstract void dragEnter()
- As the mouse enters a target component.
dragExit
public abstract void dragExit()
- As the mouse exits the target component.
dragOver
public abstract void dragOver()
- As the mouse passes the target component.
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
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