JavaTM 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 Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策