模块 java.desktop

类 BasicInternalFrameUI

已知子类:
MetalInternalFrameUI , SynthInternalFrameUI

public class BasicInternalFrameUI extends InternalFrameUI
JInternalFrame 的基本 L&F 实现。
  • 字段详细信息

    • frame

      protected JInternalFrame  frame
      frame
    • borderListener

      protected MouseInputAdapter  borderListener
      边界监听
    • propertyChangeListener

      protected PropertyChangeListener  propertyChangeListener
      属性变化监听
    • internalFrameLayout

      protected LayoutManager  internalFrameLayout
      内部框架布局
    • componentListener

      protected ComponentListener  componentListener
      组件监听
    • glassPaneDispatcher

      protected MouseInputListener  glassPaneDispatcher
      玻璃板调度员
    • northPane

      protected JComponent  northPane
      北窗格
    • southPane

      protected JComponent  southPane
      南窗格
    • westPane

      protected JComponent  westPane
      西窗格
    • eastPane

      protected JComponent  eastPane
      东窗格
    • titlePane

      protected BasicInternalFrameTitlePane  titlePane
      标题栏
    • openMenuKey

      @Deprecated protected KeyStroke  openMenuKey
      已弃用。
      从 Java 2 平台 v1.3 开始。
      从 Java 2 平台 v1.3 开始,不再使用这个以前未记录的字段。键绑定现在由 LookAndFeel 定义,请参阅键绑定规范以获取更多详细信息。
  • 构造方法详细信息

    • BasicInternalFrameUI

      public BasicInternalFrameUI(JInternalFrame  b)
      构造一个 BasicInternalFrameUI
      参数:
      b - 内部框架
  • 方法详情

    • createUI

      public static ComponentUI  createUI(JComponent  b)
      返回一个组件 UI。
      参数:
      b - 一个组件
      返回:
      组件用户界面
    • installUI

      public void installUI(JComponent  c)
      安装用户界面。
      重写:
      installUI 在类 ComponentUI
      参数:
      c - 组件
      参见:
    • uninstallUI

      public void uninstallUI(JComponent  c)
      卸载用户界面。
      重写:
      uninstallUI 在类 ComponentUI
      参数:
      c - 组件
      参见:
    • installDefaults

      protected void installDefaults()
      安装默认值。
    • installKeyboardActions

      protected void installKeyboardActions()
      安装键盘操作。
    • installComponents

      protected void installComponents()
      安装组件。
    • installListeners

      protected void installListeners()
      安装监听。
      自从:
      1.3
    • uninstallDefaults

      protected void uninstallDefaults()
      卸载默认值。
    • uninstallComponents

      protected void uninstallComponents()
      卸载组件。
    • uninstallListeners

      protected void uninstallListeners()
      卸载监听。
      自从:
      1.3
    • uninstallKeyboardActions

      protected void uninstallKeyboardActions()
      卸载键盘操作。
    • createLayoutManager

      protected LayoutManager  createLayoutManager()
      创建布局管理器。
      返回:
      布局管理器
    • createPropertyChangeListener

      protected PropertyChangeListener  createPropertyChangeListener()
      创建属性更改监听。
      返回:
      属性更改监听
    • getPreferredSize

      public Dimension  getPreferredSize(JComponent  x)
      返回首选大小。
      重写:
      getPreferredSize 在类 ComponentUI
      参数:
      x - 组件
      返回:
      首选尺寸
      参见:
    • getMinimumSize

      public Dimension  getMinimumSize(JComponent  x)
      返回最小尺寸。
      重写:
      getMinimumSize 在类 ComponentUI
      参数:
      x - 组件
      返回:
      最小尺寸
      参见:
    • getMaximumSize

      public Dimension  getMaximumSize(JComponent  x)
      返回最大尺寸。
      重写:
      getMaximumSize 在类 ComponentUI
      参数:
      x - 组件
      返回:
      最大尺寸
      参见:
    • replacePane

      protected void replacePane(JComponent  currentPane, JComponent  newPane)
      newPane 上安装必要的鼠标处理程序并将其添加到框架中。 currentPane 的逆过程。
      参数:
      currentPane - 这个 Jcomponent 是当前正在查看的安装了鼠标处理程序的窗格
      newPane - 这个 Jcomponent 是将添加并安装鼠标处理程序的窗格
    • deinstallMouseHandlers

      protected void deinstallMouseHandlers(JComponent  c)
      卸载鼠标处理程序。
      参数:
      c - 组件
    • installMouseHandlers

      protected void installMouseHandlers(JComponent  c)
      安装鼠标处理程序。
      参数:
      c - 组件
    • createNorthPane

      protected JComponent  createNorthPane(JInternalFrame  w)
      创建北窗格。
      参数:
      w - 内部框架
      返回:
      北窗格
    • createSouthPane

      protected JComponent  createSouthPane(JInternalFrame  w)
      创建北窗格。
      参数:
      w - 内部框架
      返回:
      北窗格
    • createWestPane

      protected JComponent  createWestPane(JInternalFrame  w)
      创建西窗格。
      参数:
      w - 内部框架
      返回:
      西窗格
    • createEastPane

      protected JComponent  createEastPane(JInternalFrame  w)
      创建东窗格。
      参数:
      w - 内部框架
      返回:
      东窗格
    • createBorderListener

      protected MouseInputAdapter  createBorderListener(JInternalFrame  w)
      创建边界监听。
      参数:
      w - 内部框架
      返回:
      边界监听
    • createInternalFrameListener

      protected void createInternalFrameListener()
      创建内部框架监听。
    • isKeyBindingRegistered

      protected final boolean isKeyBindingRegistered()
      返回键绑定是否已注册。
      返回:
      键绑定是否注册
    • setKeyBindingRegistered

      protected final void setKeyBindingRegistered(boolean b)
      设置键绑定注册。
      参数:
      b - 键绑定注册的新值
    • isKeyBindingActive

      public final boolean isKeyBindingActive()
      返回键绑定是否处于活动状态。
      返回:
      键绑定是否处于活动状态
    • setKeyBindingActive

      protected final void setKeyBindingActive(boolean b)
      设置键绑定活动。
      参数:
      b - 键绑定活动的新值
    • setupMenuOpenKey

      protected void setupMenuOpenKey()
      设置菜单打开键。
    • setupMenuCloseKey

      protected void setupMenuCloseKey()
      设置菜单关闭键。
    • getNorthPane

      public JComponent  getNorthPane()
      返回北窗格。
      返回:
      北窗格
    • setNorthPane

      public void setNorthPane(JComponent  c)
      设置北窗格。
      参数:
      c - 新的北窗格
    • getSouthPane

      public JComponent  getSouthPane()
      返回南窗格。
      返回:
      南窗格
    • setSouthPane

      public void setSouthPane(JComponent  c)
      设置南窗格。
      参数:
      c - 新南窗格
    • getWestPane

      public JComponent  getWestPane()
      返回西窗格。
      返回:
      西窗格
    • setWestPane

      public void setWestPane(JComponent  c)
      设置西窗格。
      参数:
      c - 新西窗格
    • getEastPane

      public JComponent  getEastPane()
      返回东窗格。
      返回:
      东窗格
    • setEastPane

      public void setEastPane(JComponent  c)
      设置东窗格。
      参数:
      c - 新的东窗格
    • getDesktopManager

      protected DesktopManager  getDesktopManager()
      返回正确的 DesktopManager。调用 getDesktopPane() 以查找 JDesktop 组件并从中返回 desktopManager。如果失败,它将返回一个默认的 DesktopManager,它应该在任意父级中工作。
      返回:
      合适的 DesktopManager
    • createDesktopManager

      protected DesktopManager  createDesktopManager()
      创建桌面管理器。
      返回:
      桌面管理器
    • closeFrame

      protected void closeFrame(JInternalFrame  f)
      当用户想要关闭框架时调用此方法。 playCloseSound 动作被触发。此操作委托给桌面管理器。
      参数:
      f - 正在查看的 JInternalFrame
    • maximizeFrame

      protected void maximizeFrame(JInternalFrame  f)
      当用户想要最大化框架时调用此方法。 playMaximizeSound 动作被触发。此操作委托给桌面管理器。
      参数:
      f - 正在查看的 JInternalFrame
    • minimizeFrame

      protected void minimizeFrame(JInternalFrame  f)
      当用户想要最小化框架时调用此方法。 playRestoreDownSound 动作被触发。此操作委托给桌面管理器。
      参数:
      f - 正在查看的 JInternalFrame
    • iconifyFrame

      protected void iconifyFrame(JInternalFrame  f)
      当用户想要图标化框架时调用此方法。 playMinimizeSound 动作被触发。此操作委托给桌面管理器。
      参数:
      f - 正在查看的 JInternalFrame
    • deiconifyFrame

      protected void deiconifyFrame(JInternalFrame  f)
      当用户想要取消图标化框架时调用此方法。 playRestoreUpSound 动作被触发。此操作委托给桌面管理器。
      参数:
      f - 正在查看的 JInternalFrame
    • activateFrame

      protected void activateFrame(JInternalFrame  f)
      当框架被选中时调用此方法。此操作委托给桌面管理器。
      参数:
      f - 正在查看的 JInternalFrame
    • deactivateFrame

      protected void deactivateFrame(JInternalFrame  f)
      当不再选择框架时调用此方法。此操作委托给桌面管理器。
      参数:
      f - 正在查看的 JInternalFrame
    • createComponentListener

      protected ComponentListener  createComponentListener()
      创建一个组件监听。
      返回:
      组件监听
    • createGlassPaneDispatcher

      protected MouseInputListener  createGlassPaneDispatcher()
      创建一个 GlassPaneDispatcher
      返回:
      GlassPaneDispatcher