psdi.webclient.applet.wfcanvas.diagram.editable

Interface DnDContainer

  • All Known Implementing Classes:
    EditableDiagram, WorkflowApplet


    public interface DnDContainer

    This interface allows communication between the editable nodes and the drag container.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void clearCursor()
      Clears the container's cursor - this is necessary for the re-written DnD whcih doesn't use the system handler
      void dropComplete(psdi.webclient.applet.wfcanvas.WorkflowNode sourceNode, psdi.webclient.applet.wfcanvas.WorkflowNode dropNode)
      Called when one node is dropped over another
      java.awt.datatransfer.Transferable getProxy(DiagramWorkflowNode node)
      Constructs the correct proxy for dragging
      boolean isDropSupported()
      Returns whether a node can be dropped on another in the container
    • Method Detail

      • getProxy

        java.awt.datatransfer.Transferable getProxy(DiagramWorkflowNode node)
        Constructs the correct proxy for dragging
        Parameters:
        node - The node to be dragged
        Returns:
        The transferable
      • isDropSupported

        boolean isDropSupported()
        Returns whether a node can be dropped on another in the container
        Returns:
        true If drop is supported
      • dropComplete

        void dropComplete(psdi.webclient.applet.wfcanvas.WorkflowNode sourceNode,
                          psdi.webclient.applet.wfcanvas.WorkflowNode dropNode)
        Called when one node is dropped over another
        Parameters:
        sourceNode - The Node being dragged
        dropNode - The node dropped over
      • clearCursor

        void clearCursor()
        Clears the container's cursor - this is necessary for the re-written DnD whcih doesn't use the system handler