|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.frame.HWMMenuToolBarHandler
public class HWMMenuToolBarHandler
Title: HWMMenuToolBarHandler
Description: This class handles the enabling/disabling of menu items as and when events occur
Company: Altair Engineering, Inc.
Constructor Summary | |
---|---|
HWMMenuToolBarHandler(java.util.EventListener evtListener,
boolean bPMMode)
Constructor |
Method Summary | |
---|---|
HWMMenuBarContainer |
CreateMenuBar()
Create the default menubar for app mode |
HWMToolBarContainer |
CreateToolBar()
Create the default toolbars for app mode |
HWMMenuBarContainer |
GetMenuBar()
Get the current menubar, if null creates a new one |
HWMToolBarContainer |
GetToolBar()
Gets the current toolbar. |
HWMTplProps |
GetTplProps()
Returns the pmt props to use |
boolean |
IsMenuBarItemVisible(java.lang.String strMenu,
java.lang.String strMenuItem)
Returns a flag signifying if the menu item is visible |
boolean |
IsToolBarItemVisible(java.lang.String strToolBar,
java.lang.String strItemName)
Returns a flag signifying if the toolbar button is visible. |
boolean |
IsViewWorkflowSelected()
Returns the show worklflow value of the current menubar |
void |
OnInstanceActivated(HWMModelInstance hwmModelInstOld,
HWMModelInstance hwmModelInstNew)
This is invoked by the frame when an instance is made active. |
void |
OnInstanceClosed(java.lang.String strName)
This is invoked by the frame when an instance is closed |
void |
SetMenuBar(HWMMenuBarContainer hwmMenuBarContainer)
Set the current menubar |
void |
SetToolBar(HWMToolBarContainer hwmToolBarContainer)
Set the current toolbar |
void |
SetTplProps(HWMTplProps propsTpl)
Sets the pmt props to use |
void |
ShowToolBar(java.lang.String strToolBarName,
boolean bShow)
Show or hide the toolbars |
void |
UpdateMRUMenu(boolean bShowTpls,
java.lang.String[] arrszMRU)
Updates the mru sub menu |
void |
UpdateWindowsMenu(java.lang.String strModelInst)
This is invoked by the OnInstanceActivated function. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMMenuToolBarHandler(java.util.EventListener evtListener, boolean bPMMode)
evtListener
- The listener that needs to receive all the
events for toolbar and menubarbPMMode
- If true, then PM has started EPIC else it is in
stand-alone modeMethod Detail |
---|
public HWMMenuBarContainer CreateMenuBar() throws java.lang.Exception
throws
- Exception
java.lang.Exception
public HWMToolBarContainer CreateToolBar() throws java.lang.Exception
throws
- Exception
java.lang.Exception
public void SetToolBar(HWMToolBarContainer hwmToolBarContainer)
hwmToolBar
- the current toolbar to usepublic HWMToolBarContainer GetToolBar() throws java.lang.Exception
java.lang.Exception
public void SetMenuBar(HWMMenuBarContainer hwmMenuBarContainer)
hwmMenuBarContainer
- the current menubar to usepublic HWMMenuBarContainer GetMenuBar() throws java.lang.Exception
java.lang.Exception
public void ShowToolBar(java.lang.String strToolBarName, boolean bShow) throws java.lang.Exception
strToolBarName
- The name for the toolbarbShow
- If true, the toolbar is shown else hidden
java.lang.Exception
public boolean IsMenuBarItemVisible(java.lang.String strMenu, java.lang.String strMenuItem)
strMenu
- The menu in which the menu item is presentstrMenuItem
- The menu item name
java.lang.Exception
public boolean IsToolBarItemVisible(java.lang.String strToolBar, java.lang.String strItemName)
strToolBar
- The toolbar in which the button is presentstrItemName
- The item name for the button
java.lang.Exception
public void OnInstanceActivated(HWMModelInstance hwmModelInstOld, HWMModelInstance hwmModelInstNew) throws java.lang.Exception
hwmModelInstOld
- The old model instancehwmModelInstNew
- The new model instance
java.lang.Exception
public void OnInstanceClosed(java.lang.String strName) throws java.lang.Exception
strName
- The name of the model instance closed
java.lang.Exception
public void UpdateWindowsMenu(java.lang.String strModelInst) throws java.lang.Exception
strModelInst
- The current model instance
java.lang.Exception
public void SetTplProps(HWMTplProps propsTpl)
propTpl
- The props to use to create menubars and toolbarspublic HWMTplProps GetTplProps()
public boolean IsViewWorkflowSelected()
public void UpdateMRUMenu(boolean bShowTpls, java.lang.String[] arrszMRU)
bShowTpls
- If false, the templates should not be shown.arrszMRU
- The new entries for the mru sub enu
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |