com.jgoodies.looks.demo
Class MenuBarViewUIF

java.lang.Object
  extended by com.jgoodies.looks.demo.MenuBarView
      extended by com.jgoodies.looks.demo.MenuBarViewUIF

final class MenuBarViewUIF
extends MenuBarView

Builds the menu bar and pull-down menus in the full JGoodies Looks Demo. Demonstrates and tests different multi-platform issues.

This class overrides the factory methods provided by its superclass MenuBuilder to vend components from the JGoodies UI framework that better handle different platforms.

Version:
$Revision: 1.6 $
Author:
Karsten Lentzsch
See Also:
UIFMenuItem, UIFCheckBoxMenuItem, UIFRadioButtonMenuItem

Constructor Summary
MenuBarViewUIF()
           
 
Method Summary
protected  JCheckBoxMenuItem createCheckBoxMenuItem(String text, boolean selected)
           
protected  JMenu createMenu(String text, char mnemonic)
           
protected  JMenuItem createMenuItem(String text)
           
protected  JMenuItem createMenuItem(String text, char mnemonic)
           
protected  JMenuItem createMenuItem(String text, char mnemonic, KeyStroke key)
           
protected  JMenuItem createMenuItem(String text, Icon icon)
           
protected  JMenuItem createMenuItem(String text, Icon icon, char mnemonic)
           
protected  JMenuItem createMenuItem(String text, Icon icon, char mnemonic, KeyStroke key)
           
protected  JRadioButtonMenuItem createRadioButtonMenuItem(String text, boolean selected)
           
protected  boolean isAboutInOSMenu()
          Checks and answers whether the about action has been moved to an operating system specific menu, e.g. the OS X application menu.
protected  boolean isQuitInOSMenu()
          Checks and answers whether the quit action has been moved to an operating system specific menu, e.g. the OS X application menu.
 
Methods inherited from class com.jgoodies.looks.demo.MenuBarView
buildMenuBar, getToggleLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuBarViewUIF

MenuBarViewUIF()
Method Detail

createMenu

protected JMenu createMenu(String text,
                           char mnemonic)
Overrides:
createMenu in class MenuBarView

createMenuItem

protected JMenuItem createMenuItem(String text)
Overrides:
createMenuItem in class MenuBarView

createMenuItem

protected JMenuItem createMenuItem(String text,
                                   char mnemonic)
Overrides:
createMenuItem in class MenuBarView

createMenuItem

protected JMenuItem createMenuItem(String text,
                                   char mnemonic,
                                   KeyStroke key)
Overrides:
createMenuItem in class MenuBarView

createMenuItem

protected JMenuItem createMenuItem(String text,
                                   Icon icon)
Overrides:
createMenuItem in class MenuBarView

createMenuItem

protected JMenuItem createMenuItem(String text,
                                   Icon icon,
                                   char mnemonic)
Overrides:
createMenuItem in class MenuBarView

createMenuItem

protected JMenuItem createMenuItem(String text,
                                   Icon icon,
                                   char mnemonic,
                                   KeyStroke key)
Overrides:
createMenuItem in class MenuBarView

createRadioButtonMenuItem

protected JRadioButtonMenuItem createRadioButtonMenuItem(String text,
                                                         boolean selected)
Overrides:
createRadioButtonMenuItem in class MenuBarView

createCheckBoxMenuItem

protected JCheckBoxMenuItem createCheckBoxMenuItem(String text,
                                                   boolean selected)
Overrides:
createCheckBoxMenuItem in class MenuBarView

isQuitInOSMenu

protected boolean isQuitInOSMenu()
Checks and answers whether the quit action has been moved to an operating system specific menu, e.g. the OS X application menu.

This is the case if and only if we're running on the Mac OS X.

Overrides:
isQuitInOSMenu in class MenuBarView
Returns:
true if the quit action is in an OS-specific menu

isAboutInOSMenu

protected boolean isAboutInOSMenu()
Checks and answers whether the about action has been moved to an operating system specific menu, e.g. the OS X application menu.

This is the case if and only if an about handler could be successfully registered with the Mac OS X application menu.

Overrides:
isAboutInOSMenu in class MenuBarView
Returns:
true if the about action is in an OS-specific menu


Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.