|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.MenuComponent
java.awt.MenuBar
jv.viewer.PvControlMenu
Menu bar of control window, created from inside PvControl. Number and state of menu items depends on whether run as application or applet.
Use method setEnabledMenu(int, boolean) to switch
state of single menu items.
Identifiers of menu items are specified in jv.object.PsViewerIf.
PvControl,
PvViewer,
PsViewerIf,
Serialized Form| Constructor Summary | |
PvControlMenu(PvViewer viewer,
java.awt.Frame frame)
Constructor of menu bar in control window. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
Handle menu events related with panels, dialog events which are forwarded to viewer and method events forwarded to the current geometry. |
java.awt.Menu |
add(java.awt.Menu menu)
Override add(Menu) to set of font of menu. |
java.awt.MenuItem |
add(java.awt.Menu menu,
java.awt.MenuItem item)
Use this method instead of menu.add(MenuItem) to set of font of menu. |
boolean |
isMenuEnabled(int menuId)
Determine whether menu entry in menu bar of control window is enabled. |
void |
setEnabledMenu(int menuId,
boolean cond)
Enable/disable menu entries in menu bar of control window. |
| Methods inherited from class java.awt.MenuBar |
addNotify, countMenus, deleteShortcut, getAccessibleContext, getHelpMenu, getMenu, getMenuCount, getShortcutMenuItem, remove, remove, removeNotify, setHelpMenu, shortcuts |
| Methods inherited from class java.awt.MenuComponent |
dispatchEvent, getFont, getName, getParent, getPeer, postEvent, setFont, setName, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Constructor Detail |
public PvControlMenu(PvViewer viewer,
java.awt.Frame frame)
| Method Detail |
public java.awt.Menu add(java.awt.Menu menu)
add(Menu) to set of font of menu.
public java.awt.MenuItem add(java.awt.Menu menu,
java.awt.MenuItem item)
menu.add(MenuItem) to set of font of menu.
public void setEnabledMenu(int menuId,
boolean cond)
menuId - Id of menu to enable/disable, PsViewerIf.cond - true enables this menu item, otherwise disables it.PsViewerIfpublic boolean isMenuEnabled(int menuId)
menuId - Id of menu to enable/disable, PsViewerIf.
true if menu is enabled.PsViewerIfpublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListener
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||