- java.lang.Object
 -  
      
- javax.swing.plaf.ComponentUI
 -  
        
- javax.swing.plaf.MenuBarUI
 -  
          
- javax.swing.plaf.basic.BasicMenuBarUI
 
 
 
 
-  
       
- 已知直接子类:
 -  
         
MetalMenuBarUI,SynthMenuBarUI 
public class BasicMenuBarUI extends MenuBarUI
MenuBarUI的默认L&F实现。 该实现是“组合”视图/控制器。 
-  
        
       
-  
             
字段汇总
字段 变量和类型 字段 描述 protected ChangeListenerchangeListenerChangeListener的实例。protected ContainerListenercontainerListenerContainerListener的实例。protected JMenuBarmenuBarJMenuBar的实例。 
-  
             
构造方法摘要
构造方法 构造器 描述 BasicMenuBarUI() 
-  
             
方法摘要
所有方法 静态方法 实例方法 具体的方法 变量和类型 方法 描述 protected ChangeListenercreateChangeListener()返回ChangeListener的实例。protected ContainerListenercreateContainerListener()返回ContainerListener的实例。static ComponentUIcreateUI(JComponent x)返回BasicMenuBarUI的新实例。protected voidinstallDefaults()安装默认属性。protected voidinstallKeyboardActions()注册键盘操作。protected voidinstallListeners()注册听众。protected voiduninstallDefaults()卸载默认属性。protected voiduninstallKeyboardActions()取消注册键盘操作。protected voiduninstallListeners()取消注册听众。-  
               
声明方法的类 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
字段详细信息
-  
menuBar
protected JMenuBar menuBar
JMenuBar的实例。 
-  
containerListener
protected ContainerListener containerListener
ContainerListener的实例。 
-  
changeListener
protected ChangeListener changeListener
ChangeListener的实例。 
 -  
 
-  
             
方法详细信息
-  
createUI
public static ComponentUI createUI(JComponent x)
返回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
protected ContainerListener createContainerListener()
返回ContainerListener的实例。- 结果
 -  
              
ContainerListener一个实例 
 
-  
createChangeListener
protected ChangeListener createChangeListener()
返回ChangeListener的实例。- 结果
 -  
              
ChangeListener的实例 
 
 -  
 
 -