java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.MenuBarUI
javax.swing.plaf.basic.BasicMenuBarUI
- 直接已知的子类:
-
MetalMenuBarUI,SynthMenuBarUI
菜单栏UI的默认L&F实现。此实现是一个“组合”视图/控制器。
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChangeListenerChangeListener的实例。protected ContainerListenerContainerListener的实例。protected JMenuBarJMenuBar的实例。 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ChangeListener返回一个ChangeListener的实例。protected ContainerListener返回一个ContainerListener的实例。static ComponentUI返回一个新的BasicMenuBarUI的实例。protected void安装默认属性。protected void注册键盘操作。protected void注册监听器。protected void卸载默认属性。protected void注销键盘操作。protected void注销监听器。Methods declared in class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
-
Field Details
-
containerListener
ContainerListener的实例。 -
changeListener
ChangeListener的实例。
-
Constructor Details
-
BasicMenuBarUI
public BasicMenuBarUI()构造一个BasicMenuBarUI。
-
-
Method Details
-
createUI
返回一个新的BasicMenuBarUI的实例。- 参数:
-
x- 一个组件 - 返回:
-
一个新的
BasicMenuBarUI的实例
-
installDefaults
protected void installDefaults()安装默认属性。 -
installListeners
protected void installListeners()注册监听器。 -
installKeyboardActions
protected void installKeyboardActions()注册键盘操作。 -
uninstallDefaults
protected void uninstallDefaults()卸载默认属性。 -
uninstallListeners
protected void uninstallListeners()注销监听器。 -
uninstallKeyboardActions
protected void uninstallKeyboardActions()注销键盘操作。 -
createContainerListener
返回一个ContainerListener的实例。- 返回:
-
一个
ContainerListener的实例
-
createChangeListener
返回一个ChangeListener的实例。- 返回:
-
一个
ChangeListener的实例
-