|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.altair.hwm.toolkit.page.HWMModelInstance
com.altair.hwm.toolkit.page.HWMDsgnModelInstance
public class HWMDsgnModelInstance
Title: HWMDsgnModelInstance
Description: The model instance for the design mode
Company: Altair Engineering, Inc.
| Field Summary |
|---|
| Fields inherited from class com.altair.hwm.toolkit.page.HWMModelInstance |
|---|
APPTYPE_APP, APPTYPE_TODO, PROP_MODEL_PRJNAME, PROP_MODEL_TPLNAME, PROP_TPLDISPLAY_NAME, VERSION_PRJ, VERSION_TPL |
| Constructor Summary | |
|---|---|
HWMDsgnModelInstance(java.awt.Component frameEPIC,
IHWMFrame iHWMFrame)
Constructor |
|
| Method Summary | |
|---|---|
void |
ExportPage(java.lang.String strFilename)
Export the current page onto the given filename |
java.lang.String |
GetInstanceName()
Will return the complete path of the pmt file |
HWMPage |
ImportPage(java.lang.String strFilename)
Import the page that has been saved as the given file |
void |
InitMenuBar(HWMMenuBarContainer barMenu)
Customizes the menubar. |
void |
InitToolBar(HWMToolBarContainer barTool)
Adds a shortcut bar if required. |
boolean |
IsDesignMode()
This is invoked by a bean when it needs to know if its being used in design mode or app mode. |
void |
IsTemplateValid()
Check if the tpl is valid. |
void |
OnCloseInstance()
Close this instance |
void |
OnNewInstance(java.io.File fileTpl,
int nAppType)
Create a new instance |
void |
OnOpenInstance(java.io.File fileTpl)
Open an instance |
void |
OnSaveAsInstance(java.lang.String sSaveAsfilename)
SaveAs the pmt file |
void |
OnSaveInstance()
Saves the pmt file |
void |
SetMenuToolBarHandler(HWMMenuToolBarHandler handlerMenuTool)
Sets a ref to the MenuToolBarHandler for customization. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HWMDsgnModelInstance(java.awt.Component frameEPIC,
IHWMFrame iHWMFrame)
frameEPIC - The main frame for EPICiHWMFrame - The frame interface allows to create/close/save etc.
process instances with user exits.| Method Detail |
|---|
public void IsTemplateValid()
throws java.lang.Exception
java.lang.Exception - Throws an exception if the template is not valid.
public void OnNewInstance(java.io.File fileTpl,
int nAppType)
throws java.lang.Exception
File - fileTpl The file for which an instance should be creatednAppType - The type of application. Should be one of
HWMModelInstance.APPTYPE_XXX
java.lang.Exception
public void OnOpenInstance(java.io.File fileTpl)
throws java.lang.Exception
File - fileTpl The file for which an instance should be opened
java.lang.Exception
public void ExportPage(java.lang.String strFilename)
throws java.lang.Exception
strFilename - The file to export the current page
java.lang.Exception
public HWMPage ImportPage(java.lang.String strFilename)
throws java.lang.Exception
strFilename - The file to import
java.lang.Exception
public void OnCloseInstance()
throws java.lang.Exception
OnCloseInstance in class HWMModelInstancejava.lang.Exception
public void OnSaveInstance()
throws java.lang.Exception
OnSaveInstance in class HWMModelInstancejava.lang.Exception
public void OnSaveAsInstance(java.lang.String sSaveAsfilename)
throws java.lang.Exception
OnSaveAsInstance in class HWMModelInstancejava.lang.Exceptionpublic java.lang.String GetInstanceName()
GetInstanceName in class HWMModelInstanceString - The complete path of the pmt filepublic void SetMenuToolBarHandler(HWMMenuToolBarHandler handlerMenuTool)
SetMenuToolBarHandler in class HWMModelInstancehandlerMenuTool - public void InitMenuBar(HWMMenuBarContainer barMenu)
InitMenuBar in class HWMModelInstancebarMenu - public void InitToolBar(HWMToolBarContainer barTool)
InitToolBar in class HWMModelInstancebarTool - The toolbar container to customizepublic boolean IsDesignMode()
IsDesignMode in interface IHWMFrameWorkIsDesignMode in class HWMModelInstance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||