javax.swing.plaf.metal
类 MetalInternalFrameUI
java.lang.Object
   javax.swing.plaf.ComponentUI
javax.swing.plaf.ComponentUI
       javax.swing.plaf.InternalFrameUI
javax.swing.plaf.InternalFrameUI
           javax.swing.plaf.basic.BasicInternalFrameUI
javax.swing.plaf.basic.BasicInternalFrameUI
               javax.swing.plaf.metal.MetalInternalFrameUI
javax.swing.plaf.metal.MetalInternalFrameUI
- public class MetalInternalFrameUI 
- extends BasicInternalFrameUI
JInternalFrame 的 Metal 实现。  
 
 
 
 
| 从类 javax.swing.plaf.basic.BasicInternalFrameUI 继承的字段 | 
| borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane | 
 
 
 
| 从类 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 | 
 
 
| 从类 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 委托安装在指定组件上时,可调用此方法。此方法应该为外观完整地配置组件,包括以下方面:
- 在组件上安装用于颜色、字体、边框、图标、不透明性等方面的所有默认属性值。只要有可能,就不 应该重写由客户端程序初始化的属性值。
- 如有必要,可在组件上安装一个 LayoutManager。
- 将所需的所有子组件创建/添加到组件中。
- 在组件上创建/安装事件侦听器。
- 为了检测和适当响应组件属性更改,可在组件上创建/安装一个 PropertyChangeListener。
- 在组件上安装键盘 UI(助记符、遍历等等)。
- 初始化任何适当的实例数据。
 
 
 
- 
- 覆盖:
- 类 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实例处于某种洁净状态(没有额外的侦听器、没有特定于外观的属性对象等等)。配置内容应该包括以下方面:
- 从组件中移除所有 UI 设置的边框。
- 从组件上移除所有 UI 设置的布局管理器。
- 从组件中移除所有 UI 添加的子组件。
- 从组件中移除所有 UI 添加的事件/属性侦听器。
- 从组件中移除所有 UI 安装的键盘 UI。
- 使所有已分配的实例数据对象无效,从而允许进行 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
 
提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。 版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。