public class BasicRootPaneUI extends RootPaneUI implements PropertyChangeListener
Constructor and Description |
---|
BasicRootPaneUI() |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c) |
protected void |
installComponents(JRootPane root) |
protected void |
installDefaults(JRootPane c) |
protected void |
installKeyboardActions(JRootPane root) |
protected void |
installListeners(JRootPane root) |
void |
installUI(JComponent c)
配置指定的组件适当的外观和感觉。
|
void |
propertyChange(PropertyChangeEvent e)
当在根窗格上的属性更改时调用。
|
protected void |
uninstallComponents(JRootPane root) |
protected void |
uninstallDefaults(JRootPane root) |
protected void |
uninstallKeyboardActions(JRootPane root) |
protected void |
uninstallListeners(JRootPane root) |
void |
uninstallUI(JComponent c)
逆转形态,完成指定的组件在
installUI 。
|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
ComponentUI
ComponentUI
实例被安装在指定组件的UI代理。这种方法应该完全配置的组件外观和感觉,包括以下内容:
LayoutManager
组件上的必要。PropertyChangeListener
变化适当。installUI
方法重写,继承类
ComponentUI
c
-组件,UI代理被安装
ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void uninstallUI(JComponent c)
ComponentUI
installUI
。这个方法被调用时,这个
UIComponent
实例被作为指定组件的UI代理删除。这种方法应该撤消配置进行
installUI
,小心留下的
JComponent
实例在干净的状态(没有多余的听众,外观和感觉的特定属性的对象,等)。这应包括以下几个方面:
uninstallUI
方法重写,继承类
ComponentUI
c
-从这个UI代理被删除的组件;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
ComponentUI.installUI(javax.swing.JComponent)
,
JComponent.updateUI()
protected void installDefaults(JRootPane c)
protected void installComponents(JRootPane root)
protected void installListeners(JRootPane root)
protected void installKeyboardActions(JRootPane root)
protected void uninstallDefaults(JRootPane root)
protected void uninstallComponents(JRootPane root)
protected void uninstallListeners(JRootPane root)
protected void uninstallKeyboardActions(JRootPane root)
public void propertyChange(PropertyChangeEvent e)
defaultButton
已经改变,这将重新安装键盘动作。
propertyChange
接口
PropertyChangeListener
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.