|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.frame.HWMFrameModel
public abstract class HWMFrameModel
Title: HWMFrameModel
Description: This is the model class for the frame.
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static java.lang.String |
PROP_FRAME_MODELACTIVE
These statics represent the properties fired by the frame model |
Constructor Summary | |
---|---|
HWMFrameModel(java.awt.Component frameEPIC,
IHWMFrame ihwmFrame)
Constructor |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener propListener)
Add a property change listener |
void |
ClearAll()
|
HWMModelInstance |
GetActiveModelInstance()
Get the active model instance |
HWMTplProps |
GetActiveTplProps()
Get the process definition properties for the currently active model instance |
java.awt.Component |
GetEPICFrame()
Returns the parent component. |
HWPMInteraction |
GetHWPMInteraction()
Get the HWPMInteraction instance |
IHWMFrame |
GetIHWMFrame()
Returns the IHWMFrame interface. |
HWMModelInstance |
GetInstance(java.lang.String strInstName)
Gets the instance with given name |
int |
GetInstanceIndex(java.lang.String strInstName)
Gets the instance with given name |
java.util.Vector |
GetModelInstances()
Return the vector of model instances. |
int |
GetNumModelInstances()
Get the # of opened files |
HWMTplProps |
GetTplProps(java.lang.String strTplFileName)
Get the process definition properties for the given model instance |
void |
Initialize()
Initialize all the beans in the process definition and call run on them |
abstract boolean |
IsDesignerMode()
Returns a flag if its designer or app mode. |
boolean |
IsPMMode()
Returns true if in PM mode else false |
void |
OnCloseFile(HWMModelInstance hwmModelInst,
boolean bSave)
Close the file represented by the given model instance |
void |
OnExit()
Called when JVM session is about to end i.e. |
void |
OnSaveAsFile(HWMModelInstance hwmModelInst,
java.lang.String sSaveAsfilename)
|
void |
OnSaveFile(HWMModelInstance hwmModelInst)
Save the instance |
void |
propertyChange(java.beans.PropertyChangeEvent propChgEvt)
Fired when any property changes |
void |
Quit(boolean bSave,
boolean bAskUser)
This will ask the frame to quit |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener propListener)
Remove a property change listener |
void |
SetActiveInstance(HWMModelInstance hwmModelInstance)
Sets the active instance |
void |
SetActiveInstance(int nIndex)
Sets the active instance |
void |
SetActiveInstance(java.lang.String strName)
Sets the active instance |
void |
SetHWPMInteraction(HWPMInteraction hwpmInteraction)
Instantiate the HWPMInteraction class to listen to the specified port |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_FRAME_MODELACTIVE
Constructor Detail |
---|
public HWMFrameModel(java.awt.Component frameEPIC, IHWMFrame ihwmFrame)
frameEPIC
- The main frame for EPICihwmFrame
- The handle to IHWMFrame interfaceMethod Detail |
---|
public void OnSaveFile(HWMModelInstance hwmModelInst) throws java.lang.Exception
hwmModelInst
- The model instance
java.lang.Exception
public void OnSaveAsFile(HWMModelInstance hwmModelInst, java.lang.String sSaveAsfilename) throws java.lang.Exception
java.lang.Exception
public void OnCloseFile(HWMModelInstance hwmModelInst, boolean bSave) throws java.lang.Exception
hwmModelInst
- The model instance to closebSave
- If true, the file is saved before closing
java.lang.Exception
public void Quit(boolean bSave, boolean bAskUser)
bSave
- If true and bAskUser is false, then the file is saved
else not savedbAskUser
- If true then the user is prompted to save the file else
the bSave flag takes the precedencepublic void OnExit()
public void ClearAll()
public int GetInstanceIndex(java.lang.String strInstName) throws java.lang.Exception
strInstName
- The name for the instance(i.e. prj name in app mode
and pmt name in dsgn mode)
java.lang.Exception
public HWMModelInstance GetInstance(java.lang.String strInstName)
strInstName
- The name for the instance(i.e. prj name in app mode
and pmt name in dsgn mode)
public HWMModelInstance GetActiveModelInstance()
public void Initialize() throws java.lang.Exception
java.lang.Exception
public int GetNumModelInstances()
public java.util.Vector GetModelInstances()
public HWMTplProps GetActiveTplProps()
public HWMTplProps GetTplProps(java.lang.String strTplFileName)
strTplFileName
- The pmt file for which the pmt props are returned
public void SetActiveInstance(java.lang.String strName) throws java.lang.Exception
strName
- The name of the instance
java.lang.Exception
public void SetActiveInstance(int nIndex) throws java.lang.Exception
nIndex
- If nIndex > number of opened instances, the first instance
is made active. If no instances are opened, then the
current instance is set to null.
java.lang.Exception
public void SetActiveInstance(HWMModelInstance hwmModelInstance) throws java.lang.Exception
hwmModelInstance
- The current model instance
java.lang.Exception
public abstract boolean IsDesignerMode()
public void propertyChange(java.beans.PropertyChangeEvent propChgEvt)
propertyChange
in interface java.beans.PropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener propListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener propListener)
public void SetHWPMInteraction(HWPMInteraction hwpmInteraction) throws java.lang.Exception
java.lang.Exception
- If any error occurspublic HWPMInteraction GetHWPMInteraction()
public boolean IsPMMode()
public java.awt.Component GetEPICFrame()
public IHWMFrame GetIHWMFrame()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |