JavaTM 2 Platform
Standard Ed. 6

javax.swing.plaf.metal
類別 MetalInternalFrameUI

java.lang.Object
  繼承者 javax.swing.plaf.ComponentUI
      繼承者 javax.swing.plaf.InternalFrameUI
          繼承者 javax.swing.plaf.basic.BasicInternalFrameUI
              繼承者 javax.swing.plaf.metal.MetalInternalFrameUI

public class MetalInternalFrameUI
extends BasicInternalFrameUI

JInternalFrame 的 Metal 實作。


巢狀類別摘要
 
從類別 javax.swing.plaf.basic.BasicInternalFrameUI 繼承的巢狀類別/介面
BasicInternalFrameUI.BasicInternalFrameListener, BasicInternalFrameUI.BorderListener, BasicInternalFrameUI.ComponentHandler, BasicInternalFrameUI.GlassPaneDispatcher, BasicInternalFrameUI.InternalFrameLayout, BasicInternalFrameUI.InternalFramePropertyChangeListener
 
欄位摘要
protected static String IS_PALETTE
           
 
從類別 javax.swing.plaf.basic.BasicInternalFrameUI 繼承的欄位
borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane
 
建構子摘要
MetalInternalFrameUI(JInternalFrame b)
           
 
方法摘要
protected  MouseInputAdapter createBorderListener(JInternalFrame w)
          返回將在 TitlePane 上安裝的 MouseInputAdapter
protected  JComponent createNorthPane(JInternalFrame w)
           
static ComponentUI createUI(JComponent c)
           
protected  void installKeyboardActions()
           
protected  void installListeners()
           
 void installUI(JComponent c)
          配置指定元件,使其適合外觀。
 void setPalette(boolean isPalette)
           
protected  void uninstallComponents()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 void uninstallUI(JComponent c)
          在 installUI 期間,在指定元件上反向執行的配置操作。
 
從類別 javax.swing.plaf.basic.BasicInternalFrameUI 繼承的方法
activateFrame, closeFrame, createComponentListener, createDesktopManager, createEastPane, createGlassPaneDispatcher, createInternalFrameListener, createLayoutManager, createPropertyChangeListener, createSouthPane, createWestPane, deactivateFrame, deiconifyFrame, deinstallMouseHandlers, getDesktopManager, getEastPane, getMaximumSize, getMinimumSize, getNorthPane, getPreferredSize, getSouthPane, getWestPane, iconifyFrame, installComponents, installDefaults, installMouseHandlers, isKeyBindingActive, isKeyBindingRegistered, maximizeFrame, minimizeFrame, replacePane, setEastPane, setKeyBindingActive, setKeyBindingRegistered, setNorthPane, setSouthPane, setupMenuCloseKey, setupMenuOpenKey, setWestPane, uninstallDefaults
 
從類別 javax.swing.plaf.ComponentUI 繼承的方法
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
 
從類別 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

欄位詳細資訊

IS_PALETTE

protected static String IS_PALETTE
建構子詳細資訊

MetalInternalFrameUI

public MetalInternalFrameUI(JInternalFrame b)
方法詳細資訊

createUI

public static ComponentUI createUI(JComponent c)

installUI

public void installUI(JComponent c)
從類別 ComponentUI 複製的描述
配置指定元件,使其適合外觀。當 ComponentUI 實例將作為 UI 委託安裝在指定元件上時,可調用此方法。此方法應該為外觀完整地配置元件,包括以下方面:
  1. 在元件上安裝用於顏色、字體、邊框、圖標、不透明性等方面的所有預設屬性值。只要有可能,就 應該覆寫由客戶端程序初始化的屬性值。
  2. 如有必要,可在元件上安裝一個 LayoutManager
  3. 將所需的所有子元件創建/添加到元件中。
  4. 在元件上創建/安裝事件偵聽器。
  5. 為了檢測和適當回應元件屬性更改,可在元件上創建/安裝一個 PropertyChangeListener
  6. 在元件上安裝鍵盤 UI(助記符、遍歷等等)。
  7. 初始化任何適當的實例資料。

覆寫:
類別 BasicInternalFrameUI 中的 installUI
參數:
c - 將安裝此 UI 委託的元件
另請參見:
ComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()

uninstallUI

public void uninstallUI(JComponent c)
從類別 ComponentUI 複製的描述
installUI 期間,在指定元件上反向執行的配置操作。當此 UIComponent 實例將作為 UI 委託從指定元件上移除時,可調用此方法。此方法應該取消在 installUI 中執行的配置操作,非常小心地使 JComponent 實例處於某種潔淨狀態(沒有額外的偵聽器、沒有特定於外觀的屬性物件等等)。配置內容應該套件括以下方面:
  1. 從元件中移除所有 UI 設置的邊框。
  2. 從元件上移除所有 UI 設置的佈局管理器。
  3. 從元件中移除所有 UI 添加的子元件。
  4. 從元件中移除所有 UI 添加的事件/屬性偵聽器。
  5. 從元件中移除所有 UI 安裝的鍵盤 UI。
  6. 使所有已分派的實例資料物件無效,從而允許進行 GC 操作。

覆寫:
類別 BasicInternalFrameUI 中的 uninstallUI
參數:
c - 從中移除此 UI 委託的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數
另請參見:
ComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()

installListeners

protected void installListeners()
覆寫:
類別 BasicInternalFrameUI 中的 installListeners

uninstallListeners

protected void uninstallListeners()
覆寫:
類別 BasicInternalFrameUI 中的 uninstallListeners

installKeyboardActions

protected void installKeyboardActions()
覆寫:
類別 BasicInternalFrameUI 中的 installKeyboardActions

uninstallKeyboardActions

protected void uninstallKeyboardActions()
覆寫:
類別 BasicInternalFrameUI 中的 uninstallKeyboardActions

uninstallComponents

protected void uninstallComponents()
覆寫:
類別 BasicInternalFrameUI 中的 uninstallComponents

createNorthPane

protected JComponent createNorthPane(JInternalFrame w)
覆寫:
類別 BasicInternalFrameUI 中的 createNorthPane

setPalette

public void setPalette(boolean isPalette)

createBorderListener

protected MouseInputAdapter createBorderListener(JInternalFrame w)
返回將在 TitlePane 上安裝的 MouseInputAdapter

覆寫:
類別 BasicInternalFrameUI 中的 createBorderListener
參數:
w - JInternalFrame
返回:
將在 TitlePane 上安裝的 MouseInputAdapter
從以下版本開始:
1.6

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only