java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.MenuBarUI
javax.swing.plaf.basic.BasicMenuBarUI
- Direct Known Subclasses:
MetalMenuBarUI
,SynthMenuBarUI
A default L&F implementation of MenuBarUI. This implementation
is a "combined" view/controller.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ChangeListener
The instance ofChangeListener
.protected ContainerListener
The instance ofContainerListener
.protected JMenuBar
The instance ofJMenuBar
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ChangeListener
Returns an instance ofChangeListener
.protected ContainerListener
Returns an instance ofContainerListener
.static ComponentUI
Returns a new instance ofBasicMenuBarUI
.protected void
Installs default properties.protected void
Registers keyboard actions.protected void
Registers listeners.protected void
Uninstalls default properties.protected void
Unregisters keyboard actions.protected void
Unregisters listeners.Methods declared in class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
Field Details
-
containerListener
The instance ofContainerListener
. -
changeListener
The instance ofChangeListener
.
-
Constructor Details
-
BasicMenuBarUI
public BasicMenuBarUI()Constructs aBasicMenuBarUI
.
-
-
Method Details
-
createUI
Returns a new instance ofBasicMenuBarUI
.- 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
Returns an instance ofContainerListener
.- Returns:
- an instance of
ContainerListener
-
createChangeListener
Returns an instance ofChangeListener
.- Returns:
- an instance of
ChangeListener
-