public class MetalRootPaneUI extends BasicRootPaneUI
RootPaneUI 。 
        MetalRootPaneUI提供了支持windowDecorationStyle财产JRootPane 。 MetalRootPaneUI这样做是通过安装一个自定义的LayoutManager ,一个私人的Component来呈现相应的小部件,还有一个私人的Border 。 LayoutManager始终是安装的,无论windowDecorationStyle属性值windowDecorationStyle ,但Border和Component仅在windowDecorationStyle不是JRootPane.NONE时才安装/添加。 
 警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4开始,支持所有JavaBeans的长期存储已经添加到java.beans包中。 请参阅XMLEncoder 。 
| Constructor and Description | 
|---|
| MetalRootPaneUI() | 
| Modifier and Type | Method and Description | 
|---|---|
| static ComponentUI | createUI(JComponent c)
              创建一个 
              JRootPane的UI。 | 
| void | installUI(JComponent c)
              调用超级执行 
              installUI,将必要的状态安装到JRootPane,以呈现JRootPane的金属外观RootPaneUI。 | 
| void | propertyChange(PropertyChangeEvent e)
              当属性更改时调用。 
             | 
| void | uninstallUI(JComponent c)
              调用supers实现来卸载其任何状态。 
             | 
installComponents, installDefaults, installKeyboardActions, installListeners, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListenerscontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, updatepublic static ComponentUI createUI(JComponent c)
JRootPane的UI。 
          c - 将创建JRootPane RootPaneUI 
           public void installUI(JComponent c)
installUI来安装必要的状态,传递给JRootPane ,以呈现金属外观实现RootPaneUI 。 
           如果windowDecorationStyle的财产JRootPane比其他JRootPane.NONE ,这将一个自定义添加Component呈现小部件JRootPane ,以及安装自定义Border和LayoutManager上JRootPane 。 
          installUI在 
            BasicRootPaneUI 
           c - JRootPane安装状态 
           ComponentUI.uninstallUI(javax.swing.JComponent) , 
            JComponent.setUI(javax.swing.plaf.ComponentUI) , 
            JComponent.updateUI() 
           public void uninstallUI(JComponent c)
LayoutManager的JRootPane 。 
           如果一个Component已经添加到JRootPane来渲染窗口装饰样式,这个方法将会删除它。 
           同样的,这将会将JRootPane的Border和LayoutManager JRootPane到installUI被调用之前。 
          uninstallUI在 
            BasicRootPaneUI 
           c - 从卸载状态的JRootPane 
           ComponentUI.installUI(javax.swing.JComponent) , 
            JComponent.updateUI() 
           public void propertyChange(PropertyChangeEvent e)
MetalRootPaneUI主要感兴趣的事件源自JRootPane它已被安装在识别属性windowDecorationStyle 。 
           如果windowDecorationStyle已更改为JRootPane.NONE以外的值,则将添加Component到JRootPane以呈现窗口装饰,以及在Border上安装JRootPane 。 
           在另一方面,如果windowDecorationStyle变为JRootPane.NONE ,这将消除Component已添加到JRootPane边境以及重置为它以前installUI被调用。 
          propertyChange在接口 
            PropertyChangeListener 
           propertyChange在 
            BasicRootPaneUI 
           e - 描述事件源和已更改的属性的PropertyChangeEvent对象。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.