|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.page.HWMMenuToolBarCustomizerAdapter
public class HWMMenuToolBarCustomizerAdapter
Title: HWMMenuToolBarCustomizerAdapter
Description: Adapter class which implements the IMEnuToolBarCustomizer
Company: Altair Engineering, Inc.
Field Summary |
---|
Constructor Summary | |
---|---|
HWMMenuToolBarCustomizerAdapter()
Constructor |
Method Summary | |
---|---|
void |
EnableMenu(java.lang.String strName,
boolean bEnable)
Enable/disable menu with given name |
void |
EnableMenuItem(java.lang.String strMenuName,
java.lang.String strMenuItemName,
boolean bEnable)
Enable/Disable menuitem with given name in the menu with given name |
void |
EnableMenuItems(java.lang.String strMenuName,
java.lang.String[] arrstrMenuItemName,
boolean bEnable)
Enable/Disable array of menuitem with given names present in the menu |
void |
EnableToolBar(java.lang.String strName,
boolean bEnable)
Enable/disable the toolbar with given title |
void |
EnableToolBarComponent(java.lang.String strToolBarName,
java.lang.String strCompName,
boolean bEnable)
Enable/disable a component in the toolbar, only if the toolbar is of type HWMToolBar |
void |
EnableToolBarComponents(java.lang.String strToolBarName,
java.lang.String[] arrstrCompNames,
boolean bEnable)
Enable/disable components in the toolbar, only if the toolbar is of type HWMToolBar |
javax.swing.JMenu |
GetMenu(java.lang.String strName)
Get the menu with given title |
HWMMenuBarContainer |
GetMenuBar()
Returns the instance's menubar |
java.awt.Component |
GetMenuComponent(java.lang.String strMenuName,
java.lang.String strCompName)
Return a component in the menu with given name. |
HWMMenuToolBarHandler |
GetMenuToolBarHandler()
Gets a ref to the MenuToolBarHandler for customization. |
HWMToolBarContainer |
GetToolBar()
Returns the instance's toolbar |
AltairJToolBar |
GetToolBar(java.lang.String strName)
Get the toolbar with given title |
java.awt.Component |
GetToolBarComponent(java.lang.String strToolBarName,
java.lang.String strCompName)
Return a component in the toolbar with given name. |
void |
InitMenuBar(HWMMenuBarContainer barMenu)
Customizes the menubar. |
void |
InitToolBar(HWMToolBarContainer barTool)
Adds a shortcut bar if required. |
void |
SetMenuToolBarHandler(HWMMenuToolBarHandler handlerMenuTool)
Sets a ref to the MenuToolBarHandler for customization. |
void |
ShowMenu(java.lang.String strName,
boolean bShow)
Show/hide menu with given name |
void |
ShowMenuItem(java.lang.String strMenuName,
java.lang.String strMenuItemName,
boolean bShow)
Show/hide menuitem with given name in the menu with given name |
void |
ShowMenuItems(java.lang.String strMenuName,
java.lang.String[] arrstrMenuItemName,
boolean bShow)
Enable/Disable array of menuitem with given names present in the menu |
void |
ShowToolBar(java.lang.String strName,
boolean bShow)
Show the toolbar with given title |
void |
ShowToolBarComponent(java.lang.String strToolBarName,
java.lang.String strCompName,
boolean bShow)
Show/hide a component in the toolbar, only if the toolbar is of type HWMToolBar |
void |
ShowToolBarComponents(java.lang.String strToolBarName,
java.lang.String[] arrstrCompNames,
boolean bShow)
Show/hide components in the toolbar, only if the toolbar is of type HWMToolBar |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMMenuToolBarCustomizerAdapter()
Method Detail |
---|
public HWMMenuBarContainer GetMenuBar()
public HWMToolBarContainer GetToolBar()
public void InitMenuBar(HWMMenuBarContainer barMenu)
barMenu
- public void InitToolBar(HWMToolBarContainer barTool)
barTool
- The toolbar container to customizepublic void SetMenuToolBarHandler(HWMMenuToolBarHandler handlerMenuTool)
handlerMenuTool
- public HWMMenuToolBarHandler GetMenuToolBarHandler()
public void ShowMenu(java.lang.String strName, boolean bShow) throws java.lang.Exception
IMenuToolBarCustomizer
ShowMenu
in interface IMenuToolBarCustomizer
strName
- The name of the menu to show/hidebShow
- If true, the menu is shown else hidden
java.lang.Exception
public void ShowMenuItem(java.lang.String strMenuName, java.lang.String strMenuItemName, boolean bShow) throws java.lang.Exception
IMenuToolBarCustomizer
ShowMenuItem
in interface IMenuToolBarCustomizer
strMenuName
- The name of the menu in which the menu item is presentstrMenuItemName
- The name of the menu item to Show/hidebShow
- If true, the menu item is shown else hidden
java.lang.Exception
public void ShowMenuItems(java.lang.String strMenuName, java.lang.String[] arrstrMenuItemName, boolean bShow) throws java.lang.Exception
IMenuToolBarCustomizer
ShowMenuItems
in interface IMenuToolBarCustomizer
strMenuName
- The name of the menu in which the menu items are
presentarrstrMenuItemName
- The array of names of the menu items to
enable/disablebShow
- If true, the menu is shown else hidden
java.lang.Exception
public void EnableMenu(java.lang.String strName, boolean bEnable) throws java.lang.Exception
IMenuToolBarCustomizer
EnableMenu
in interface IMenuToolBarCustomizer
strName
- The name of the menu to enable/disablebEnable
- If true, the menu is enabled else disabled
java.lang.Exception
public void EnableMenuItem(java.lang.String strMenuName, java.lang.String strMenuItemName, boolean bEnable) throws java.lang.Exception
IMenuToolBarCustomizer
EnableMenuItem
in interface IMenuToolBarCustomizer
strMenuName
- The name of the menu in which the menu item is presentstrMenuItemName
- The name of the menu item to enable/disablebEnable
- If true, the menu is enabled else disabled
java.lang.Exception
public void EnableMenuItems(java.lang.String strMenuName, java.lang.String[] arrstrMenuItemName, boolean bEnable) throws java.lang.Exception
IMenuToolBarCustomizer
EnableMenuItems
in interface IMenuToolBarCustomizer
strMenuName
- The name of the menu in which the menu items are
presentarrstrMenuItemName
- The array of names of the menu items to
enable/disablebEnable
- If true, the menu is enabled else disabled
java.lang.Exception
public void ShowToolBar(java.lang.String strName, boolean bShow)
IMenuToolBarCustomizer
ShowToolBar
in interface IMenuToolBarCustomizer
strName
- The name of the toolbar to returnbShow
- If true, the toolbar is shown else hiddenpublic void ShowToolBarComponent(java.lang.String strToolBarName, java.lang.String strCompName, boolean bShow) throws java.lang.Exception
IMenuToolBarCustomizer
ShowToolBarComponent
in interface IMenuToolBarCustomizer
strCompName
- The name of the component to show/hidebShow
- If true, the comp is shown else hidden
java.lang.Exception
public void ShowToolBarComponents(java.lang.String strToolBarName, java.lang.String[] arrstrCompNames, boolean bShow) throws java.lang.Exception
IMenuToolBarCustomizer
ShowToolBarComponents
in interface IMenuToolBarCustomizer
arrstrCompNames
- The array of names of the components to show/hidebShow
- If true, the comp is shown else hidden
java.lang.Exception
public void EnableToolBar(java.lang.String strName, boolean bEnable)
IMenuToolBarCustomizer
EnableToolBar
in interface IMenuToolBarCustomizer
strName
- The name of the toolbar to returnbEnable
- If true, the toolbar is enabled else disabledpublic void EnableToolBarComponent(java.lang.String strToolBarName, java.lang.String strCompName, boolean bEnable) throws java.lang.Exception
IMenuToolBarCustomizer
EnableToolBarComponent
in interface IMenuToolBarCustomizer
strCompName
- The name of the component to enable/disablebEnable
- If true, the comp is enabled else disabled
java.lang.Exception
public void EnableToolBarComponents(java.lang.String strToolBarName, java.lang.String[] arrstrCompNames, boolean bEnable) throws java.lang.Exception
IMenuToolBarCustomizer
EnableToolBarComponents
in interface IMenuToolBarCustomizer
arrstrCompNames
- The array of names of the components to
enable/disablebEnable
- If true, the comp is enabled else disabled
java.lang.Exception
public AltairJToolBar GetToolBar(java.lang.String strName)
GetToolBar
in interface IMenuToolBarCustomizer
strName
- The name of the toolbar to return
public java.awt.Component GetToolBarComponent(java.lang.String strToolBarName, java.lang.String strCompName) throws java.lang.Exception
GetToolBarComponent
in interface IMenuToolBarCustomizer
strToolBbarName
- The name of the toolbarstrCompName
- The name of the component to return
java.lang.Exception
public javax.swing.JMenu GetMenu(java.lang.String strName) throws java.lang.Exception
GetMenu
in interface IMenuToolBarCustomizer
strName
- The name of the menubar to return
java.lang.Exception
public java.awt.Component GetMenuComponent(java.lang.String strMenuName, java.lang.String strCompName)
GetMenuComponent
in interface IMenuToolBarCustomizer
strMenuName
- The name of the menustrCompName
- The name of the component to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |