|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.beans.HWMBeanInstance
public class HWMBeanInstance
Title: HWMBeanInstance
Description: Encapsulates beans and other information such as size of bean, location of bean etc.
Company: Altair Engineering, Inc.
Constructor Summary | |
---|---|
HWMBeanInstance(HWMModelInstance hwmModelInstance)
Constructor |
Method Summary | |
---|---|
java.lang.Object |
GetBean()
Returns the bean |
int |
GetBeanID()
Returns the id |
HWMBeanWrapper |
GetBeanWrapper()
Gets the bean wrapper |
HWMBeanInfo |
GetHWMBeanInfo()
Returns the HWMBeanInfo |
java.lang.String |
GetInstanceName()
Get the name of the bean instance |
java.awt.Point |
GetLocation()
Returns the location |
java.awt.Dimension |
GetSize()
Returns the size |
java.lang.String |
GetValidBeanName(java.lang.String strName)
Given a name for the instance, validate it. |
boolean |
IsValidBeanName()
Determine if the bean instance name that has been set in this class is truly unique across the project |
boolean |
IsValidBeanName(java.lang.String strName)
Determine if the bean instance name is truly unique across the project |
void |
LoadProject(HWMObjectInputStream inStream)
Retrieve the project file. |
void |
OnMigrateProject(HWMBeanInstance hwmBeanInstOldDefPrj,
HWMBeanInstance hwmBeanInstOldPrj)
Migrates the prj to a new template. |
void |
PositionBeanInPage()
Positions bean based on its location and size. |
void |
ReadVersion1_0(HWMObjectInputStream inStream)
Retrieve the project file. |
void |
ReadVersion2_0(HWMObjectInputStream inStream)
Retrieve the project file (V2.0). |
void |
ReadVersion3_0(HWMObjectInputStream inStream)
Retrieve the project file (V3.0). |
void |
SaveProject(java.io.ObjectOutputStream outStream)
Save the project file. |
void |
SetBean(java.lang.Object newBean)
Sets the bean |
void |
SetBeanID(int newBeanID)
Sets the id |
void |
SetBeanWrapper(HWMBeanWrapper beanWrapper)
Gets the bean wrapper |
void |
SetHWMBeanInfo(HWMBeanInfo hwmBeanInfo)
Sets the bean info |
void |
SetInstanceName(java.lang.String strName)
Set the name of the bean instance |
void |
SetLocation(java.awt.Point newLocation)
Sets the location |
void |
SetSize(java.awt.Dimension newSize)
Sets the size |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMBeanInstance(HWMModelInstance hwmModelInstance)
Method Detail |
---|
public void PositionBeanInPage()
public void SetBeanWrapper(HWMBeanWrapper beanWrapper)
beanWrapper
- The wrapper for the beanpublic HWMBeanWrapper GetBeanWrapper()
public java.awt.Point GetLocation()
public void SetLocation(java.awt.Point newLocation)
newLocation
- public void SetSize(java.awt.Dimension newSize)
newSize
- public java.awt.Dimension GetSize()
public void SetBeanID(int newBeanID)
newBeanID
- public int GetBeanID()
public void SetBean(java.lang.Object newBean)
newBean
- public java.lang.Object GetBean()
public void SetHWMBeanInfo(HWMBeanInfo hwmBeanInfo)
newHWMBeanInfo
- public HWMBeanInfo GetHWMBeanInfo()
public void SetInstanceName(java.lang.String strName)
public java.lang.String GetInstanceName()
public boolean IsValidBeanName()
public boolean IsValidBeanName(java.lang.String strName)
strName
- The bean instance name (to check if this is unique)
public java.lang.String GetValidBeanName(java.lang.String strName)
The
- name of the instance to validate
public void SaveProject(java.io.ObjectOutputStream outStream) throws java.io.IOException
outStream
- -- The stream to "serialize" to
java.io.IOException
public void LoadProject(HWMObjectInputStream inStream) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.beans.IntrospectionException
inStream
- -- The stream to read from
IOException,
- ClassNotFoundException, IllegalAccessException
InstantiationException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.beans.IntrospectionException
public void ReadVersion1_0(HWMObjectInputStream inStream) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.beans.IntrospectionException
inStream
- -- The stream to read from
IOException,
- ClassNotFoundException, IllegalAccessException
InstantiationException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.beans.IntrospectionException
public void ReadVersion2_0(HWMObjectInputStream inStream) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.beans.IntrospectionException
inStream
- -- The stream to read from
IOException,
- ClassNotFoundException, IllegalAccessException
InstantiationException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.beans.IntrospectionException
public void ReadVersion3_0(HWMObjectInputStream inStream) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.beans.IntrospectionException
inStream
- -- The stream to read from
IOException,
- ClassNotFoundException, IllegalAccessException
InstantiationException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.beans.IntrospectionException
public void OnMigrateProject(HWMBeanInstance hwmBeanInstOldDefPrj, HWMBeanInstance hwmBeanInstOldPrj) throws java.io.IOException, java.lang.ClassNotFoundException, java.beans.IntrospectionException, java.lang.InstantiationException, java.lang.IllegalAccessException
hwmBeanInstOldDefPrj
- The bean instance that was loaded from the
old template's default projecthwmBeanInstOldPrj
- The bean instance that was loaded from the
project that should migrate to the new
template
IntrospectionException,
- InstantiationException,
IllegalAccessException
java.io.IOException
java.lang.ClassNotFoundException
java.beans.IntrospectionException
java.lang.InstantiationException
java.lang.IllegalAccessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |