public class WorkflowNodeProxy
extends java.lang.Object
implements java.awt.datatransfer.Transferable, java.io.Serializable
This class holds a node in the workflow
Modifier and Type | Field and Description |
---|---|
static java.awt.datatransfer.DataFlavor |
nodeFlavor
The non-serialized data flavor
|
Constructor and Description |
---|
WorkflowNodeProxy(WorkflowNode node,
boolean copying)
Constructs a workflow node proxy
|
Modifier and Type | Method and Description |
---|---|
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
|
public static java.awt.datatransfer.DataFlavor nodeFlavor
public WorkflowNodeProxy(WorkflowNode node, boolean copying)
id
- The node idcopying
- The copying flagpublic WorkflowNode getNode()
public boolean isCopying()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
getTransferData
in interface java.awt.datatransfer.Transferable
flavor
- The passed data flavorjava.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
flavor
- The flavor to test