public class MetalMenuUI extends MetalMenuItemUI
| Modifier and Type | Class and Description |
|---|---|
class |
MetalMenuUI.ChangeHandler
As of Java 2 platform 1.4, this previously undocumented class is now obsolete.
|
protected class |
MetalMenuUI.MouseInputHandler
Instantiated and used by a menu item to handle the current menu selection from mouse events.
|
| Modifier and Type | Field and Description |
|---|---|
protected ChangeListener |
changeListener |
protected MenuListener |
menuListener |
protected PropertyChangeListener |
propertyChangeListener |
_painter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground| Constructor and Description |
|---|
MetalMenuUI() |
doClick, getMinimumSize, getPainter, getPath, getPreferredMenuItemSize, getRightMargin, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, paintText, uninstallComponents, uninstallUI, updatecontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorprotected ChangeListener changeListener
protected PropertyChangeListener propertyChangeListener
protected MenuListener menuListener
public static ComponentUI createUI(JComponent x)
protected void installDefaults()
installDefaults in class MetalMenuItemUIprotected String getPropertyPrefix()
getPropertyPrefix in class MetalMenuItemUIprotected void installListeners()
installListeners in class MetalMenuItemUIprotected void installKeyboardActions()
installKeyboardActions in class MetalMenuItemUIprotected void uninstallKeyboardActions()
uninstallKeyboardActions in class MetalMenuItemUIprotected MouseInputListener createMouseInputListener(JComponent c)
createMouseInputListener in class MetalMenuItemUIprotected MenuListener createMenuListener(JComponent c)
protected ChangeListener createChangeListener(JComponent c)
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
protected void uninstallDefaults()
uninstallDefaults in class MetalMenuItemUIprotected void uninstallListeners()
uninstallListeners in class MetalMenuItemUIprotected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
createMenuDragMouseListener in class MetalMenuItemUIprotected MenuKeyListener createMenuKeyListener(JComponent c)
createMenuKeyListener in class MetalMenuItemUIpublic Dimension getMaximumSize(JComponent c)
getMaximumSize in class MetalMenuItemUIprotected static void setupPostTimer(JMenu menu)
protected static void appendPath(MenuElement[] path, MenuElement elem)
protected void setMouseOver(boolean over)
protected boolean isMouseOver()
public Dimension getPreferredSize(JComponent c)
getPreferredSize in class MetalMenuItemUIprotected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
paintBackground in class MetalMenuItemUIg - the paint graphicsmenuItem - menu item to be paintedbgColor - selection background color