Module java.desktop

Class BasicMenuUI

  • Direct Known Subclasses:
    SynthMenuUI

    public class BasicMenuUI
    extends BasicMenuItemUI
    A default L&F implementation of MenuUI. This implementation is a "combined" view/controller.
    • Field Detail

      • changeListener

        protected ChangeListener changeListener
        The instance of ChangeListener.
      • menuListener

        protected MenuListener menuListener
        The instance of MenuListener.
    • Constructor Detail

      • BasicMenuUI

        public BasicMenuUI()
    • Method Detail

      • createUI

        public static ComponentUI createUI​(JComponent x)
        Constructs a new instance of BasicMenuUI.
        Parameters:
        x - a component
        Returns:
        a new instance of BasicMenuUI
      • createMenuListener

        protected MenuListener createMenuListener​(JComponent c)
        Returns an instance of MenuListener.
        Parameters:
        c - a component
        Returns:
        an instance of MenuListener
      • createChangeListener

        protected ChangeListener createChangeListener​(JComponent c)
        Returns an instance of ChangeListener.
        Parameters:
        c - a component
        Returns:
        an instance of ChangeListener
      • setupPostTimer

        protected void setupPostTimer​(JMenu menu)
        Sets timer to the menu.
        Parameters:
        menu - an instance of JMenu.