net.curre.prefcount.gui.menu
Class AwtMenuBar
java.lang.Object
java.awt.MenuComponent
java.awt.MenuBar
net.curre.prefcount.gui.menu.AwtMenuBar
- All Implemented Interfaces:
- java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, PrefCountMenuBar
public class AwtMenuBar
- extends java.awt.MenuBar
- implements PrefCountMenuBar
Object of this class represents a menu bar for Mac OS.
This menu bar is assumed to be placed at the top fo the
screen. Other platforms are not supported by this class
just because swing menu bar is a better option when not
on Mac OS.
Note that we are using awt menu bar because swing menu bar
is not compatible with the substance look-and-feel library
when running on Mac.
Created date: Jan 24, 2008
- Author:
- Yevgeny Nyden
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class java.awt.MenuBar |
java.awt.MenuBar.AccessibleAWTMenuBar |
| Nested classes/interfaces inherited from class java.awt.MenuComponent |
java.awt.MenuComponent.AccessibleAWTMenuComponent |
| Methods inherited from class java.awt.MenuBar |
add, 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, getTreeLock, paramString, postEvent, processEvent, setFont, setName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
AwtMenuBar
public AwtMenuBar(PrefCountMenuBar.MenuBarType menuBarType)
- Constructor that sets the type of this menu bar,
initializes necessary data structures, and creates the menus.
- Parameters:
menuBarType - Type of this menu bar (for which frame it was created).
- Throws:
java.lang.IllegalArgumentException - If menu bar type is not supported.
java.lang.UnsupportedOperationException - When running on not Mac OS.
refreshLanguageIcon
public void refreshLanguageIcon()
- Does nothing.
- Specified by:
refreshLanguageIcon in interface PrefCountMenuBar
toggleNextAction
public void toggleNextAction(boolean enabled)
- Enables/disables the next menu item on the action menu.
- Specified by:
toggleNextAction in interface PrefCountMenuBar
- Parameters:
enabled - True when the menu item should be enabled; false if disabled.
toggleBackAction
public void toggleBackAction(boolean enabled)
- Enables/disables the back menu item on the action menu.
- Specified by:
toggleBackAction in interface PrefCountMenuBar
- Parameters:
enabled - True when the menu item should be enabled; false if disabled.
toggleComputeAction
public void toggleComputeAction(boolean enabled)
- Enables/disables the compute menu item on the action menu.
- Specified by:
toggleComputeAction in interface PrefCountMenuBar
- Parameters:
enabled - True when the menu item should be enabled; false if disabled.
setDialogFrameItemState
public void setDialogFrameItemState(boolean isSelected)
- Sets the selected status of the
dialog frame menu bar menu item.
- Specified by:
setDialogFrameItemState in interface PrefCountMenuBar
- Parameters:
isSelected - true if the item should be selected; false otherwise.
Copyright © 2008. All Rights Reserved.