模块 java.desktop

类 BasicRootPaneUI

所有已实现的接口:
PropertyChangeListener , EventListener
已知子类:
MetalRootPaneUI , SynthRootPaneUI

public class BasicRootPaneUI extends RootPaneUI implements PropertyChangeListener
RootPaneUI 的基本实现,所有 JRootPane 实例共享一个。
自从:
1.3
  • 构造方法详细信息

    • BasicRootPaneUI

      public BasicRootPaneUI()
      构造一个 BasicRootPaneUI
  • 方法详情

    • createUI

      public static ComponentUI  createUI(JComponent  c)
      返回 BasicRootPaneUI 的新实例。
      参数:
      c - 一个组件
      返回:
      BasicRootPaneUI 的新实例
    • installDefaults

      protected void installDefaults(JRootPane  c)
      安装默认属性。
      参数:
      c - JRootPane 的实例
    • installComponents

      protected void installComponents(JRootPane  root)
      安装组件。
      参数:
      root - JRootPane 的实例
    • installListeners

      protected void installListeners(JRootPane  root)
      注册听众。
      参数:
      root - JRootPane 的实例
    • installKeyboardActions

      protected void installKeyboardActions(JRootPane  root)
      注册键盘操作。
      参数:
      root - JRootPane 的实例
    • uninstallDefaults

      protected void uninstallDefaults(JRootPane  root)
      卸载默认属性。
      参数:
      root - JRootPane 的实例
    • uninstallComponents

      protected void uninstallComponents(JRootPane  root)
      注销组件。
      参数:
      root - JRootPane 的实例
    • uninstallListeners

      protected void uninstallListeners(JRootPane  root)
      注销听众。
      参数:
      root - JRootPane 的实例
    • uninstallKeyboardActions

      protected void uninstallKeyboardActions(JRootPane  root)
      注销键盘操作。
      参数:
      root - JRootPane 的实例
    • propertyChange

      public void propertyChange(PropertyChangeEvent  e)
      当根窗格上的属性更改时调用。如果事件指示 defaultButton 已更改,这将重新安装键盘操作。
      指定者:
      propertyChange 在接口 PropertyChangeListener
      参数:
      e - 描述事件源和已更改属性的 PropertyChangeEvent 对象。