public class MetalInternalFrameUI extends BasicInternalFrameUI
BasicInternalFrameUI.BasicInternalFrameListener, BasicInternalFrameUI.BorderListener, BasicInternalFrameUI.ComponentHandler, BasicInternalFrameUI.GlassPaneDispatcher, BasicInternalFrameUI.InternalFrameLayout, BasicInternalFrameUI.InternalFramePropertyChangeListener
Modifier and Type | Field and Description |
---|---|
protected static String |
IS_PALETTE |
borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane
Constructor and Description |
---|
MetalInternalFrameUI(JInternalFrame b) |
Modifier and Type | Method and Description |
---|---|
protected MouseInputAdapter |
createBorderListener(JInternalFrame w)
返回
MouseInputAdapter ,将安装在titlepane。
|
protected JComponent |
createNorthPane(JInternalFrame w) |
static ComponentUI |
createUI(JComponent c) |
protected void |
installKeyboardActions() |
protected void |
installListeners() |
void |
installUI(JComponent c)
配置指定的组件适当的外观和感觉。
|
void |
setPalette(boolean isPalette) |
protected void |
uninstallComponents() |
protected void |
uninstallKeyboardActions() |
protected void |
uninstallListeners() |
void |
uninstallUI(JComponent c)
逆转形态,完成指定的组件在
installUI 。
|
activateFrame, closeFrame, createComponentListener, createDesktopManager, createEastPane, createGlassPaneDispatcher, createInternalFrameListener, createLayoutManager, createPropertyChangeListener, createSouthPane, createWestPane, deactivateFrame, deiconifyFrame, deinstallMouseHandlers, getDesktopManager, getEastPane, getMaximumSize, getMinimumSize, getNorthPane, getPreferredSize, getSouthPane, getWestPane, iconifyFrame, installComponents, installDefaults, installMouseHandlers, isKeyBindingActive, isKeyBindingRegistered, maximizeFrame, minimizeFrame, replacePane, setEastPane, setKeyBindingActive, setKeyBindingRegistered, setNorthPane, setSouthPane, setupMenuCloseKey, setupMenuOpenKey, setWestPane, uninstallDefaults
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
protected static String IS_PALETTE
public MetalInternalFrameUI(JInternalFrame b)
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
ComponentUI
ComponentUI
实例被安装在指定组件的UI代理。这种方法应该完全配置的组件外观和感觉,包括以下内容:
LayoutManager
组件上的必要。PropertyChangeListener
变化适当。installUI
方法重写,继承类
BasicInternalFrameUI
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
方法重写,继承类
BasicInternalFrameUI
c
-从这个UI代理被删除的组件;这种说法常常被忽视,但可能如果UI对象是无状态的,共享由多个组件
ComponentUI.installUI(javax.swing.JComponent)
,
JComponent.updateUI()
protected void installListeners()
installListeners
方法重写,继承类
BasicInternalFrameUI
protected void uninstallListeners()
uninstallListeners
方法重写,继承类
BasicInternalFrameUI
protected void installKeyboardActions()
installKeyboardActions
方法重写,继承类
BasicInternalFrameUI
protected void uninstallKeyboardActions()
uninstallKeyboardActions
方法重写,继承类
BasicInternalFrameUI
protected void uninstallComponents()
uninstallComponents
方法重写,继承类
BasicInternalFrameUI
protected JComponent createNorthPane(JInternalFrame w)
createNorthPane
方法重写,继承类
BasicInternalFrameUI
public void setPalette(boolean isPalette)
protected MouseInputAdapter createBorderListener(JInternalFrame w)
MouseInputAdapter
,将安装在titlepane。
createBorderListener
方法重写,继承类
BasicInternalFrameUI
w
-
JInternalFrame
MouseInputAdapter
,将安装在titlepane。
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.