wt.clients.workflow.definer
Class DefinerGraphModel

java.lang.Object
  extended bywt.clients.beans.graph.DefaultGraphModel
      extended bywt.clients.workflow.definer.DefinerGraphModel
All Implemented Interfaces:
EventListener, GraphModel, PropertyChangeListener, Serializable

final class DefinerGraphModel
extends DefaultGraphModel


Field Summary
(package private) static String EDITOR
           
private  Vector linkCopyMaps
           
private static Vector linkCutBuffer
           
private  Vector nodeCopyMaps
           
private static Vector nodeCutBuffer
          Cut and paste methods below
private  Hashtable nodeHashtable
           
(package private) static String TASK
           
private static Hashtable templateTypes
           
private static String versionID
           
(package private)  WfContainerTemplateEditor wfProcessTemplateEditor
           
 
Fields inherited from class wt.clients.beans.graph.DefaultGraphModel
 
Constructor Summary
(package private) DefinerGraphModel()
           
(package private) DefinerGraphModel(WfContainerTemplateEditor container_editor)
           
 
Method Summary
 void addNode(String key, GraphNode graph_node)
           
(package private)  void addWfConnectorTemplates(WfContainerTemplateEditor container)
           
(package private)  void addWfNodeTemplateLinks(WfContainerTemplateEditor container)
           
(package private)  void addWfTemplateObjects(WfContainerTemplateEditor container)
           
(package private)  void copyAllNodes(boolean include_start)
           
(package private)  void copyNodes(GraphSelectionModel selection_model)
           
(package private)  Vector getLinkCopyMaps()
           
(package private)  Vector getNodeCopyMaps()
           
(package private)  DefinerGraphNode getStartNode()
           
private  void initializeTemplateTypes()
           
(package private)  void newCutBuffer()
           
(package private)  void pasteNodes(GraphSelectionModel selection_model, DefinerGraphModel model)
           
(package private)  void pasteNodes(GraphSelectionModel selection_model, DefinerGraphModel model, boolean expand)
           
 void removeAll()
           
 void removeNode(GraphNode graph_node)
           
 void setContainerTemplateEditor(WfContainerTemplateEditor container_editor)
           
 
Methods inherited from class wt.clients.beans.graph.DefaultGraphModel
addGraphModelListener, addLink, allLinks, allNodes, findLinks, findPredecessorLinks, findSuccessorLinks, fireGraphModelChanged, getLink, getNode, isLinkInModel, isNodeInModel, propertyChange, removeGraphModelListener, removeLink, removeLink, removeLinks, removeNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

EDITOR

static final String EDITOR
See Also:
Constant Field Values

TASK

static final String TASK
See Also:
Constant Field Values

wfProcessTemplateEditor

WfContainerTemplateEditor wfProcessTemplateEditor

nodeHashtable

private Hashtable nodeHashtable

templateTypes

private static Hashtable templateTypes

nodeCutBuffer

private static Vector nodeCutBuffer
Cut and paste methods below


nodeCopyMaps

private Vector nodeCopyMaps

linkCutBuffer

private static Vector linkCutBuffer

linkCopyMaps

private Vector linkCopyMaps
Constructor Detail

DefinerGraphModel

DefinerGraphModel(WfContainerTemplateEditor container_editor)

DefinerGraphModel

DefinerGraphModel()
Method Detail

setContainerTemplateEditor

public void setContainerTemplateEditor(WfContainerTemplateEditor container_editor)

initializeTemplateTypes

private void initializeTemplateTypes()

addWfTemplateObjects

void addWfTemplateObjects(WfContainerTemplateEditor container)

addWfConnectorTemplates

void addWfConnectorTemplates(WfContainerTemplateEditor container)

addWfNodeTemplateLinks

void addWfNodeTemplateLinks(WfContainerTemplateEditor container)

getStartNode

DefinerGraphNode getStartNode()

getNodeCopyMaps

Vector getNodeCopyMaps()

getLinkCopyMaps

Vector getLinkCopyMaps()

newCutBuffer

void newCutBuffer()

copyNodes

void copyNodes(GraphSelectionModel selection_model)
         throws WTException
Throws:
WTException

copyAllNodes

void copyAllNodes(boolean include_start)
            throws WTException
Throws:
WTException

pasteNodes

void pasteNodes(GraphSelectionModel selection_model,
                DefinerGraphModel model)

pasteNodes

void pasteNodes(GraphSelectionModel selection_model,
                DefinerGraphModel model,
                boolean expand)

addNode

public void addNode(String key,
                    GraphNode graph_node)
             throws InvalidNodeException,
                    NodeAlreadyExistException
Specified by:
addNode in interface GraphModel
Overrides:
addNode in class DefaultGraphModel
Parameters:
key -
graph_node -
Throws:
NodeAlreadyExistException
InvalidNodeException

removeNode

public void removeNode(GraphNode graph_node)
                throws NodeDoesNotExistException
Specified by:
removeNode in interface GraphModel
Overrides:
removeNode in class DefaultGraphModel
Parameters:
graph_node -
Throws:
NodeDoesNotExistException

removeAll

public void removeAll()