public class ExtBasicMenuUI
extends javax.swing.plaf.basic.BasicMenuUI
MenuUI used by the JGoodies Windows
and Plastic looks. Unlike it's superclass, it aligns submenu items.| Modifier and Type | Class and Description |
|---|---|
private static class |
ExtBasicMenuUI.RolloverHandler |
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
MENU_PROPERTY_PREFIX |
private java.awt.event.MouseListener |
mouseListener |
private java.lang.String |
propertyPrefix |
private MenuItemRenderer |
renderer |
private static java.lang.String |
SUBMENU_PROPERTY_PREFIX |
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground| Constructor and Description |
|---|
ExtBasicMenuUI() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent b) |
private void |
ensureSubMenuInstalled()
Checks if we have already detected the correct menu type,
menu in menu bar vs.
|
protected java.awt.Dimension |
getPreferredMenuItemSize(javax.swing.JComponent c,
javax.swing.Icon aCheckIcon,
javax.swing.Icon anArrowIcon,
int textIconGap) |
protected java.lang.String |
getPropertyPrefix() |
protected void |
installDefaults() |
protected void |
installListeners() |
private static boolean |
isSubMenu(javax.swing.JMenuItem aMenuItem) |
protected void |
paintMenuItem(java.awt.Graphics g,
javax.swing.JComponent c,
javax.swing.Icon aCheckIcon,
javax.swing.Icon anArrowIcon,
java.awt.Color background,
java.awt.Color foreground,
int textIconGap) |
protected void |
uninstallDefaults() |
protected void |
uninstallListeners() |
private void |
uninstallRolloverListener() |
createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createMouseInputListener, createPropertyChangeListener, getMaximumSize, installKeyboardActions, setupPostTimer, uninstallKeyboardActionsdoClick, getMinimumSize, getPath, getPreferredSize, installComponents, installUI, paint, paintBackground, paintText, uninstallComponents, uninstallUI, updateprivate static final java.lang.String MENU_PROPERTY_PREFIX
private static final java.lang.String SUBMENU_PROPERTY_PREFIX
private java.lang.String propertyPrefix
private MenuItemRenderer renderer
private java.awt.event.MouseListener mouseListener
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
protected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicMenuUIprotected void uninstallDefaults()
uninstallDefaults in class javax.swing.plaf.basic.BasicMenuUIprotected java.lang.String getPropertyPrefix()
getPropertyPrefix in class javax.swing.plaf.basic.BasicMenuUIprotected java.awt.Dimension getPreferredMenuItemSize(javax.swing.JComponent c,
javax.swing.Icon aCheckIcon,
javax.swing.Icon anArrowIcon,
int textIconGap)
getPreferredMenuItemSize in class javax.swing.plaf.basic.BasicMenuItemUIprotected void paintMenuItem(java.awt.Graphics g,
javax.swing.JComponent c,
javax.swing.Icon aCheckIcon,
javax.swing.Icon anArrowIcon,
java.awt.Color background,
java.awt.Color foreground,
int textIconGap)
paintMenuItem in class javax.swing.plaf.basic.BasicMenuItemUIprivate void ensureSubMenuInstalled()
protected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicMenuUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicMenuUIprivate void uninstallRolloverListener()
private static boolean isSubMenu(javax.swing.JMenuItem aMenuItem)