com.altair.hwm.toolkit.frame
Class HWMDsgnMenuToolBarHandler

java.lang.Object
  extended by com.altair.hwm.toolkit.frame.HWMMenuToolBarHandler
      extended by com.altair.hwm.toolkit.frame.HWMDsgnMenuToolBarHandler

public class HWMDsgnMenuToolBarHandler
extends HWMMenuToolBarHandler

Title: HWMDsgnMenuToolBarHandler

Description: This class handles the enabling and disabling of menu and toolbar items as and when events occur for the java based apps builder

Company: Altair Engineering, Inc.


Constructor Summary
HWMDsgnMenuToolBarHandler(java.util.EventListener evtListener, boolean bPMMode)
          Constructor
 
Method Summary
 HWMMenuBarContainer CreateMenuBar()
          Create the default menubar for builder mode
 void CreateOtherHelp(javax.swing.JMenuItem menuItemOtherAppls)
           
 HWMToolBarContainer CreateToolBar()
          Create the default toolbars for builder mode
 void OnInstanceActivated(HWMModelInstance hwmModelInstOld, HWMModelInstance hwmModelInstNew)
          This is invoked by the frame when an instance is made active
 void OnInstanceCreated(HWMModelInstance hwmModelInst)
          This is invoked by the frame when an instance is created
 void OnPageAdded(HWMPageMgrModel hwmPgMgrModel, HWMPage hwmPage)
          This is invoked when the frame gets a event from menu item asking it to add a page
 void OnPageRemoved(HWMPageMgrModel hwmPgMgrModel, HWMPage hwmPage)
          This is invoked when the frame gets a event from menu item notifying it that a page has been removed
 void OnPageSelected(HWMPage hwmPage)
          This is invoked when the frame gets a toolkit event notifying it that a page has been selected
 
Methods inherited from class com.altair.hwm.toolkit.frame.HWMMenuToolBarHandler
GetMenuBar, GetToolBar, GetTplProps, IsMenuBarItemVisible, IsToolBarItemVisible, IsViewWorkflowSelected, OnInstanceClosed, SetMenuBar, SetToolBar, SetTplProps, ShowToolBar, UpdateMRUMenu, UpdateWindowsMenu
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMDsgnMenuToolBarHandler

public HWMDsgnMenuToolBarHandler(java.util.EventListener evtListener,
                                 boolean bPMMode)
Constructor

Parameters:
evtListener - The listener that needs to receive all the events for toolbar and menubar
bPMMode - If true, then PM has started EPIC else it is in stand-alone mode
Method Detail

CreateMenuBar

public HWMMenuBarContainer CreateMenuBar()
                                  throws java.lang.Exception
Create the default menubar for builder mode

Overrides:
CreateMenuBar in class HWMMenuToolBarHandler
Returns:
HWMMenuBarContainer the menubar containing the default menus
Throws:
throws - Exception
java.lang.Exception

CreateToolBar

public HWMToolBarContainer CreateToolBar()
                                  throws java.lang.Exception
Create the default toolbars for builder mode

Overrides:
CreateToolBar in class HWMMenuToolBarHandler
Returns:
HWMToolBarContainer the toolbar containing sub toolbars
Throws:
throws - Exception
java.lang.Exception

OnInstanceActivated

public void OnInstanceActivated(HWMModelInstance hwmModelInstOld,
                                HWMModelInstance hwmModelInstNew)
                         throws java.lang.Exception
This is invoked by the frame when an instance is made active

Overrides:
OnInstanceActivated in class HWMMenuToolBarHandler
Parameters:
hwmModelInstOld - The old model instance
hwmModelInstNew - The new model instance
Throws:
java.lang.Exception

OnInstanceCreated

public void OnInstanceCreated(HWMModelInstance hwmModelInst)
                       throws java.lang.Exception
This is invoked by the frame when an instance is created

Parameters:
hwmModelInst - The model instance created
Throws:
java.lang.Exception

OnPageAdded

public void OnPageAdded(HWMPageMgrModel hwmPgMgrModel,
                        HWMPage hwmPage)
                 throws java.lang.Exception
This is invoked when the frame gets a event from menu item asking it to add a page

Parameters:
hwmPMgrModel - The page manager model
hwmPage - The page that has been added
Throws:
java.lang.Exception

OnPageRemoved

public void OnPageRemoved(HWMPageMgrModel hwmPgMgrModel,
                          HWMPage hwmPage)
                   throws java.lang.Exception
This is invoked when the frame gets a event from menu item notifying it that a page has been removed

Parameters:
hwmPMgrModel - The page manager model
hwmPage - The page that has been removed
Throws:
java.lang.Exception

OnPageSelected

public void OnPageSelected(HWMPage hwmPage)
                    throws java.lang.Exception
This is invoked when the frame gets a toolkit event notifying it that a page has been selected

Parameters:
hwmPage - The page selected
Throws:
java.lang.Exception

CreateOtherHelp

public void CreateOtherHelp(javax.swing.JMenuItem menuItemOtherAppls)