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.
BasicMenuBarUI.ContaineeListener-
BasicMenuBarUI.ContaineeMenuListener-
BasicMenuBarUI.ContainerListener- Class that listens for additions and removals of JMenus from the
JMenuBar.
BasicMenuBarUI.DragListener- Class that listens to mouse motion and click events on all of the
JMenus in the JMenuBar.
BasicMenuBarUI.MenuSelectionListener-
containeeListener-
containeeMenuListener-
containerListener-
dragListener-
menuBar-
selectionListener-
BasicMenuBarUI()
-
addListeners()
-
createChangeListener(JMenuBar)
-
createContainerListener(JMenuBar)
-
createMenuListener(JMenuBar)
-
createMouseListener(JMenuBar)
-
createMouseMotionListener(JMenuBar)
-
createUI(JComponent)
-
getDefaultMargin(JMenuBar)
-
getMaximumSize(JComponent)
-
getMinimumSize(JComponent)
-
getPreferredSize(JComponent)
-
initListeners()
-
installUI(JComponent)
-
paint(Graphics, JComponent)
-
registerMenu(JMenu)
- Adds this MenuBarUI's DragListener as a MouseMotionListener and
a MouseListener to menu.
removeListeners()
-
setupKeyboard()
-
uninstallUI(JComponent)
-
unregisterMenu(JMenu)
- Removes this MenuBarUI's DragListener as a MouseMotionListener and
a MouseListener from menu.
menuBar
protected JMenuBar menuBar
dragListener
protected MouseMotionListener dragListener
containerListener
protected BasicMenuBarUI.ContainerListener containerListener
containeeListener
protected MouseListener containeeListener
containeeMenuListener
protected MenuListener containeeMenuListener
selectionListener
protected ChangeListener selectionListener
BasicMenuBarUI
public BasicMenuBarUI()
createUI
public static ComponentUI createUI(JComponent x)
installUI
public void installUI(JComponent c)
- Overrides:
- installUI in class ComponentUI
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
- uninstallUI in class ComponentUI
initListeners
protected void initListeners()
addListeners
protected void addListeners()
removeListeners
protected void removeListeners()
setupKeyboard
protected void setupKeyboard()
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
- paint in class ComponentUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
- getPreferredSize in class ComponentUI
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
- getMinimumSize in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
- getMaximumSize in class ComponentUI
getDefaultMargin
public Insets getDefaultMargin(JMenuBar t)
- Overrides:
- getDefaultMargin in class MenuBarUI
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.
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.
createContainerListener
protected BasicMenuBarUI.ContainerListener createContainerListener(JMenuBar m)
createMouseMotionListener
protected MouseMotionListener createMouseMotionListener(JMenuBar m)
createMouseListener
protected MouseListener createMouseListener(JMenuBar m)
createMenuListener
protected MenuListener createMenuListener(JMenuBar m)
createChangeListener
protected ChangeListener createChangeListener(JMenuBar m)
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature