|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.page.HWMPageMgrModel
public class HWMPageMgrModel
Title: HWMPageMgrModel
Description: The page mgr model handles the various pages in the pmt
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static java.lang.String |
PROP_PGMGR_CURRPG
Properties for which prop change evt are fired |
static java.lang.String |
VERSION_PRJ
The prj version # for this class |
Constructor Summary | |
---|---|
HWMPageMgrModel(HWMModelInstance hwmModelInstance)
Constructor |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener propListener)
Add a property change listener |
void |
AddToolkitEventListener(HWMToolkitEventListener toolkitListener)
Add a toolkit event listener |
void |
ClearAll()
When a new template/project is loaded, or the existing project/template closed, we need to clear all the contents of this panel. |
void |
copyControl(HWMBeanInstance hmwBeanInstance)
copy bean from page to clipBaord |
void |
copyControl(HWMBeanInstance hmwBeanInstance,
boolean mulitpleSelection)
|
void |
cutControl(HWMBeanInstance hmwBeanInstance)
cut the bean from page and store it in the clipboard |
void |
deleteAllBean()
delete all beans on current page... |
void |
deleteBean()
deleteBean... |
void |
deselectAllContorls()
deselect All Controls on click of mouse on page - all selected bean components shold be deselected... |
void |
ExportPageTCL(java.io.BufferedWriter fwriter)
Export the current page onto the given filename as TCL. |
HWMBeanClipBoardMgr |
getBeanClipBoardMgr()
|
java.lang.Object |
GetBeanObject(int nPageID,
int nBeanID)
Finds a bean using the ID of the page containing the bean and the by ID of the bean in that page |
java.lang.Object |
GetBeanPropertyValue(java.lang.Object objBean,
java.lang.reflect.Method methodRead)
Returns the value for the property |
HWMPage |
GetCurrentPage()
Get the current page |
HWMBeanInfo |
GetHWMBeanInfo(int nPageID,
int nBeanID)
Returns the HWMBeanInfo object for the given bean on a given page. |
HWMPage |
GetPageByID(int nPageID)
Finds a page by virtue of the ID of the page |
HWMPage |
GetPageByName(java.lang.String szPageName)
Finds a page by virtue of the name of the page |
int |
GetPageCount()
Returns the number of pages |
java.util.Vector |
GetPages()
Returns the pages |
void |
InitBeans(IHWMFrameWork iFrameWork)
Initializes all the beans on all the pages. |
void |
LoadProject(HWMObjectInputStream streamIn)
Retrieve the project file. |
void |
NextPage()
Shows the next page in the list. |
void |
OnCopyBean()
OnCopyBean this method will take care for copying of the single or multiple selected bean from the current page By Surya |
void |
OnCutBean()
OnCutBean... |
void |
OnMigrateProject(HWMPageMgrModel hwmOldPgMgrModel,
HWMPageMgrModel hwmOldDefPgMgrModel)
Migrates the old model pg mgr model to follow the new template. |
void |
OnPasteBean()
OnPasteBean... |
void |
pasteControl()
paste the bean from the clipBorad... |
void |
PrevPage()
Shows the prev page in the list |
void |
ReadVersion1_0(HWMObjectInputStream streamIn)
Retrieve the project file. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener propListener)
Remove a property change listener |
void |
RemoveToolkitEventListener(HWMToolkitEventListener toolkitListener)
Remove a property change listener |
void |
SaveProject(java.io.ObjectOutputStream streamOut)
Save the project file. |
void |
selectAllControls()
select all beans in the current page... |
void |
SetCurrentPage(HWMPage hwmPageCurrent)
Set the current page |
void |
SetCurrentPage(int nPageID)
Shows the page with the given ID |
void |
SetCurrentPage(java.lang.Object objSrc,
HWMPage hwmPageCurrent)
Set the current page |
void |
SetCurrentPage(java.lang.Object objSrc,
int nPageID)
Shows the page with the given ID |
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_PRJ
public static final java.lang.String PROP_PGMGR_CURRPG
Constructor Detail |
---|
public HWMPageMgrModel(HWMModelInstance hwmModelInstance)
Method Detail |
---|
public HWMBeanClipBoardMgr getBeanClipBoardMgr()
public void InitBeans(IHWMFrameWork iFrameWork)
iFrameWork
- The frame work interfacepublic void NextPage()
public void PrevPage()
public void SetCurrentPage(int nPageID)
nPageID
- ID of the page to be displayedpublic void SetCurrentPage(java.lang.Object objSrc, int nPageID)
objSrc
- The source for this changenPageID
- ID of the page to be displayedpublic void SetCurrentPage(HWMPage hwmPageCurrent)
hwmPageCurrent
- The new current pagepublic void SetCurrentPage(java.lang.Object objSrc, HWMPage hwmPageCurrent)
hwmPageCurrent
- The new current pagepublic HWMPage GetCurrentPage()
public void ClearAll()
public HWMPage GetPageByID(int nPageID)
nPageID
- The id of the pagepublic HWMPage GetPageByName(java.lang.String szPageName)
szPageName
- The name of the pagepublic java.lang.Object GetBeanObject(int nPageID, int nBeanID)
nPageID
- The id of the page containing the beannBeanID
- The id of the beanpublic HWMBeanInfo GetHWMBeanInfo(int nPageID, int nBeanID)
nPageID
- The page id of the page containing the beannBeanID
- The id of the beanpublic java.util.Vector GetPages()
public int GetPageCount()
public void ExportPageTCL(java.io.BufferedWriter fwriter) throws java.lang.Exception
fwriter
- - The stream to export the current page
java.lang.Exception
public void OnMigrateProject(HWMPageMgrModel hwmOldPgMgrModel, HWMPageMgrModel hwmOldDefPgMgrModel) throws java.lang.Exception
hwmOldPgMgrModel
- -- The pg mgr model from the old projecthwmOldDefPgMgrModel
- -- The pg mgr model from the old default
project
java.lang.Exception
- - when any other error occurspublic void SaveProject(java.io.ObjectOutputStream streamOut) throws java.io.IOException
streamOut
- -- The stream to "serialize" to
java.io.IOException
public void ReadVersion1_0(HWMObjectInputStream streamIn) throws java.lang.Exception
streamIn
- -- The stream to read from
java.lang.Exception
public void LoadProject(HWMObjectInputStream streamIn) throws java.lang.Exception
streamIn
- -- The stream to read from
java.lang.Exception
public void addPropertyChangeListener(java.beans.PropertyChangeListener propListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener propListener)
public void AddToolkitEventListener(HWMToolkitEventListener toolkitListener)
The
- toolkit event listener objectpublic void RemoveToolkitEventListener(HWMToolkitEventListener toolkitListener)
The
- toolkit event listener objectpublic void copyControl(HWMBeanInstance hmwBeanInstance)
hmwBeanInstance
- public void copyControl(HWMBeanInstance hmwBeanInstance, boolean mulitpleSelection)
hmwBeanInstance
- mulitpleSelection
- public void cutControl(HWMBeanInstance hmwBeanInstance)
hmwBeanInstance
- public void pasteControl()
public void selectAllControls()
public void deselectAllContorls()
public void deleteAllBean()
public void deleteBean()
public void OnCopyBean()
public void OnCutBean()
public void OnPasteBean()
public java.lang.Object GetBeanPropertyValue(java.lang.Object objBean, java.lang.reflect.Method methodRead)
objBean
- The bean whose value is to be retrievedmethodRead
- The get method for the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |