Module java.desktop

Class BasicMenuBarUI

  • Direct Known Subclasses:
    MetalMenuBarUI, SynthMenuBarUI

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

      • menuBar

        protected JMenuBar menuBar
        The instance of JMenuBar.
      • containerListener

        protected ContainerListener containerListener
        The instance of ContainerListener.
      • changeListener

        protected ChangeListener changeListener
        The instance of ChangeListener.
    • Constructor Detail

      • BasicMenuBarUI

        public BasicMenuBarUI()
    • Method Detail

      • createUI

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

        protected void installDefaults()
        Installs default properties.
      • installListeners

        protected void installListeners()
        Registers listeners.
      • installKeyboardActions

        protected void installKeyboardActions()
        Registers keyboard actions.
      • uninstallDefaults

        protected void uninstallDefaults()
        Uninstalls default properties.
      • uninstallListeners

        protected void uninstallListeners()
        Unregisters listeners.
      • uninstallKeyboardActions

        protected void uninstallKeyboardActions()
        Unregisters keyboard actions.
      • createContainerListener

        protected ContainerListener createContainerListener()
        Returns an instance of ContainerListener.
        Returns:
        an instance of ContainerListener
      • createChangeListener

        protected ChangeListener createChangeListener()
        Returns an instance of ChangeListener.
        Returns:
        an instance of ChangeListener