All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.basic.BasicMenuBarUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.MenuBarUI
                    |
                    +----java.awt.swing.basic.BasicMenuBarUI

public class BasicMenuBarUI
extends MenuBarUI
implements Serializable
A Windows L&F implementation of MenuBarUI. This implementation is a "combined" view/controller.


Class Index

 o BasicMenuBarUI.ContaineeListener
 o BasicMenuBarUI.ContaineeMenuListener
 o BasicMenuBarUI.ContainerListener
Class that listens for additions and removals of JMenus from the JMenuBar.
 o BasicMenuBarUI.DragListener
Class that listens to mouse motion and click events on all of the JMenus in the JMenuBar.
 o BasicMenuBarUI.MenuSelectionListener

Variable Index

 o containeeListener
 o containeeMenuListener
 o containerListener
 o dragListener
 o menuBar
 o selectionListener

Constructor Index

 o BasicMenuBarUI()

Method Index

 o addListeners()
 o createChangeListener(JMenuBar)
 o createContainerListener(JMenuBar)
 o createMenuListener(JMenuBar)
 o createMouseListener(JMenuBar)
 o createMouseMotionListener(JMenuBar)
 o createUI(JComponent)
 o getDefaultMargin(JMenuBar)
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getPreferredSize(JComponent)
 o initListeners()
 o installUI(JComponent)
 o paint(Graphics, JComponent)
 o registerMenu(JMenu)
Adds this MenuBarUI's DragListener as a MouseMotionListener and a MouseListener to menu.
 o removeListeners()
 o setupKeyboard()
 o uninstallUI(JComponent)
 o unregisterMenu(JMenu)
Removes this MenuBarUI's DragListener as a MouseMotionListener and a MouseListener from menu.

Variables

 o menuBar
protected JMenuBar menuBar
 o dragListener
protected MouseMotionListener dragListener
 o containerListener
protected BasicMenuBarUI.ContainerListener containerListener
 o containeeListener
protected MouseListener containeeListener
 o containeeMenuListener
protected MenuListener containeeMenuListener
 o selectionListener
protected ChangeListener selectionListener

Constructors

 o BasicMenuBarUI
public BasicMenuBarUI()

Methods

 o createUI
public static ComponentUI createUI(JComponent x)
 o installUI
public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
 o uninstallUI
public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
 o initListeners
protected void initListeners()
 o addListeners
protected void addListeners()
 o removeListeners
protected void removeListeners()
 o setupKeyboard
protected void setupKeyboard()
 o paint
public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI
 o getPreferredSize
public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI
 o getMinimumSize
public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class ComponentUI
 o getMaximumSize
public Dimension getMaximumSize(JComponent c)
Overrides:
getMaximumSize in class ComponentUI
 o getDefaultMargin
public Insets getDefaultMargin(JMenuBar t)
Overrides:
getDefaultMargin in class MenuBarUI
 o registerMenu
public void registerMenu(JMenu menu)
Adds this MenuBarUI's DragListener as a MouseMotionListener and a MouseListener to menu. This is called whenever a JMenu is added to a JMenuBar.

 o unregisterMenu
public void unregisterMenu(JMenu menu)
Removes this MenuBarUI's DragListener as a MouseMotionListener and a MouseListener from menu. This is called whenever a JMenu is removed from a JMenuBar.

 o createContainerListener
protected BasicMenuBarUI.ContainerListener createContainerListener(JMenuBar m)
 o createMouseMotionListener
protected MouseMotionListener createMouseMotionListener(JMenuBar m)
 o createMouseListener
protected MouseListener createMouseListener(JMenuBar m)
 o createMenuListener
protected MenuListener createMenuListener(JMenuBar m)
 o createChangeListener
protected ChangeListener createChangeListener(JMenuBar m)

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature