Package com.jidesoft.plaf.metal
Class MetalMenuUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
com.jidesoft.plaf.metal.MetalMenuItemUI
com.jidesoft.plaf.metal.MetalMenuUI
- Direct Known Subclasses:
MetalJideSplitButtonUI
A metal Linvalid input: '&F' implementation of MenuUI.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
As of Java 2 platform 1.4, this previously undocumented class is now obsolete.protected class
Instantiated and used by a menu item to handle the current menu selection from mouse events. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChangeListener
protected MenuListener
protected PropertyChangeListener
Fields inherited from class com.jidesoft.plaf.metal.MetalMenuItemUI
_painter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
appendPath
(MenuElement[] path, MenuElement elem) protected ActionMap
Invoked to create the ActionMap.protected ChangeListener
protected MenuDragMouseListener
protected MenuKeyListener
protected MenuListener
protected MouseInputListener
protected PropertyChangeListener
static ComponentUI
protected ActionMap
The ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation.protected String
protected void
protected void
protected void
protected boolean
Get the temporary flag to indicate if the mouse has entered the menu.protected void
paintBackground
(Graphics g, JMenuItem menuItem, Color bgColor) Draws the background of the menu item.protected void
setMouseOver
(boolean over) Set the temporary flag to indicate if the mouse has entered the menu.protected static void
setupPostTimer
(JMenu menu) protected void
protected void
protected void
protected void
Methods inherited from class com.jidesoft.plaf.metal.MetalMenuItemUI
createInputMap, doClick, getMinimumSize, getPainter, getPath, getPreferredMenuItemSize, getRightMargin, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, paintText, uninstallComponents, uninstallUI, update
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
Field Details
-
changeListener
-
propertyChangeListener
-
-
Constructor Details
-
MetalMenuUI
public MetalMenuUI()
-
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classMetalMenuItemUI
-
getPropertyPrefix
- Overrides:
getPropertyPrefix
in classMetalMenuItemUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classMetalMenuItemUI
-
installKeyboardActions
protected void installKeyboardActions()- Overrides:
installKeyboardActions
in classMetalMenuItemUI
-
updateMnemonicBinding
protected void updateMnemonicBinding() -
uninstallKeyboardActions
protected void uninstallKeyboardActions()- Overrides:
uninstallKeyboardActions
in classMetalMenuItemUI
-
getActionMap
The ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation.- Overrides:
getActionMap
in classMetalMenuItemUI
-
createActionMap
Invoked to create the ActionMap.- Overrides:
createActionMap
in classMetalMenuItemUI
-
createMouseInputListener
- Overrides:
createMouseInputListener
in classMetalMenuItemUI
-
createMenuListener
-
createChangeListener
-
createPropertyChangeListener
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classMetalMenuItemUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classMetalMenuItemUI
-
createMenuDragMouseListener
- Overrides:
createMenuDragMouseListener
in classMetalMenuItemUI
-
createMenuKeyListener
- Overrides:
createMenuKeyListener
in classMetalMenuItemUI
-
getMaximumSize
- Overrides:
getMaximumSize
in classMetalMenuItemUI
-
setupPostTimer
-
appendPath
-
setMouseOver
protected void setMouseOver(boolean over) Set the temporary flag to indicate if the mouse has entered the menu. -
isMouseOver
protected boolean isMouseOver()Get the temporary flag to indicate if the mouse has entered the menu. -
getPreferredSize
- Overrides:
getPreferredSize
in classMetalMenuItemUI
-
paintBackground
Draws the background of the menu item.- Overrides:
paintBackground
in classMetalMenuItemUI
- Parameters:
g
- the paint graphicsmenuItem
- menu item to be paintedbgColor
- selection background color- Since:
- 1.4
-