- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.plaf.basic.BasicInternalFrameTitlePane
-
- 实现的所有接口
-
ImageObserver,MenuContainer,Serializable
- 已知直接子类:
-
MetalInternalFrameTitlePane
public class BasicInternalFrameTitlePane extends JComponent
管理基本标题栏的类警告:此类的序列化对象与以后的Swing版本不兼容。 当前的序列化支持适用于运行相同版本Swing的应用程序之间的短期存储或RMI。 从1.4开始,
java.beans软件包中添加了对所有JavaBeansjava.beans长期存储的支持。 请参阅XMLEncoder。- 另请参见:
- Serialized Form
-
-
嵌套类汇总
嵌套类 变量和类型 类 描述 classBasicInternalFrameTitlePane.CloseAction该类应被视为“受保护”的内部类。classBasicInternalFrameTitlePane.IconifyAction该类应被视为“受保护”的内部类。classBasicInternalFrameTitlePane.MaximizeAction该类应被视为“受保护”的内部类。classBasicInternalFrameTitlePane.MoveAction该类应被视为“受保护”的内部类。classBasicInternalFrameTitlePane.PropertyChangeHandler该类应被视为“受保护”的内部类。classBasicInternalFrameTitlePane.RestoreAction该类应被视为“受保护”的内部类。classBasicInternalFrameTitlePane.SizeAction该类应被视为“受保护”的内部类。classBasicInternalFrameTitlePane.SystemMenuBar该类应被视为“受保护”的内部类。classBasicInternalFrameTitlePane.TitlePaneLayout该类应被视为“受保护”的内部类。-
嵌套类/接口声明在类 javax.swing.JComponent
JComponent.AccessibleJComponent
-
嵌套类/接口声明在类 java.awt.Container
Container.AccessibleAWTContainer
-
-
字段汇总
字段 变量和类型 字段 描述 protected static StringCLOSE_CMD关闭按钮文本属性。protected ActioncloseActionCloseAction的实例。protected JButtoncloseButton关闭按钮。protected IconcloseIcon关闭图标。protected JInternalFrameframeJInternalFrame的实例。protected JButtoniconButtoniconify按钮。protected IconiconIconiconify图标。protected static StringICONIFY_CMD最小化按钮文本属性。protected ActioniconifyActionIconifyAction的实例。protected JButtonmaxButton最大化按钮。protected IconmaxIcon最大化图标。protected static StringMAXIMIZE_CMD最大化按钮文本属性。protected ActionmaximizeActionMaximizeAction的实例。protected JMenuBarmenuBarJMenuBar的实例。protected IconminIcon最小化图标。protected static StringMOVE_CMD移动按钮文本属性。protected ActionmoveActionMoveAction的实例。protected ColornotSelectedTextColor未选文本的颜色。protected ColornotSelectedTitleColor未选择标题的颜色。protected PropertyChangeListenerpropertyChangeListenerPropertyChangeListener的实例。protected static StringRESTORE_CMD还原按钮文本属性。protected ActionrestoreActionRestoreAction的实例。protected ColorselectedTextColor所选文本的颜色。protected ColorselectedTitleColor所选标题的颜色。protected static StringSIZE_CMD大小按钮文本属性。protected ActionsizeActionSizeAction的实例。protected JMenuwindowMenuJMenu的实例。-
声明的属性在类 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 voidaddSubComponents()添加子组件。protected voidaddSystemMenuItems(JMenu systemMenu)将系统菜单项添加到systemMenu。protected voidassembleSystemMenu()组装系统菜单。protected voidcreateActions()创建动作。protected voidcreateButtons()创建按钮。protected LayoutManagercreateLayout()返回布局管理器。protected PropertyChangeListenercreatePropertyChangeListener()返回PropertyChangeListener的实例。protected JMenucreateSystemMenu()返回JMenu的新实例。protected JMenuBarcreateSystemMenuBar()返回JMenuBar的新实例。protected voidenableActions()启用操作。protected StringgetTitle(String text, FontMetrics fm, int availTextWidth)返回标题。protected voidinstallDefaults()安装默认属性。protected voidinstallListeners()注册听众。protected voidinstallTitlePane()安装标题窗格。protected voidpaintTitleBackground(Graphics g)从paintComponent调用。protected voidpostClosingEvent(JInternalFrame frame)将类似WINDOW_CLOSING的事件发布到框架,以便可以将其视为常规Frame。protected voidsetButtonIcons()设置按钮图标。protected voidshowSystemMenu()显示系统菜单。protected voiduninstallDefaults()卸载默认属性。protected voiduninstallListeners()取消注册听众。-
声明方法的类 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()
返回布局管理器。- 结果
- 布局管理员
-
-