java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.InternalFrameUI
javax.swing.plaf.basic.BasicInternalFrameUI
- 直接已知的子类:
-
MetalInternalFrameUI,SynthInternalFrameUI
JInternalFrame的基本外观实现。
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class基本内部框架监听器。protected class监听边框调整。protected class组件处理程序。protected class玻璃窗格分发器。class内部框架布局。class内部框架属性更改监听器。 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MouseInputAdapter边框监听器protected ComponentListener组件监听器protected JComponent东侧窗格protected JInternalFrame框架protected MouseInputListener玻璃窗格分发器protected LayoutManager内部框架布局protected JComponent北侧窗格protected KeyStroke已弃用。自Java 2平台v1.3起。protected PropertyChangeListener属性更改监听器protected JComponent南侧窗格protected BasicInternalFrameTitlePane标题窗格protected JComponent西侧窗格 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void当框架被选中时调用此方法。protected void当用户想要关闭框架时调用此方法。protected MouseInputAdapter创建边框监听器。protected ComponentListener创建组件监听器。protected DesktopManager创建桌面管理器。protected JComponent创建东侧窗格。protected MouseInputListener创建一个GlassPaneDispatcher。protected void创建内部框架监听器。protected LayoutManager创建布局管理器。protected JComponent创建北侧窗格。protected PropertyChangeListener创建属性更改监听器。protected JComponent创建北侧窗格。static ComponentUI返回一个组件UI。protected JComponent创建西侧窗格。protected void当框架不再被选中时调用此方法。protected void当用户想要最小化框架时调用此方法。protected void卸载鼠标处理程序。protected DesktopManager返回正确的DesktopManager。返回东侧窗格。返回最大尺寸。返回最小尺寸。返回北侧窗格。返回首选尺寸。返回南侧窗格。返回西侧窗格。protected void当用户想要将框架图标化时调用此方法。protected void安装组件。protected void安装默认值。protected void安装键盘操作。protected void安装监听器。protected void安装鼠标处理程序。void安装UI。final boolean返回键绑定是否激活。protected final boolean返回键绑定是否已注册。protected void当用户想要最大化框架时调用此方法。protected void当用户想要最小化框架时调用此方法。protected voidreplacePane(JComponent currentPane, JComponent newPane) 在newPane上安装必要的鼠标处理程序,并将其添加到框架。对currentPane执行相反的过程。void设置东侧窗格。protected final voidsetKeyBindingActive(boolean b) 设置键绑定活动性。protected final voidsetKeyBindingRegistered(boolean b) 设置键绑定注册。void设置北侧窗格。void设置南侧窗格。protected void设置菜单关闭键。protected void设置菜单打开键。void设置西侧窗格。protected void卸载组件。protected void卸载默认值。protected void卸载键盘操作。protected void卸载监听器。void卸载UI。Methods declared in class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
-
Field Details
-
frame
框架 -
borderListener
边框监听器 -
propertyChangeListener
属性更改监听器 -
internalFrameLayout
内部框架布局 -
componentListener
组件监听器 -
glassPaneDispatcher
玻璃窗格分发器 -
northPane
北侧窗格 -
southPane
南侧窗格 -
westPane
西侧窗格 -
eastPane
东侧窗格 -
titlePane
标题窗格 -
openMenuKey
Deprecated.As of Java 2 platform v1.3.从Java 2平台v1.3开始,此先前未记录的字段不再使用。现在键绑定由LookAndFeel定义,请参阅键绑定规范以获取更多详细信息。
-
-
Constructor Details
-
BasicInternalFrameUI
构造一个BasicInternalFrameUI。- 参数:
-
b- 内部框架
-
-
Method Details
-
createUI
返回一个组件UI。- 参数:
-
b- 一个组件 - 返回:
- 一个组件UI
-
installUI
安装UI。- 覆盖:
-
installUI在类ComponentUI中 - 参数:
-
c- 组件 - 参见:
-
uninstallUI
卸载UI。- 覆盖:
-
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
创建布局管理器。- 返回:
- 布局管理器
-
createPropertyChangeListener
创建属性更改监听器。- 返回:
- 属性更改监听器
-
getPreferredSize
返回首选尺寸。- 覆盖:
-
getPreferredSize在类ComponentUI中 - 参数:
-
x- 组件 - 返回:
- 首选尺寸
- 参见:
-
getMinimumSize
返回最小尺寸。- 覆盖:
-
getMinimumSize在类ComponentUI中 - 参数:
-
x- 组件 - 返回:
- 最小尺寸
- 参见:
-
getMaximumSize
返回最大尺寸。- 覆盖:
-
getMaximumSize在类ComponentUI中 - 参数:
-
x- 组件 - 返回:
- 最大尺寸
- 参见:
-
replacePane
在newPane上安装必要的鼠标处理程序,并将其添加到框架。对currentPane执行相反的过程。- 参数:
-
currentPane- 正在查看的当前窗格,已安装鼠标处理程序的Jcomponent -
newPane- 将要添加并安装鼠标处理程序的窗格Jcomponent
-
deinstallMouseHandlers
卸载鼠标处理程序。- 参数:
-
c- 组件
-
installMouseHandlers
安装鼠标处理程序。- 参数:
-
c- 组件
-
createNorthPane
创建北侧窗格。- 参数:
-
w- 内部框架 - 返回:
- 北侧窗格
-
createSouthPane
创建北部窗格。- 参数:
-
w- 内部框架 - 返回:
- 北部窗格
-
createWestPane
创建西部窗格。- 参数:
-
w- 内部框架 - 返回:
- 西部窗格
-
createEastPane
创建东部窗格。- 参数:
-
w- 内部框架 - 返回:
- 东部窗格
-
createBorderListener
创建边框监听器。- 参数:
-
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
返回北部窗格。- 返回:
- 北部窗格
-
setNorthPane
设置北部窗格。- 参数:
-
c- 新的北部窗格
-
getSouthPane
返回南部窗格。- 返回:
- 南部窗格
-
setSouthPane
设置南部窗格。- 参数:
-
c- 新的南部窗格
-
getWestPane
返回西部窗格。- 返回:
- 西部窗格
-
setWestPane
设置西部窗格。- 参数:
-
c- 新的西部窗格
-
getEastPane
返回东部窗格。- 返回:
- 东部窗格
-
setEastPane
设置东部窗格。- 参数:
-
c- 新的东部窗格
-
getDesktopManager
返回适当的DesktopManager。调用getDesktopPane()查找JDesktop组件并从中返回desktopManager。如果失败,将返回一个默认的DesktopManager,应该适用于任意父级。- 返回:
- 适当的DesktopManager
-
createDesktopManager
创建桌面管理器。- 返回:
- 桌面管理器
-
closeFrame
当用户想要关闭框架时调用此方法。触发playCloseSound操作。此操作委托给desktopManager。- 参数:
-
f- 正在查看的JInternalFrame
-
maximizeFrame
当用户想要最大化框架时调用此方法。触发playMaximizeSound操作。此操作委托给desktopManager。- 参数:
-
f- 正在查看的JInternalFrame
-
minimizeFrame
当用户想要最小化框架时调用此方法。触发playRestoreDownSound操作。此操作委托给desktopManager。- 参数:
-
f- 正在查看的JInternalFrame
-
iconifyFrame
当用户想要将框架图标化时调用此方法。触发playMinimizeSound操作。此操作委托给desktopManager。- 参数:
-
f- 正在查看的JInternalFrame
-
deiconifyFrame
当用户想要取消框架图标化时调用此方法。触发playRestoreUpSound操作。此操作委托给desktopManager。- 参数:
-
f- 正在查看的JInternalFrame
-
activateFrame
当框架被选中时调用此方法。此操作委托给desktopManager。- 参数:
-
f- 正在查看的JInternalFrame
-
deactivateFrame
当框架不再被选中时调用此方法。此操作委托给desktopManager。- 参数:
-
f- 正在查看的JInternalFrame
-
createComponentListener
创建一个组件监听器。- 返回:
- 一个组件监听器
-
createGlassPaneDispatcher
创建一个GlassPaneDispatcher。- 返回:
-
一个
GlassPaneDispatcher
-