Compiere 3.1

org.compiere.plaf
Class CompiereMenuItemUI

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 org.compiere.plaf.CompiereMenuItemUI

public class CompiereMenuItemUI
extends BasicMenuItemUI

Menu Item UI

Version:
$Id: CompiereMenuItemUI.java,v 1.2 2006/07/30 00:52:24 jjanke Exp $
Author:
Jorg Janke

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
CompiereMenuItemUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
          Create own instance
 void installUI(JComponent c)
          Install UI
protected  void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
          Paint Background
 void update(Graphics g, JComponent c)
          Update UI
 
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getMaximumSize, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, getPropertyPrefix, installComponents, installDefaults, installKeyboardActions, installListeners, paint, paintMenuItem, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
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

CompiereMenuItemUI

public CompiereMenuItemUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Create own instance

Parameters:
c - compoment
Returns:
CompiereMenuBarUI

installUI

public void installUI(JComponent c)
Install UI

Overrides:
installUI in class BasicMenuItemUI
Parameters:
c -

update

public void update(Graphics g,
                   JComponent c)
Update UI

Overrides:
update in class BasicMenuItemUI
Parameters:
g - graphics
c - component

paintBackground

protected void paintBackground(Graphics g,
                               JMenuItem menuItem,
                               Color bgColor)
Paint Background

Overrides:
paintBackground in class BasicMenuItemUI
Parameters:
g - graphics
menuItem - menu
bgColor - bg color

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.