it.eng.spago.workflow.worklist
Class Javascript

java.lang.Object
  extended by it.eng.spago.workflow.worklist.Javascript

public class Javascript
extends java.lang.Object

Author:
zoppello An utility Class to generate Javascript code to generate trees in JSP Page This class generate code for dTree javascript library

Constructor Summary
Javascript()
           
 
Method Summary
static java.lang.String createPackagesTree(IWorkflowConnection wfConn, java.util.List packages)
          This method generate the Javascript code to render a Tree in Web pages given a IWorkflowConnection and a list of packages to render
static java.lang.String createPackagesTree(IWorkflowConnection wfConn, java.util.List packages, java.lang.String imgFolder)
          This method generate the Javascript code to render a Tree in Web pages given a IWorkflowConnection and a list of packages to render, It renders the packages and the process definitions for each package
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Javascript

public Javascript()
Method Detail

createPackagesTree

public static java.lang.String createPackagesTree(IWorkflowConnection wfConn,
                                                  java.util.List packages)
This method generate the Javascript code to render a Tree in Web pages given a IWorkflowConnection and a list of packages to render

Parameters:
wfConn - - A Workflow Connection Object (See SpagoWorkflowAPI)
packages - - The list of the packages to be included in Javascript Tree
Returns:
Generate the Javascript code to render trees in Web pages

createPackagesTree

public static java.lang.String createPackagesTree(IWorkflowConnection wfConn,
                                                  java.util.List packages,
                                                  java.lang.String imgFolder)
This method generate the Javascript code to render a Tree in Web pages given a IWorkflowConnection and a list of packages to render, It renders the packages and the process definitions for each package

Parameters:
wfConn - - A Workflow Connection Object (See SpagoWorkflowAPI)
packages - - The list of the packages to render
imgFolder - - The path used to get the images associated to the tree nodes
Returns: