|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.MenuBarUI
javax.swing.plaf.basic.BasicMenuBarUI
javax.swing.plaf.metal.MetalMenuBarUI
public class MetalMenuBarUI
MenuBarUI 的 Metal 实现。此类负责为 JMenuBar 提供 metal 外观。
MenuBarUI| 字段摘要 |
|---|
| 从类 javax.swing.plaf.basic.BasicMenuBarUI 继承的字段 |
|---|
changeListener, containerListener, menuBar |
| 构造方法摘要 | |
|---|---|
MetalMenuBarUI()
|
|
| 方法摘要 | |
|---|---|
static ComponentUI |
createUI(JComponent x)
为传入的组件创建 ComponentUI 实现。 |
void |
installUI(JComponent c)
配置指定组件,使其适合 metal 外观。 |
void |
uninstallUI(JComponent c)
在 installUI 期间,在指定组件上反向执行的配置操作。 |
void |
update(Graphics g,
JComponent c)
如果必要,绘制组件的背景,然后调用 paint。 |
| 从类 javax.swing.plaf.basic.BasicMenuBarUI 继承的方法 |
|---|
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installDefaults, installKeyboardActions, installListeners, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
| 从类 javax.swing.plaf.ComponentUI 继承的方法 |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getPreferredSize, paint |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public MetalMenuBarUI()
| 方法详细信息 |
|---|
public static ComponentUI createUI(JComponent x)
ComponentUI 实现。
x - 要为其创建 ComponentUI 实现的 JComponent
x 的 ComponentUI 实现
NullPointerException - 如果 x 为 nullpublic void installUI(JComponent c)
BasicMenuBarUI 中的 installUIc - 作为此 UI 委托的安装目的地的组件
NullPointerException - 如果 c 为 null。ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(JComponent c)
installUI 期间,在指定组件上反向执行的配置操作。
BasicMenuBarUI 中的 uninstallUIc - 作为此 UI 委托的安装目的地的组件
NullPointerException - 如果 c 为 null。ComponentUI.installUI(javax.swing.JComponent),
JComponent.updateUI()
public void update(Graphics g,
JComponent c)
paint。
ComponentUI 中的 updateg - 作为绘制目标的 Graphicc - 要在其上进行绘制的 JComponent
NullPointerException - 如果 g 或 c 为 nullComponentUI.update(java.awt.Graphics, javax.swing.JComponent),
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。