|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ocd.dcf.dnd.DropManager
<< License Info Goes HERE >> All Rights Reserved. DragListenerAdapter Description:
Method Summary | |
protected void |
addWindow(java.awt.Window pWindow)
Add a Window that will be checked for targets during Drag Operations |
void |
dragStarted(java.awt.dnd.DragSourceContext pContext,
java.awt.Image pDragImage,
java.awt.Point pOffSet)
A DnD Session has been started, using a DragImage OffSet from the Cursor by pImageOffset |
void |
dragStopped(java.awt.event.MouseEvent pEvent)
The Dragging Operation has stopped Try and do a Drop if located over a DropTarget |
void |
eventDispatched(java.awt.AWTEvent event)
Invoked when an event is dispatched in the AWT. |
static java.awt.Image |
getComponentImage(java.awt.Component pComp)
Get an Image for a Component |
java.awt.dnd.DragSourceContext |
getCurrentDragSourceContext()
Get the DragSourceContext for the current drag operation |
java.awt.datatransfer.Transferable |
getCurrentTransferable()
Get the Transferable for the current drag operation |
static IDropManager |
getDropManager()
Get the Drop Manager Instance |
java.awt.dnd.DropTarget |
getDropTarget(java.awt.Point pLocation)
Return a Drop Component for the component at the Current Location This method should search up the component hierarchy until it finds a Drop Target |
protected void |
moveWindowToTop(java.awt.Window pWin)
Moves the Window to the top of the window list |
protected void |
removeWindow(java.awt.Window pWindow)
|
void |
setDefaultDropTarget(java.awt.dnd.DropTarget pDropTarget)
Sets the default drop target if a drag occurs over any item that is not a Drop Target. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IDropManager getDropManager()
public void dragStarted(java.awt.dnd.DragSourceContext pContext, java.awt.Image pDragImage, java.awt.Point pOffSet)
dragStarted
in interface IDropManager
pContext
- of the Drag SourcepDragImage
- Image to display during DnD operationpImageOffset
- offSet of image location from Cursor or null to use Drag Component's Locationpublic void dragStopped(java.awt.event.MouseEvent pEvent)
MouseEvent
- where the mouse was releasedpublic java.awt.datatransfer.Transferable getCurrentTransferable()
getCurrentTransferable
in interface IDropManager
public java.awt.dnd.DragSourceContext getCurrentDragSourceContext()
getCurrentDragSourceContext
in interface IDropManager
public static java.awt.Image getComponentImage(java.awt.Component pComp)
protected void addWindow(java.awt.Window pWindow)
pWindow
- window that will be checkedprotected void removeWindow(java.awt.Window pWindow)
protected void moveWindowToTop(java.awt.Window pWin)
pWin
- public void setDefaultDropTarget(java.awt.dnd.DropTarget pDropTarget)
setDefaultDropTarget
in interface IDropManager
default
- Drop Targetpublic java.awt.dnd.DropTarget getDropTarget(java.awt.Point pLocation)
getDropTarget
in interface IDropManager
Location
- look for the Drop Target in Screen Corrdinatespublic void eventDispatched(java.awt.AWTEvent event)
eventDispatched
in interface java.awt.event.AWTEventListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |