Package org.compiere.plaf
Class CompiereMenuItemUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.MenuItemUI
-
- javax.swing.plaf.basic.BasicMenuItemUI
-
- org.compiere.plaf.CompiereMenuItemUI
-
public class CompiereMenuItemUI extends BasicMenuItemUI
Menu Item UI- Version:
- $Id: AdempiereMenuItemUI.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
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
-
-
Constructor Summary
Constructors Constructor Description CompiereMenuItemUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUI
createUI(JComponent c)
Create own instancevoid
installUI(JComponent c)
Install UIprotected void
paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
Paint Backgroundvoid
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
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
Create own instance- Parameters:
c
- compoment- Returns:
- AdempiereMenuBarUI
-
installUI
public void installUI(JComponent c)
Install UI- Overrides:
installUI
in classBasicMenuItemUI
- Parameters:
c
-
-
update
public void update(Graphics g, JComponent c)
Update UI- Overrides:
update
in classBasicMenuItemUI
- Parameters:
g
- graphicsc
- component
-
paintBackground
protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
Paint Background- Overrides:
paintBackground
in classBasicMenuItemUI
- Parameters:
g
- graphicsmenuItem
- menubgColor
- bg color
-
-