|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.datamodel.HWMDataModelImpl
public class HWMDataModelImpl
Title: HWMDataModelImpl
Description: This is the data model class which is created for each instance of the framework by the toolkit.
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static int |
searchStartIndex
|
static java.lang.String |
VERSION
The version of this class |
Constructor Summary | |
---|---|
HWMDataModelImpl(HWMModelInstance hwmModelInstance)
Constructor |
|
HWMDataModelImpl(HWMModelInstance hwmModelInstance,
HWMClassLoader hwmClassLoader)
Constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
Add a listener |
void |
addPropertyChangeListener(java.lang.String strName,
java.beans.PropertyChangeListener propChangeListener)
Add a listener for a particular property |
void |
ChangePropertyName(java.lang.String strOldName,
java.lang.String strNewName)
Change the name of a property in the datamodel. |
void |
ClearAll()
Clears all the properties |
void |
ClearAllRuns()
Clears all the properties |
void |
CopyRun(java.lang.String strRunName,
java.lang.String strCopyRunName)
Create a new run as a copy of an existing run |
java.util.Hashtable |
CreateRun(java.lang.String strRunName,
boolean bCopyScratchPad)
Create the data for the given run # |
void |
DeleteRun(java.lang.String strRunName)
Delete the data for the given run name |
void |
FireEvent(java.lang.Object objSender,
java.lang.String strPropName,
java.lang.Object objOldVal,
java.lang.Object objNewVal)
Fire event to all the listeners |
void |
FireEvent(java.beans.PropertyChangeEvent propChangeEvent)
Fire event to all the listeners |
void |
FireEvent(java.lang.String strPropName,
java.lang.Object objOldVal,
java.lang.Object objNewVal)
Fire event to all the listeners |
java.lang.String |
GetActiveRunName()
Return the active run name |
java.util.Vector |
GetAllPropertyNames()
Get a list of all properties avaliable in the datamodel |
java.util.Hashtable |
GetDataFromScratchPad()
ADDED DURING DATA MODEL VIEWER DEVELOPMENT Returns the ScratchPad Data that are stored in DataModel |
HWMDataModelViewerMgr |
GetDataModelViewerMgr()
Return the HWMDataModelViewerMgr, which manages data model viewer |
boolean |
GetEnable(java.lang.String strBeanInstance)
Gets the property "enable". |
java.lang.Object |
GetProperty(java.lang.String strName)
Gets the property value |
java.lang.Object |
GetProperty(java.lang.String strBeanInstance,
java.lang.String strName)
Gets the property value. |
int |
GetRunCount()
Return the number of runs |
java.util.Hashtable |
GetRunData(java.lang.String strRunName)
Return the data for the given run # |
java.util.Vector |
GetRunNames()
Return the names of all runs |
java.lang.Object |
GetValue(java.lang.String strBeanInstance)
Gets the property value. |
boolean |
GetVisible(java.lang.String strBeanInstance)
Gets the property "visible". |
boolean |
IsDataChangedByTask()
Check if the data has been changed by the cuurent task |
boolean |
IsPropertyTransient(java.lang.String strPropName)
Returns a flag indicating if the property is set as transient |
void |
keyPressed(java.awt.event.KeyEvent arg0)
|
void |
keyReleased(java.awt.event.KeyEvent arg0)
|
void |
keyTyped(java.awt.event.KeyEvent arg0)
|
void |
myDataViewer()
|
void |
OnMigrateProject(HWMDataModelImpl hwmOldDM)
Gets the data form the old data model and puts it into the new data model |
void |
ReadDataModel(org.jdom.Element elemDataModel)
Reads the data model from a XML element |
void |
readExternal(java.io.ObjectInput objIn)
Reads the data model |
void |
RemoveProperty(java.lang.String strName)
Remove the property value |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
Removes a listener |
void |
removePropertyChangeListener(java.lang.String strName,
java.beans.PropertyChangeListener propChangeListener)
Remove a listener for a particular property |
void |
RemovePropertyFromActiveRun(java.lang.String strRunName,
java.lang.String strName)
Remove the property value from run name |
void |
SetActiveRun(java.lang.String strRunName)
Set the given run as active and reset the workflow state |
void |
SetClassLoader(HWMClassLoader hwmClassLoader)
Set the clas loader so that the datamodel will be able to instantiate all the objects contained in it (while deserializing) |
void |
SetDataChangedByTask(boolean bState)
Whenever, a new task is selected, the workflow model will reset the flag denoting whether the data has been changed by the current task (Set the flag to false) |
void |
SetEnable(java.lang.String strBeanInstance,
boolean bEnable)
Sets the property "enable". |
void |
SetProperty(java.lang.String strName,
boolean bNewValue)
Sets the boolean property value |
void |
SetProperty(java.lang.String strName,
java.lang.Object objNewValue)
Sets the property value |
void |
SetProperty(java.lang.String strBeanInstance,
java.lang.String strName,
boolean bNewValue)
Sets the boolean property value. |
void |
SetProperty(java.lang.String strBeanInstance,
java.lang.String strName,
java.lang.Object objNewValue)
Sets the property value. |
void |
SetPropertyAsTransient(java.lang.String strPropName,
boolean bTransient)
Sets the property to be transient or non-transient |
void |
SetPropertyInActiveRun(java.lang.String strBeanInstance,
java.lang.String strName,
java.lang.Object objNewValue)
Sets the property value in the active run. |
void |
SetPropertyUsingSender(java.lang.Object objSender,
java.lang.String strName,
java.lang.Object objNewValue)
Sets the property value |
void |
SetPropertyUsingSender(java.lang.Object objSender,
java.lang.String strBeanInstance,
java.lang.String strName,
java.lang.Object objNewValue)
Sets the property value. |
void |
SetValue(java.lang.String strBeanInstance,
java.lang.Object objNewValue)
Sets the property value. |
void |
SetValueInActiveRun(java.lang.String strBeanInstance,
java.lang.Object objNewValue)
Sets the property value in active run. |
void |
SetVisible(java.lang.String strBeanInstance,
boolean bVisible)
Sets the property "visible". |
void |
ShowDataViewer()
Show the Data Model Viewer |
void |
ShowMessage(java.lang.String str)
|
void |
WriteDataModel(org.jdom.Element elemDataModel)
Writes the data model to a XML element |
void |
writeExternal(java.io.ObjectOutput objOut)
Writes the data model |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
public static int searchStartIndex
Constructor Detail |
---|
public HWMDataModelImpl(HWMModelInstance hwmModelInstance, HWMClassLoader hwmClassLoader)
hwmClassLoader
- The class loader to use.public HWMDataModelImpl(HWMModelInstance hwmModelInstance)
hwmClassLoader
- The class loader to use.Method Detail |
---|
public void SetClassLoader(HWMClassLoader hwmClassLoader)
hwmClassLoader
- The class loader to use.public java.util.Hashtable GetRunData(java.lang.String strRunName) throws java.lang.Exception
strRunName
- The run name whose data is to be retrieved
java.lang.Exception
public java.util.Hashtable CreateRun(java.lang.String strRunName, boolean bCopyScratchPad) throws java.lang.Exception
CreateRun
in interface IHWMDataModel
strRunName
- The run name to createbCopyScratchPad
- If true, scratchpad is copied into the new run
java.lang.Exception
public void CopyRun(java.lang.String strRunName, java.lang.String strCopyRunName) throws java.lang.Exception
CopyRun
in interface IHWMDataModel
strRunName
- The run name to createstrCopyRunName
- The name of the run to copy
java.lang.Exception
public void DeleteRun(java.lang.String strRunName) throws java.lang.Exception
DeleteRun
in interface IHWMDataModel
strRunName
- The run to delete
java.lang.Exception
public int GetRunCount()
GetRunCount
in interface IHWMDataModel
public java.util.Vector GetRunNames()
GetRunNames
in interface IHWMDataModel
public java.lang.String GetActiveRunName()
GetActiveRunName
in interface IHWMDataModel
public void SetActiveRun(java.lang.String strRunName) throws java.lang.Exception
SetActiveRun
in interface IHWMDataModel
strRunName
- Run name to activate
java.lang.Exception
public void SetPropertyAsTransient(java.lang.String strPropName, boolean bTransient)
SetPropertyAsTransient
in interface HWMDataModel
SetPropertyAsTransient
in interface IHWMDataModel
strPropName
- The name of the propertybTransient
- If true, this property is set to transient i.e.
not saved. Else, it is saved.public boolean IsPropertyTransient(java.lang.String strPropName)
IsPropertyTransient
in interface HWMDataModel
IsPropertyTransient
in interface IHWMDataModel
strPropName
- The name of the property
public void SetPropertyUsingSender(java.lang.Object objSender, java.lang.String strName, java.lang.Object objNewValue)
SetPropertyUsingSender
in interface IHWMDataModel
objSender
- The sender who should not be notified (can be null)strName
- The name of the propertyobjNewValue
- The value for the given propertypublic void SetProperty(java.lang.String strName, java.lang.Object objNewValue)
SetProperty
in interface HWMDataModel
SetProperty
in interface IHWMDataModel
strName
- The name of the propertyobjNewValue
- The value for the given propertypublic void SetPropertyUsingSender(java.lang.Object objSender, java.lang.String strBeanInstance, java.lang.String strName, java.lang.Object objNewValue)
SetPropertyUsingSender
in interface IHWMDataModel
objSender
- The sender who should not be notified (can be null)strBeanInstance
- The Bean instance whose property is being setstrName
- The name of the propertyobjNewValue
- The value for the given propertypublic void SetProperty(java.lang.String strBeanInstance, java.lang.String strName, java.lang.Object objNewValue)
SetProperty
in interface IHWMDataModel
strName
- The name of the propertyobjNewValue
- The value for the given propertypublic void SetPropertyInActiveRun(java.lang.String strBeanInstance, java.lang.String strName, java.lang.Object objNewValue)
SetPropertyInActiveRun
in interface IHWMDataModel
strBeanInstance
- The Bean instance whose property is being setstrName
- The name of the propertyobjNewValue
- The value for the given propertypublic void SetProperty(java.lang.String strBeanInstance, java.lang.String strName, boolean bNewValue)
strName
- The name of the propertyobjNewValue
- The value for the given propertypublic void SetProperty(java.lang.String strName, boolean bNewValue)
strName
- The name of the propertybNewValue
- The value for the (boolean)propertypublic void SetValueInActiveRun(java.lang.String strBeanInstance, java.lang.Object objNewValue)
SetValueInActiveRun
in interface IHWMDataModel
strBeanInstance
- The Bean instance whose property is
being setobjNewValue
- The value for the given propertypublic void SetValue(java.lang.String strBeanInstance, java.lang.Object objNewValue)
SetValue
in interface IHWMDataModel
strBeanInstance
- The Bean instance whose property is being setobjNewValue
- The value for the given propertypublic java.lang.Object GetValue(java.lang.String strBeanInstance)
GetValue
in interface IHWMDataModel
strBeanInstance
- The Bean instance whose property is being set
public void SetEnable(java.lang.String strBeanInstance, boolean bEnable)
SetEnable
in interface IHWMDataModel
strBeanInstance
- The Bean instance whose property is being setbEnable
- The enable statepublic boolean GetEnable(java.lang.String strBeanInstance)
GetEnable
in interface IHWMDataModel
strBeanInstance
- The Bean instance whose property is being set
public void SetVisible(java.lang.String strBeanInstance, boolean bVisible)
SetVisible
in interface IHWMDataModel
strBeanInstance
- The Bean instance whose property is being setbVisible
- The visible statepublic boolean GetVisible(java.lang.String strBeanInstance)
GetVisible
in interface IHWMDataModel
strBeanInstance
- The Bean instance whose property is being set
public java.lang.Object GetProperty(java.lang.String strName)
GetProperty
in interface HWMDataModel
GetProperty
in interface IHWMDataModel
strName
- The name of the property
public java.lang.Object GetProperty(java.lang.String strBeanInstance, java.lang.String strName)
GetProperty
in interface IHWMDataModel
strName
- The name of the property
public void RemoveProperty(java.lang.String strName)
RemoveProperty
in interface HWMDataModel
RemoveProperty
in interface IHWMDataModel
strName
- The name of the property to removepublic void RemovePropertyFromActiveRun(java.lang.String strRunName, java.lang.String strName)
RemovePropertyFromActiveRun
in interface IHWMDataModel
strName
- The name of the property to removepublic void ChangePropertyName(java.lang.String strOldName, java.lang.String strNewName)
ChangePropertyName
in interface IHWMDataModel
strOldName
- The old name of the propertystrNewName
- The new name of the property.public boolean IsDataChangedByTask()
public void SetDataChangedByTask(boolean bState)
public void FireEvent(java.beans.PropertyChangeEvent propChangeEvent)
FireEvent
in interface HWMDataModel
FireEvent
in interface IHWMDataModel
objSender
- The sender who should not be notified (can be null)propChangeEvent
- The property change event.public void FireEvent(java.lang.String strPropName, java.lang.Object objOldVal, java.lang.Object objNewVal)
FireEvent
in interface HWMDataModel
FireEvent
in interface IHWMDataModel
strPropName
- The property name.objOldVal
- The old value for the property.objNewVal
- The new value for the property.
NOTE: If the oldValue = newValue, then the event is not firedpublic void FireEvent(java.lang.Object objSender, java.lang.String strPropName, java.lang.Object objOldVal, java.lang.Object objNewVal)
FireEvent
in interface IHWMDataModel
objSender
- The sender who should not be notified (can be null)strPropName
- The property name.objOldVal
- The old value for the property.objNewVal
- The new value for the property.
NOTE: If the oldValue = newValue, then the event is not firedpublic void addPropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
addPropertyChangeListener
in interface HWMDataModel
addPropertyChangeListener
in interface IHWMDataModel
propChangeListener
- The listener object which will be notified.public void addPropertyChangeListener(java.lang.String strName, java.beans.PropertyChangeListener propChangeListener)
addPropertyChangeListener
in interface HWMDataModel
addPropertyChangeListener
in interface IHWMDataModel
strName
- Name of the property to listen to.propChangeListener
- The listener object which will be notified.public void removePropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
removePropertyChangeListener
in interface HWMDataModel
removePropertyChangeListener
in interface IHWMDataModel
propChangeListener
- The listener object which will be removed.public void removePropertyChangeListener(java.lang.String strName, java.beans.PropertyChangeListener propChangeListener)
removePropertyChangeListener
in interface HWMDataModel
removePropertyChangeListener
in interface IHWMDataModel
strName
- Name of the property.propChangeListener
- The listener object which should be removed.public void ClearAll()
ClearAll
in interface HWMDataModel
ClearAll
in interface IHWMDataModel
public void ClearAllRuns()
public java.util.Vector GetAllPropertyNames()
GetAllPropertyNames
in interface IHWMDataModel
public java.util.Hashtable GetDataFromScratchPad()
GetDataFromScratchPad
in interface IHWMDataModel
public void OnMigrateProject(HWMDataModelImpl hwmOldDM) throws java.lang.Exception
hwmOldDM
- -- The old data model
java.lang.Exception
- - when any error occurspublic void ReadDataModel(org.jdom.Element elemDataModel) throws java.io.IOException, java.lang.ClassNotFoundException
ReadDataModel
in interface HWMDataModel
ReadDataModel
in interface IHWMDataModel
elemDataModel
- The element representing the datamodel
IOException,
- ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void WriteDataModel(org.jdom.Element elemDataModel) throws java.io.IOException, java.lang.ClassNotFoundException
WriteDataModel
in interface HWMDataModel
WriteDataModel
in interface IHWMDataModel
elemDataModel
- The element representing the datamodel
IOException,
- ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void readExternal(java.io.ObjectInput objIn) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
objIn
- The input stream to read form
IOException,
- ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput objOut) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
objOut
- The output stream to write to
java.io.IOException
public void ShowDataViewer()
IHWMDataModel
ShowDataViewer
in interface IHWMDataModel
public HWMDataModelViewerMgr GetDataModelViewerMgr()
IHWMDataModel
GetDataModelViewerMgr
in interface IHWMDataModel
public void myDataViewer()
public void actionPerformed(java.awt.event.ActionEvent e)
public void keyTyped(java.awt.event.KeyEvent arg0)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent arg0)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent arg0)
keyReleased
in interface java.awt.event.KeyListener
public void ShowMessage(java.lang.String str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |