public class MetalRootPaneUI extends BasicRootPaneUI
RootPaneUI。
MetalRootPaneUI为JRootPane的windowDecorationStyle属性支持。MetalRootPaneUI这是否通过安装一个自定义LayoutManager,私人Component提供适当的工具,和一个私人Border。的LayoutManager总是装的,不论其windowDecorationStyle属性的值,但Border和Component只安装/补充说如果windowDecorationStyle不是JRootPane.NONE。
警告:序列化该类的对象与以后的Swing版本不兼容。当前的序列化支持适用于短期贮藏或RMI运行相同Swing版本的应用程序之间。为1.4,为所有JavaBeans™长期存储的支持已被添加到java.beans包。请看XMLEncoder。
| Constructor and Description |
|---|
MetalRootPaneUI() |
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent c)
创建一个用户界面的一个
JRootPane。
|
void |
installUI(JComponent c)
调用查询执行
installUI安装必要的状态到了
JRootPane呈现金属质感的实施
RootPaneUI。
|
void |
propertyChange(PropertyChangeEvent e)
当属性更改时调用。
|
void |
uninstallUI(JComponent c)
调用超实施卸载的状态。
|
installComponents, installDefaults, installKeyboardActions, installListeners, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListenerscontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, updatepublic static ComponentUI createUI(JComponent c)
JRootPane。
c - jrootpane的rootpaneui将创建
public void installUI(JComponent c)
installUI安装必要的状态到了
JRootPane呈现金属质感的实施
RootPaneUI。如果对
JRootPane的
windowDecorationStyle财产以外的其他
JRootPane.NONE,这将添加一个自定义
Component渲染组件
JRootPane,以及安装在
JRootPane自定义
Border和
LayoutManager。
installUI 方法重写,继承类
BasicRootPaneUI
c - jrootpane安装状态到
ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()
public void uninstallUI(JComponent c)
JRootPane的
LayoutManager。如果
Component已添加到
JRootPane渲染窗口的装修风格,这种方法将它移除。同样,这将恢复的
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.