|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.frame.HWMFrameModel
com.altair.hwm.toolkit.frame.HWMAppFrameModel
public class HWMAppFrameModel
Title: HWMAppFrameModel
Description: The model for the app frame
Company: Altair Engineering, Inc.
Field Summary |
---|
Fields inherited from class com.altair.hwm.toolkit.frame.HWMFrameModel |
---|
PROP_FRAME_MODELACTIVE |
Constructor Summary | |
---|---|
HWMAppFrameModel(java.awt.Component frameEPIC,
IHWMFrame ihwmFrame)
Constructor |
Method Summary | |
---|---|
HWMTplProps |
GetActiveTplProps()
Get the process definition properties for the currently active model instance |
int |
GetAppType()
Rteurn the application type |
java.lang.String |
GetDefaultTemplateName()
Return the default process definition to use |
java.lang.String |
GetDefaultTemplateNameWOExtension()
Return the default process definition without extension |
HWMClassLoader |
GetFrameWorkClassLoader()
Gets ClassLaoder from HWMframemodel. |
IHWMUserExit |
GetUserExit()
Get the instance of the user exit |
void |
Init()
Initialize the app frame model Add the mandatory jars to CP |
boolean |
IsDesignerMode()
Returns a flag if its designer or app mode. |
boolean |
IsTemplateHDMEnabled()
Checks if the template is HDM enabled |
void |
OnMigrateProject(java.lang.String strProject,
java.lang.String strNewTemplate)
Migrates the old project file to follow the new process definition. |
HWMModelInstance |
OnNewFile(java.lang.String strFileName)
Creates the new file |
HWMModelInstance |
OnOpenFile(java.lang.String strFileName,
boolean bForce)
Open the file with given name |
void |
SetActiveInstance(HWMModelInstance hwmModelInstance)
Sets the active instance. |
void |
SetDefaultTemplate(java.lang.String strDefTpl)
Set the default process definition that should be used in app mode |
Methods inherited from class com.altair.hwm.toolkit.frame.HWMFrameModel |
---|
addPropertyChangeListener, ClearAll, GetActiveModelInstance, GetEPICFrame, GetHWPMInteraction, GetIHWMFrame, GetInstance, GetInstanceIndex, GetModelInstances, GetNumModelInstances, GetTplProps, Initialize, IsPMMode, OnCloseFile, OnExit, OnSaveAsFile, OnSaveFile, propertyChange, Quit, removePropertyChangeListener, SetActiveInstance, SetActiveInstance, SetHWPMInteraction |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMAppFrameModel(java.awt.Component frameEPIC, IHWMFrame ihwmFrame)
frameEPIC
- The main frame for EPICihwmFrame
- The handle to IHWMFrame interface
java.lang.Exception
Method Detail |
---|
public HWMTplProps GetActiveTplProps()
GetActiveTplProps
in class HWMFrameModel
public java.lang.String GetDefaultTemplateName()
public java.lang.String GetDefaultTemplateNameWOExtension()
public void Init() throws java.lang.Exception
java.lang.Exception
public void SetDefaultTemplate(java.lang.String strDefTpl) throws java.lang.Exception
strDefTpl
- The default process definition name
java.lang.Exception
public int GetAppType()
public HWMModelInstance OnNewFile(java.lang.String strFileName) throws java.lang.Exception
strFileName
- The name of the new file to create
java.lang.Exception
public HWMModelInstance OnOpenFile(java.lang.String strFileName, boolean bForce) throws java.io.FileNotFoundException, java.lang.Exception
strFileName
- The name of the file to openbForce
- If true, the prj is opened using the def pmt even if the
pmt file name in prj does not match with the def pmt name
java.io.FileNotFoundException
- - Thrown when the pmt file cannot be
found
Exception - when any other error occurs
java.lang.Exception
public boolean IsDesignerMode()
IsDesignerMode
in class HWMFrameModel
public void OnMigrateProject(java.lang.String strProject, java.lang.String strNewTemplate) throws java.lang.Exception
strProject
- -- The name of the project to migratestrNewTemplate
- -- The new process definition to be followed
java.lang.Exception
- - when any other error occurspublic IHWMUserExit GetUserExit()
public void SetActiveInstance(HWMModelInstance hwmModelInstance) throws java.lang.Exception
SetActiveInstance
in class HWMFrameModel
hwmModelInstance
- The current model instance
java.lang.Exception
public boolean IsTemplateHDMEnabled()
public HWMClassLoader GetFrameWorkClassLoader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |