public class BasicInternalFrameUI extends InternalFrameUI
Modifier and Type | Class and Description |
---|---|
protected class |
BasicInternalFrameUI.BasicInternalFrameListener |
protected class |
BasicInternalFrameUI.BorderListener
监听边境调整。
|
protected class |
BasicInternalFrameUI.ComponentHandler |
protected class |
BasicInternalFrameUI.GlassPaneDispatcher |
class |
BasicInternalFrameUI.InternalFrameLayout |
class |
BasicInternalFrameUI.InternalFramePropertyChangeListener |
Modifier and Type | Field and Description |
---|---|
protected MouseInputAdapter |
borderListener |
protected ComponentListener |
componentListener |
protected JComponent |
eastPane |
protected JInternalFrame |
frame |
protected MouseInputListener |
glassPaneDispatcher |
protected LayoutManager |
internalFrameLayout |
protected JComponent |
northPane |
protected KeyStroke |
openMenuKey
过时的。
作为java 2平台V1.3。
|
protected PropertyChangeListener |
propertyChangeListener |
protected JComponent |
southPane |
protected BasicInternalFrameTitlePane |
titlePane |
protected JComponent |
westPane |
Constructor and Description |
---|
BasicInternalFrameUI(JInternalFrame b) |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
protected JInternalFrame frame
protected MouseInputAdapter borderListener
protected PropertyChangeListener propertyChangeListener
protected LayoutManager internalFrameLayout
protected ComponentListener componentListener
protected MouseInputListener glassPaneDispatcher
protected JComponent northPane
protected JComponent southPane
protected JComponent westPane
protected JComponent eastPane
protected BasicInternalFrameTitlePane titlePane
@Deprecated protected KeyStroke openMenuKey
public BasicInternalFrameUI(JInternalFrame b)
public static ComponentUI createUI(JComponent b)
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()
protected void installKeyboardActions()
protected void installComponents()
protected void installListeners()
protected void uninstallDefaults()
protected void uninstallComponents()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected LayoutManager createLayoutManager()
protected PropertyChangeListener createPropertyChangeListener()
public Dimension getPreferredSize(JComponent x)
ComponentUI
null
返回,首选大小将由组件的布局管理器的计算(这是与一个特定的布局管理器安装任何组件的首选方法)。此方法的默认实现将返回
null
。
getPreferredSize
方法重写,继承类
ComponentUI
x
优先度的被查询的成分;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
JComponent.getPreferredSize()
,
LayoutManager.preferredLayoutSize(java.awt.Container)
public Dimension getMinimumSize(JComponent x)
ComponentUI
null
返回,最小尺寸将由组件的布局管理器的计算(这是与一个特定的布局管理器安装任何组件的首选方法)。此方法的默认实现调用
getPreferredSize
和返回值。
getMinimumSize
方法重写,继承类
ComponentUI
x
最小尺寸的是被查询的成分;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
Dimension
对象或
null
JComponent.getMinimumSize()
,
LayoutManager.minimumLayoutSize(java.awt.Container)
,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public Dimension getMaximumSize(JComponent x)
ComponentUI
null
返回,最大规模将由组件的布局管理器的计算(这是与一个特定的布局管理器安装任何组件的首选方法)。此方法的默认实现调用
getPreferredSize
和返回值。
getMaximumSize
方法重写,继承类
ComponentUI
x
-其最大尺寸被查询的成分;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
Dimension
对象或
null
JComponent.getMaximumSize()
,
LayoutManager2.maximumLayoutSize(java.awt.Container)
protected void replacePane(JComponent currentPane, JComponent newPane)
newPane
鼠标并将其添加到框架。反向的
currentPane
过程。
protected void deinstallMouseHandlers(JComponent c)
protected void installMouseHandlers(JComponent c)
protected JComponent createNorthPane(JInternalFrame w)
protected JComponent createSouthPane(JInternalFrame w)
protected JComponent createWestPane(JInternalFrame w)
protected JComponent createEastPane(JInternalFrame w)
protected MouseInputAdapter createBorderListener(JInternalFrame w)
protected void createInternalFrameListener()
protected final boolean isKeyBindingRegistered()
protected final void setKeyBindingRegistered(boolean b)
public final boolean isKeyBindingActive()
protected final void setKeyBindingActive(boolean b)
protected void setupMenuOpenKey()
protected void setupMenuCloseKey()
public JComponent getNorthPane()
public void setNorthPane(JComponent c)
public JComponent getSouthPane()
public void setSouthPane(JComponent c)
public JComponent getWestPane()
public void setWestPane(JComponent c)
public JComponent getEastPane()
public void setEastPane(JComponent c)
protected DesktopManager getDesktopManager()
protected DesktopManager createDesktopManager()
protected void closeFrame(JInternalFrame f)
playCloseSound
行动被解雇了。这一行动是授予desktopmanager。
protected void maximizeFrame(JInternalFrame f)
playMaximizeSound
行动被解雇了。这一行动是授予desktopmanager。
protected void minimizeFrame(JInternalFrame f)
playRestoreDownSound
行动被解雇了。这一行动是授予desktopmanager。
protected void iconifyFrame(JInternalFrame f)
playMinimizeSound
行动被解雇了。这一行动是授予desktopmanager。
protected void deiconifyFrame(JInternalFrame f)
playRestoreUpSound
行动被解雇了。这一行动是授予desktopmanager。
protected void activateFrame(JInternalFrame f)
protected void deactivateFrame(JInternalFrame f)
protected ComponentListener createComponentListener()
protected MouseInputListener createGlassPaneDispatcher()
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.