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 TypeClassDescriptionclassAs of Java 2 platform 1.4, this previously undocumented class is now obsolete.protected classInstantiated and used by a menu item to handle the current menu selection from mouse events. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChangeListenerprotected MenuListenerprotected PropertyChangeListenerFields 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 voidappendPath(MenuElement[] path, MenuElement elem) protected ActionMapInvoked to create the ActionMap.protected ChangeListenerprotected MenuDragMouseListenerprotected MenuKeyListenerprotected MenuListenerprotected MouseInputListenerprotected PropertyChangeListenerstatic ComponentUIprotected ActionMapThe ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation.protected Stringprotected voidprotected voidprotected voidprotected booleanGet the temporary flag to indicate if the mouse has entered the menu.protected voidpaintBackground(Graphics g, JMenuItem menuItem, Color bgColor) Draws the background of the menu item.protected voidsetMouseOver(boolean over) Set the temporary flag to indicate if the mouse has entered the menu.protected static voidsetupPostTimer(JMenu menu) protected voidprotected voidprotected voidprotected voidMethods inherited from class com.jidesoft.plaf.metal.MetalMenuItemUI
createInputMap, doClick, getMinimumSize, getPainter, getPath, getPreferredMenuItemSize, getRightMargin, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, paintText, uninstallComponents, uninstallUI, updateMethods 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:
installDefaultsin classMetalMenuItemUI
-
getPropertyPrefix
- Overrides:
getPropertyPrefixin classMetalMenuItemUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classMetalMenuItemUI
-
installKeyboardActions
protected void installKeyboardActions()- Overrides:
installKeyboardActionsin classMetalMenuItemUI
-
updateMnemonicBinding
protected void updateMnemonicBinding() -
uninstallKeyboardActions
protected void uninstallKeyboardActions()- Overrides:
uninstallKeyboardActionsin classMetalMenuItemUI
-
getActionMap
The ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation.- Overrides:
getActionMapin classMetalMenuItemUI
-
createActionMap
Invoked to create the ActionMap.- Overrides:
createActionMapin classMetalMenuItemUI
-
createMouseInputListener
- Overrides:
createMouseInputListenerin classMetalMenuItemUI
-
createMenuListener
-
createChangeListener
-
createPropertyChangeListener
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classMetalMenuItemUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classMetalMenuItemUI
-
createMenuDragMouseListener
- Overrides:
createMenuDragMouseListenerin classMetalMenuItemUI
-
createMenuKeyListener
- Overrides:
createMenuKeyListenerin classMetalMenuItemUI
-
getMaximumSize
- Overrides:
getMaximumSizein 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:
getPreferredSizein classMetalMenuItemUI
-
paintBackground
Draws the background of the menu item.- Overrides:
paintBackgroundin classMetalMenuItemUI- Parameters:
g- the paint graphicsmenuItem- menu item to be paintedbgColor- selection background color- Since:
- 1.4
-