|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.binding.HWMBindingInfoMgr
public class HWMBindingInfoMgr
Title: HWMBindingMgrModel
Description: Handles all binding functionality from displaying the popup menus for beans to writing the adapter class
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static java.lang.String |
VERSION_HWMBINDINGINFOMGR
|
Constructor Summary | |
---|---|
HWMBindingInfoMgr(HWMModelInstance modelInstance)
Constructor. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent eventAction)
Handles events generated by binding popup menus. |
void |
AddToolkitEventListener(HWMToolkitEventListener listenerEvent)
Adds a ToolkitEventListener |
void |
ClearAll()
Clears the important members vars |
void |
DoBinding(java.awt.Component compSource,
int nXPos,
int nYPos)
Handles the popup trigger mouse event fired by a BeanWrapper. |
java.util.Vector |
GetBindingInfo()
Returns the list of binding infos |
void |
InitAdapters()
Loops through all the binding info and instantiate the adapter classes |
void |
LoadTemplate1_0(java.io.ObjectInputStream objTemplateStream)
Retrieve the template file. |
void |
LoadTemplateGreaterThan1_0(java.io.ObjectInputStream objInputStream)
This is invoked by the model instance for new versions of the template |
void |
ReadOldProject(java.io.ObjectInputStream objInputStream)
Reads the old versions where the last adapter id was stored in the prj This is invoked by the model instance |
void |
RemoveBindingInfo(HWMBindingInfo hwmBindingInfo)
Removes binding info.(Used by BindingInfo property classes) |
void |
RemoveBindingInfo(int nPageID)
If a page gets deleted, all the binding info related to any bean in that page (every binding to beans in that page as source or as target) need to be deleted also. |
void |
RemoveBindingInfo(int nPageID,
int nBeanID)
If a bean gets deleted, all the binding info related to that bean (every binding to that bean as source or as target) need to be deleted also |
void |
RemoveToolkitEventListener(HWMToolkitEventListener listenerEvent)
Removes a ToolkitEventListener |
void |
SaveTemplate(java.io.ObjectOutputStream objTemplateStream)
Save the template file. |
void |
SetBindingInfo(java.util.Vector vectBindingInfo)
Sets the list of binding infos |
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_HWMBINDINGINFOMGR
Constructor Detail |
---|
public HWMBindingInfoMgr(HWMModelInstance modelInstance)
modelIntance
- A ref to the model instance this belongs to.Method Detail |
---|
public void DoBinding(java.awt.Component compSource, int nXPos, int nYPos)
compSource
- The source componentnXPos
- The x coord of the mouse clicknXPos
- The y coord of the mouse clickpublic void actionPerformed(java.awt.event.ActionEvent eventAction)
actionPerformed
in interface java.awt.event.ActionListener
eventAction
- Generated by the popupmenupublic void RemoveBindingInfo(int nPageID, int nBeanID)
nPageID
- The ID of the page containing the beannBeanID
- The bean IDpublic void RemoveBindingInfo(int nPageID)
nPageID
- The ID of the page containing the beannBeanID
- The bean IDpublic void RemoveBindingInfo(HWMBindingInfo hwmBindingInfo)
HWMBindingInfo
- The binding info to removepublic void AddToolkitEventListener(HWMToolkitEventListener listenerEvent)
listenerEvent
- The new listenerpublic void RemoveToolkitEventListener(HWMToolkitEventListener listenerEvent)
listenerEvent
- The listener to removepublic java.util.Vector GetBindingInfo()
public void SetBindingInfo(java.util.Vector vectBindingInfo)
public void ClearAll()
public void SaveTemplate(java.io.ObjectOutputStream objTemplateStream) throws java.io.FileNotFoundException, java.io.IOException
FileNotFoundException,
- IOException
java.io.FileNotFoundException
java.io.IOException
public void ReadOldProject(java.io.ObjectInputStream objInputStream) throws java.io.IOException, java.io.FileNotFoundException, java.lang.ClassNotFoundException
objInputStream
- The input stream for the prj file.
java.io.IOException
java.io.FileNotFoundException
java.lang.ClassNotFoundException
public void LoadTemplate1_0(java.io.ObjectInputStream objTemplateStream) throws java.io.IOException, java.io.FileNotFoundException, java.lang.ClassNotFoundException
IOException,
- FileNotFoundException, ClassNotFoundException
java.io.IOException
java.io.FileNotFoundException
java.lang.ClassNotFoundException
public void LoadTemplateGreaterThan1_0(java.io.ObjectInputStream objInputStream) throws java.io.IOException, java.io.FileNotFoundException, java.lang.ClassNotFoundException
java.io.IOException
java.io.FileNotFoundException
java.lang.ClassNotFoundException
public void InitAdapters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |