com.altair.hwm.toolkit.utils
Class HWMTplProps

java.lang.Object
  extended by com.altair.hwm.toolkit.utils.HWMTplProps

public class HWMTplProps
extends java.lang.Object

Title: HWMTplProps

Description: This class holds on to template specific properties like:

a> The class loader

b> The beans in the jar files

c> The workflow view props like icon only, text only etc.

Company: Altair Engineering, Inc.


Constructor Summary
HWMTplProps(java.lang.String strTplName, HWMClassLoader hwmClassLoader, int nAppType, boolean bAuthorMode)
          Constructor
 
Method Summary
 int AddRef()
          Increments the ref count
 void AddToClassPath()
          Add pmt specific jars to CP
 void BuildCategories()
          Build the categories for pmt specific beans
 void ClearAll()
           
 HWMClassLoader GetClassLoader()
          Returns this template specific CL
 HWMMenuToolBarPreferences GetMenuToolBarPreferences()
          Returns the menu toolbar preferences
 int GetRef()
          Decrements the ref count
 javax.swing.tree.DefaultTreeModel GetTemplateCategories()
          Returns this template specific categories
 java.lang.String GetTplDir()
          Returns the template dir
 java.lang.String GetTplName()
          Returns the full path name of the template
 java.util.Properties GetTplParameterValuePairs()
          Returns the properties (i.e.
 HWMTplPreferences GetTplPreferences()
          Returns a ref the template preferences
 int ReleaseRef()
          Decrements the ref count
 void SetTplParameterValuePairs(java.util.Properties propsParamVals)
          Set the properties required by the template
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMTplProps

public HWMTplProps(java.lang.String strTplName,
                   HWMClassLoader hwmClassLoader,
                   int nAppType,
                   boolean bAuthorMode)
            throws java.lang.Exception
Constructor

Parameters:
strTplName - The pmt name for which this class loader is created
hwmClassLoader - The parent class loader
nAppType - The type of application. Will be one of HWMModelInstance.APPTYPE_XXX
bAuthorMode - If true - then author mode else app mode.
Throws:
java.lang.Exception
Method Detail

AddToClassPath

public void AddToClassPath()
                    throws java.lang.Exception
Add pmt specific jars to CP

Throws:
java.lang.Exception

BuildCategories

public void BuildCategories()
                     throws java.lang.Exception
Build the categories for pmt specific beans

Throws:
java.lang.Exception

GetClassLoader

public HWMClassLoader GetClassLoader()
Returns this template specific CL

Returns:
HWMClassLoader The class loader for the template

GetTemplateCategories

public javax.swing.tree.DefaultTreeModel GetTemplateCategories()
Returns this template specific categories

Returns:
DefaultTreeModel The template specific categories & beans in them

AddRef

public int AddRef()
Increments the ref count

Returns:
int The new ref count

ReleaseRef

public int ReleaseRef()
Decrements the ref count

Returns:
int The new ref count

GetRef

public int GetRef()
Decrements the ref count

Returns:
int The new ref count

GetTplPreferences

public HWMTplPreferences GetTplPreferences()
Returns a ref the template preferences

Returns:
HWMTplPreferences

GetTplParameterValuePairs

public java.util.Properties GetTplParameterValuePairs()
Returns the properties (i.e. parameter/values) required by the template

Returns:
Properties Properties required by the template

GetMenuToolBarPreferences

public HWMMenuToolBarPreferences GetMenuToolBarPreferences()
Returns the menu toolbar preferences

Returns:
HWMMenuToolBarPreferences

GetTplName

public java.lang.String GetTplName()
Returns the full path name of the template

Returns:
String The full name

GetTplDir

public java.lang.String GetTplDir()
Returns the template dir

Returns:
String

SetTplParameterValuePairs

public void SetTplParameterValuePairs(java.util.Properties propsParamVals)
Set the properties required by the template

Parameters:
propsParamVals - The properties required by the template

ClearAll

public void ClearAll()