|
JavaTM 2 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 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。