- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.InternalFrameUI
-
- javax.swing.plaf.basic.BasicInternalFrameUI
-
- 已知直接子类:
-
MetalInternalFrameUI,SynthInternalFrameUI
public class BasicInternalFrameUI extends InternalFrameUI
JInternalFrame的基本L&F实现。
-
-
嵌套类汇总
嵌套类 变量和类型 类 描述 protected classBasicInternalFrameUI.BasicInternalFrameListener基本的内部框架监听器。protected classBasicInternalFrameUI.BorderListener收听边界调整。protected classBasicInternalFrameUI.ComponentHandler组件处理程序protected classBasicInternalFrameUI.GlassPaneDispatcher玻璃窗格调度员。classBasicInternalFrameUI.InternalFrameLayout内部框架布局。classBasicInternalFrameUI.InternalFramePropertyChangeListener内部框架属性更改侦听器。
-
字段汇总
字段 变量和类型 字段 描述 protected MouseInputAdapterborderListener边境听众protected ComponentListenercomponentListener组件监听器protected JComponenteastPane东窗格protected JInternalFrameframe帧protected MouseInputListenerglassPaneDispatcher玻璃窗格调度员protected LayoutManagerinternalFrameLayout内部框架布局protected JComponentnorthPane北窗格protected KeyStrokeopenMenuKey已过时。截至Java 2平台v1.3。protected PropertyChangeListenerpropertyChangeListener财产变更听众protected JComponentsouthPane南窗格protected BasicInternalFrameTitlePanetitlePane标题窗格protected JComponentwestPane西窗格
-
构造方法摘要
构造方法 构造器 描述 BasicInternalFrameUI(JInternalFrame b)构造一个BasicInternalFrameUI。
-
方法摘要
-
声明方法的类 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
-
-
-
-
字段详细信息
-
frame
protected JInternalFrame 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
Deprecated.As of Java 2 platform v1.3.从Java 2平台v1.3开始,不再使用此前未记录的字段。 键绑定现在由LookAndFeel定义,请参阅键绑定规范以获取更多详细信息。
-
-
构造方法详细信息
-
BasicInternalFrameUI
public BasicInternalFrameUI(JInternalFrame b)
构造一个BasicInternalFrameUI。- 参数
-
b- 内部框架
-
-
方法详细信息
-
createUI
public static ComponentUI createUI(JComponent b)
返回组件UI。- 参数
-
b- 一个组件 - 结果
- 组件UI
-
installUI
public void installUI(JComponent c)
安装UI。
-
uninstallUI
public void uninstallUI(JComponent c)
卸载UI。- 重写:
-
uninstallUI类ComponentUI - 参数
-
c- 组件 - 另请参见:
-
ComponentUI.installUI(javax.swing.JComponent),JComponent.updateUI()
-
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- 组件 - 结果
- 首选尺寸
- 另请参见:
-
JComponent.getPreferredSize(),LayoutManager.preferredLayoutSize(java.awt.Container)
-
getMinimumSize
public Dimension getMinimumSize(JComponent x)
返回最小大小。
-
getMaximumSize
public Dimension getMaximumSize(JComponent x)
返回最大大小。- 重写:
-
getMaximumSize类,ComponentUI - 参数
-
x- 组件 - 结果
- 最大尺寸
- 另请参见:
-
JComponent.getMaximumSize(),LayoutManager2.maximumLayoutSize(java.awt.Container)
-
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动作被触发。 此操作委派给desktopManager。- 参数
-
f- 正在浏览JInternalFrame
-
maximizeFrame
protected void maximizeFrame(JInternalFrame f)
当用户想要最大化帧时调用此方法。playMaximizeSound动作被触发。 此操作委派给desktopManager。- 参数
-
f- 正在浏览的JInternalFrame
-
minimizeFrame
protected void minimizeFrame(JInternalFrame f)
当用户想要最小化帧时调用该方法。playRestoreDownSound动作被触发。 此操作委派给desktopManager。- 参数
-
f- 正在浏览的JInternalFrame
-
iconifyFrame
protected void iconifyFrame(JInternalFrame f)
当用户想要图标化帧时调用此方法。playMinimizeSound动作被触发。 此操作委派给desktopManager。- 参数
-
f- 正在浏览的JInternalFrame
-
deiconifyFrame
protected void deiconifyFrame(JInternalFrame f)
当用户想要对帧进行去图标化时,调用此方法。playRestoreUpSound动作被触发。 此操作委派给desktopManager。- 参数
-
f- 正在浏览的JInternalFrame
-
activateFrame
protected void activateFrame(JInternalFrame f)
选择框架时调用此方法。 此操作委派给desktopManager。- 参数
-
f- 正在浏览JInternalFrame
-
deactivateFrame
protected void deactivateFrame(JInternalFrame f)
不再选择框架时调用此方法。 此操作委派给desktopManager。- 参数
-
f- 正在浏览的JInternalFrame
-
createComponentListener
protected ComponentListener createComponentListener()
创建组件侦听器。- 结果
- 组件监听器
-
createGlassPaneDispatcher
protected MouseInputListener createGlassPaneDispatcher()
创建一个GlassPaneDispatcher。- 结果
-
GlassPaneDispatcher
-
-