psdi.webclient.applet.wfcanvas.diagram.dnd

Class WorkflowDragSource

  • java.lang.Object
    • java.awt.dnd.DragSource
      • psdi.webclient.applet.wfcanvas.diagram.dnd.WorkflowDragSource
  • All Implemented Interfaces:
    java.io.Serializable


    public class WorkflowDragSource
    extends java.awt.dnd.DragSource
    This class is used in conjunction with DnDHandler to do drag and drop without the native system drag and drop handler which doesn't work in the Java plugin. The class starts the DnDHandler class instead of the native peer
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.awt.dnd.DragSource

        DefaultCopyDrop, DefaultCopyNoDrop, DefaultLinkDrop, DefaultLinkNoDrop, DefaultMoveDrop, DefaultMoveNoDrop
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.datatransfer.FlavorMap getFlavorMap()
      Returns the flavor map.
      void startDrag(java.awt.dnd.DragGestureEvent trigger, java.awt.Cursor dragCursor, java.awt.Image dragImage, java.awt.Point imageOffset, java.awt.datatransfer.Transferable transferable, java.awt.dnd.DragSourceListener dsl, java.awt.datatransfer.FlavorMap flavorMap)
      Starts the drag operation for a drag context
      • Methods inherited from class java.awt.dnd.DragSource

        addDragSourceListener, addDragSourceMotionListener, createDefaultDragGestureRecognizer, createDragGestureRecognizer, createDragSourceContext, getDefaultDragSource, getDragSourceListeners, getDragSourceMotionListeners, getDragThreshold, getListeners, isDragImageSupported, removeDragSourceListener, removeDragSourceMotionListener, startDrag, startDrag, startDrag
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkflowDragSource

        public WorkflowDragSource()
    • Method Detail

      • startDrag

        public void startDrag(java.awt.dnd.DragGestureEvent trigger,
                              java.awt.Cursor dragCursor,
                              java.awt.Image dragImage,
                              java.awt.Point imageOffset,
                              java.awt.datatransfer.Transferable transferable,
                              java.awt.dnd.DragSourceListener dsl,
                              java.awt.datatransfer.FlavorMap flavorMap)
                       throws java.awt.dnd.InvalidDnDOperationException
        Starts the drag operation for a drag context
        Overrides:
        startDrag in class java.awt.dnd.DragSource
        Parameters:
        trigger - The DragGestureEvent
        dragCursor - The initial cursor
        dragImage - The image to be show during dragging
        imageOffset - The offset of the image from the cursor
        transferable - The object transferred by the drop
        dsl - The drag source listener
        flavorMap - The flavor map for the transfer
        Throws:
        java.awt.dnd.InvalidDnDOperationException
      • getFlavorMap

        public java.awt.datatransfer.FlavorMap getFlavorMap()
        Returns the flavor map. This is required because the supclass has the value in a private.
        Overrides:
        getFlavorMap in class java.awt.dnd.DragSource
        Returns:
        The flavor map