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, uninstallListeners
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
public 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.