psdi.webclient.applet.wfcanvas.diagram.editable

Class WorkflowNodeProxy

  • java.lang.Object
    • psdi.webclient.applet.wfcanvas.diagram.editable.WorkflowNodeProxy
  • All Implemented Interfaces:
    java.awt.datatransfer.Transferable, java.io.Serializable


    public class WorkflowNodeProxy
    extends java.lang.Object
    implements java.awt.datatransfer.Transferable, java.io.Serializable

    This class holds a node in the workflow

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected boolean copying
      Copy mode flag for the toolbar drag items
      protected psdi.webclient.applet.wfcanvas.WorkflowNode node
      The workflow node
      static java.awt.datatransfer.DataFlavor nodeFlavor
      The non-serialized data flavor
    • Constructor Summary

      Constructors 
      Constructor and Description
      WorkflowNodeProxy(psdi.webclient.applet.wfcanvas.WorkflowNode node, boolean copying)
      Constructs a workflow node proxy
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected static void constructFlavors()
      Constructs the node flavors
      psdi.webclient.applet.wfcanvas.WorkflowNode getNode()
      Gets the node id
      java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
      Gets the data corresponding the passed flavor.
      java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
      Returns all the supported data flavors
      boolean isCopying()
      Gets the copying flag.
      boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
      Determines whether a flavor is supported
      java.lang.String toString()
      Returns the string representation of the proxy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • node

        protected psdi.webclient.applet.wfcanvas.WorkflowNode node
        The workflow node
      • copying

        protected boolean copying
        Copy mode flag for the toolbar drag items
      • nodeFlavor

        public static java.awt.datatransfer.DataFlavor nodeFlavor
        The non-serialized data flavor
    • Constructor Detail

      • WorkflowNodeProxy

        public WorkflowNodeProxy(psdi.webclient.applet.wfcanvas.WorkflowNode node,
                                 boolean copying)
        Constructs a workflow node proxy
        Parameters:
        id - The node id
        copying - The copying flag
    • Method Detail

      • getNode

        public psdi.webclient.applet.wfcanvas.WorkflowNode getNode()
        Gets the node id
        Returns:
        The node id
      • isCopying

        public boolean isCopying()
        Gets the copying flag. If true the node must be copied regardless of the drag indicator
        Returns:
        The copy flag
      • toString

        public java.lang.String toString()
        Returns the string representation of the proxy
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation
      • getTransferData

        public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                         throws java.awt.datatransfer.UnsupportedFlavorException,
                                                java.io.IOException
        Gets the data corresponding the passed flavor.
        Specified by:
        getTransferData in interface java.awt.datatransfer.Transferable
        Parameters:
        flavor - The passed data flavor
        Returns:
        The object or null if no data in that flavor
        Throws:
        java.awt.datatransfer.UnsupportedFlavorException
        java.io.IOException
      • getTransferDataFlavors

        public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
        Returns all the supported data flavors
        Specified by:
        getTransferDataFlavors in interface java.awt.datatransfer.Transferable
        Returns:
        The list of supported flavors
      • isDataFlavorSupported

        public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
        Determines whether a flavor is supported
        Specified by:
        isDataFlavorSupported in interface java.awt.datatransfer.Transferable
        Parameters:
        flavor - The flavor to test
        Returns:
        True if supprted and false otherwise
      • constructFlavors

        protected static void constructFlavors()
        Constructs the node flavors