Class MetalMenuUI

    • Field Detail

      • changeListener

        protected javax.swing.event.ChangeListener changeListener
      • propertyChangeListener

        protected java.beans.PropertyChangeListener propertyChangeListener
      • menuListener

        protected javax.swing.event.MenuListener menuListener
    • Constructor Detail

      • MetalMenuUI

        public MetalMenuUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent x)
      • updateMnemonicBinding

        protected void updateMnemonicBinding()
      • getActionMap

        protected javax.swing.ActionMap getActionMap()
        The ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation.
        Overrides:
        getActionMap in class MetalMenuItemUI
      • createActionMap

        protected javax.swing.ActionMap createActionMap()
        Invoked to create the ActionMap.
        Overrides:
        createActionMap in class MetalMenuItemUI
      • createMenuListener

        protected javax.swing.event.MenuListener createMenuListener​(javax.swing.JComponent c)
      • createChangeListener

        protected javax.swing.event.ChangeListener createChangeListener​(javax.swing.JComponent c)
      • createPropertyChangeListener

        protected java.beans.PropertyChangeListener createPropertyChangeListener​(javax.swing.JComponent c)
      • createMenuKeyListener

        protected javax.swing.event.MenuKeyListener createMenuKeyListener​(javax.swing.JComponent c)
        Overrides:
        createMenuKeyListener in class MetalMenuItemUI
      • setupPostTimer

        protected static void setupPostTimer​(javax.swing.JMenu menu)
      • appendPath

        protected static void appendPath​(javax.swing.MenuElement[] path,
                                         javax.swing.MenuElement elem)
      • 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.
      • paintBackground

        protected void paintBackground​(java.awt.Graphics g,
                                       javax.swing.JMenuItem menuItem,
                                       java.awt.Color bgColor)
        Draws the background of the menu item.
        Overrides:
        paintBackground in class MetalMenuItemUI
        Parameters:
        g - the paint graphics
        menuItem - menu item to be painted
        bgColor - selection background color
        Since:
        1.4