- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.plaf.basic.BasicInternalFrameTitlePane
-
- 实现的所有接口
-
ImageObserver
,MenuContainer
,Serializable
- 已知直接子类:
-
MetalInternalFrameTitlePane
public class BasicInternalFrameTitlePaneextends JComponent
管理基本标题栏的类警告:此类的序列化对象与以后的Swing版本不兼容。 当前的序列化支持适用于运行相同版本Swing的应用程序之间的短期存储或RMI。 从1.4开始,
java.beans
软件包中添加了对所有JavaBeansjava.beans
长期存储的支持。 请参阅XMLEncoder
。- 另请参见:
- Serialized Form
-
-
嵌套类汇总
嵌套类 变量和类型 类 描述 class
BasicInternalFrameTitlePane.CloseAction
该类应被视为“受保护”的内部类。class
BasicInternalFrameTitlePane.IconifyAction
该类应被视为“受保护”的内部类。class
BasicInternalFrameTitlePane.MaximizeAction
该类应被视为“受保护”的内部类。class
BasicInternalFrameTitlePane.MoveAction
该类应被视为“受保护”的内部类。class
BasicInternalFrameTitlePane.PropertyChangeHandler
该类应被视为“受保护”的内部类。class
BasicInternalFrameTitlePane.RestoreAction
该类应被视为“受保护”的内部类。class
BasicInternalFrameTitlePane.SizeAction
该类应被视为“受保护”的内部类。class
BasicInternalFrameTitlePane.SystemMenuBar
该类应被视为“受保护”的内部类。class
BasicInternalFrameTitlePane.TitlePaneLayout
该类应被视为“受保护”的内部类。-
嵌套类/接口声明在类 javax.swing.JComponent
JComponent.AccessibleJComponent
-
嵌套类/接口声明在类 java.awt.Container
Container.AccessibleAWTContainer
-
-
字段汇总
字段 变量和类型 字段 描述 protected static String
CLOSE_CMD
关闭按钮文本属性。protected Action
closeAction
CloseAction
的实例。protected JButton
closeButton
关闭按钮。protected Icon
closeIcon
关闭图标。protected JInternalFrame
frame
JInternalFrame
的实例。protected JButton
iconButton
iconify按钮。protected Icon
iconIcon
iconify图标。protected static String
ICONIFY_CMD
最小化按钮文本属性。protected Action
iconifyAction
IconifyAction
的实例。protected JButton
maxButton
最大化按钮。protected Icon
maxIcon
最大化图标。protected static String
MAXIMIZE_CMD
最大化按钮文本属性。protected Action
maximizeAction
MaximizeAction
的实例。protected JMenuBar
menuBar
JMenuBar
的实例。protected Icon
minIcon
最小化图标。protected static String
MOVE_CMD
移动按钮文本属性。protected Action
moveAction
MoveAction
的实例。protected Color
notSelectedTextColor
未选文本的颜色。protected Color
notSelectedTitleColor
未选择标题的颜色。protected PropertyChangeListener
propertyChangeListener
PropertyChangeListener
的实例。protected static String
RESTORE_CMD
还原按钮文本属性。protected Action
restoreAction
RestoreAction
的实例。protected Color
selectedTextColor
所选文本的颜色。protected Color
selectedTitleColor
所选标题的颜色。protected static String
SIZE_CMD
大小按钮文本属性。protected Action
sizeAction
SizeAction
的实例。protected JMenu
windowMenu
JMenu
的实例。-
声明的属性在类 javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
声明的属性在类 java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields declared in interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
构造方法摘要
构造方法 构造器 描述 BasicInternalFrameTitlePane(JInternalFrame f)
构造一个BasicInternalFrameTitlePane
的新实例。
-
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 protected void
addSubComponents()
添加子组件。protected void
addSystemMenuItems(JMenu systemMenu)
将系统菜单项添加到systemMenu
。protected void
assembleSystemMenu()
组装系统菜单。protected void
createActions()
创建动作。protected void
createButtons()
创建按钮。protected LayoutManager
createLayout()
返回布局管理器。protected PropertyChangeListener
createPropertyChangeListener()
返回PropertyChangeListener
的实例。protected JMenu
createSystemMenu()
返回JMenu
的新实例。protected JMenuBar
createSystemMenuBar()
返回JMenuBar
的新实例。protected void
enableActions()
启用操作。protected String
getTitle(String text, FontMetrics fm, int availTextWidth)
返回标题。protected void
installDefaults()
安装默认属性。protected void
installListeners()
注册听众。protected void
installTitlePane()
安装标题窗格。protected void
paintTitleBackground(Graphics g)
从paintComponent调用。protected void
postClosingEvent(JInternalFrame frame)
将类似WINDOW_CLOSING的事件发布到框架,以便可以将其视为常规Frame
。protected void
setButtonIcons()
设置按钮图标。protected void
showSystemMenu()
显示系统菜单。protected void
uninstallDefaults()
卸载默认属性。protected void
uninstallListeners()
取消注册听众。-
声明方法的类 javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
-
声明方法的类 java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
声明方法的类 java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
字段详细信息
-
menuBar
protected JMenuBar menuBar
JMenuBar
的实例。
-
iconButton
protected JButton iconButton
iconify按钮。
-
maxButton
protected JButton maxButton
最大化按钮。
-
closeButton
protected JButton closeButton
关闭按钮。
-
windowMenu
protected JMenu windowMenu
JMenu
的实例。
-
frame
protected JInternalFrame frame
JInternalFrame
的实例。
-
selectedTitleColor
protected Color selectedTitleColor
所选标题的颜色。
-
selectedTextColor
protected Color selectedTextColor
所选文本的颜色。
-
notSelectedTitleColor
protected Color notSelectedTitleColor
未选择标题的颜色。
-
notSelectedTextColor
protected Color notSelectedTextColor
未选文本的颜色。
-
maxIcon
protected Icon maxIcon
最大化图标。
-
minIcon
protected Icon minIcon
最小化图标。
-
iconIcon
protected Icon iconIcon
iconify图标。
-
closeIcon
protected Icon closeIcon
关闭图标。
-
propertyChangeListener
protected PropertyChangeListener propertyChangeListener
PropertyChangeListener
的实例。
-
closeAction
protected Action closeAction
CloseAction
的实例。
-
maximizeAction
protected Action maximizeAction
MaximizeAction
的实例。
-
iconifyAction
protected Action iconifyAction
IconifyAction
的实例。
-
restoreAction
protected Action restoreAction
RestoreAction
的实例。
-
moveAction
protected Action moveAction
MoveAction
的实例。
-
sizeAction
protected Action sizeAction
SizeAction
的实例。
-
CLOSE_CMD
protected static final String CLOSE_CMD
关闭按钮文本属性。
-
ICONIFY_CMD
protected static final String ICONIFY_CMD
最小化按钮文本属性。
-
RESTORE_CMD
protected static final String RESTORE_CMD
还原按钮文本属性。
-
MAXIMIZE_CMD
protected static final String MAXIMIZE_CMD
最大化按钮文本属性。
-
MOVE_CMD
protected static final String MOVE_CMD
移动按钮文本属性。
-
SIZE_CMD
protected static final String SIZE_CMD
大小按钮文本属性。
-
-
构造方法详细信息
-
BasicInternalFrameTitlePane
public BasicInternalFrameTitlePane(JInternalFrame f)
构造一个BasicInternalFrameTitlePane
的新实例。- 参数
-
f
-实例JInternalFrame
-
-
方法详细信息
-
installTitlePane
protected void installTitlePane()
安装标题窗格。
-
addSubComponents
protected void addSubComponents()
添加子组件。
-
createActions
protected void createActions()
创建动作。
-
installListeners
protected void installListeners()
注册听众。
-
uninstallListeners
protected void uninstallListeners()
取消注册听众。
-
installDefaults
protected void installDefaults()
安装默认属性。
-
uninstallDefaults
protected void uninstallDefaults()
卸载默认属性。
-
createButtons
protected void createButtons()
创建按钮。
-
setButtonIcons
protected void setButtonIcons()
设置按钮图标。
-
assembleSystemMenu
protected void assembleSystemMenu()
组装系统菜单。
-
addSystemMenuItems
protected void addSystemMenuItems(JMenu systemMenu)
将系统菜单项添加到systemMenu
。- 参数
-
systemMenu
-实例JMenu
-
createSystemMenu
protected JMenu createSystemMenu()
返回JMenu
的新实例。- 结果
-
JMenu
的新实例
-
createSystemMenuBar
protected JMenuBar createSystemMenuBar()
返回JMenuBar
的新实例。- 结果
-
JMenuBar
的新实例
-
showSystemMenu
protected void showSystemMenu()
显示系统菜单。
-
paintTitleBackground
protected void paintTitleBackground(Graphics g)
从paintComponent调用。 绘制标题窗格的背景。 然后,所有文本和图标将呈现在此背景之上。- 参数
-
g
- 用于渲染背景的图形 - 从以下版本开始:
- 1.4
-
getTitle
protected String getTitle(String text, FontMetrics fm, int availTextWidth)
返回标题。- 参数
-
text
- 文本 -
fm
-实例FontMetrics
-
availTextWidth
- 可用的文本宽度 - 结果
- 标题。
-
postClosingEvent
protected void postClosingEvent(JInternalFrame frame)
将类似WINDOW_CLOSING的事件发布到框架,以便可以将其视为常规Frame
。- 参数
-
frame
-实例JInternalFrame
-
enableActions
protected void enableActions()
启用操作。
-
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener()
返回PropertyChangeListener
的实例。- 结果
-
PropertyChangeListener
一个实例
-
createLayout
protected LayoutManager createLayout()
返回布局管理器。- 结果
- 布局管理员
-
-