com.jgoodies.looks.windows
Class WindowsMenuItemUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.MenuItemUI
              extended by javax.swing.plaf.basic.BasicMenuItemUI
                  extended by com.jgoodies.looks.common.ExtBasicMenuItemUI
                      extended by com.jgoodies.looks.windows.WindowsMenuItemUI

public final class WindowsMenuItemUI
extends ExtBasicMenuItemUI

The JGoodies Windows look&feel implementation of MenuItemUI.

It differs from the superclass in that it uses a Windows specific menu item renderer that checks if mnemonics shall be shown or hidden and may paint disabled text with a shadow.

Version:
$Revision: 1.2 $
Author:
Karsten Lentzsch

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuItemUI
BasicMenuItemUI.MouseInputHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
 
Constructor Summary
WindowsMenuItemUI()
           
 
Method Summary
protected  MenuItemRenderer createRenderer(JMenuItem menuItem, boolean iconBorderEnabled, Font acceleratorFont, Color selectionForeground, Color disabledForeground, Color acceleratorForeground, Color acceleratorSelectionForeground)
           
static ComponentUI createUI(JComponent b)
           
 
Methods inherited from class com.jgoodies.looks.common.ExtBasicMenuItemUI
getPreferredMenuItemSize, iconBorderEnabled, installDefaults, paintMenuItem, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredSize, getPropertyPrefix, installComponents, installKeyboardActions, installListeners, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUI, update
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsMenuItemUI

public WindowsMenuItemUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent b)

createRenderer

protected MenuItemRenderer createRenderer(JMenuItem menuItem,
                                          boolean iconBorderEnabled,
                                          Font acceleratorFont,
                                          Color selectionForeground,
                                          Color disabledForeground,
                                          Color acceleratorForeground,
                                          Color acceleratorSelectionForeground)
Overrides:
createRenderer in class ExtBasicMenuItemUI


Copyright © 2001-2007 JGoodies Karsten Lentzsch. All Rights Reserved.