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 Details

    • containerListener

      protected ContainerListener containerListener
      The instance of ContainerListener.
    • changeListener

      protected ChangeListener changeListener
      The instance of ChangeListener.
  • Constructor Details

    • BasicMenuBarUI

      public BasicMenuBarUI()
      Constructs a BasicMenuBarUI.
  • Method Details

    • 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