当前页面:
在线文档首页 >
JavaTM 2 Platform Standard Edition 6.0 API 规范中文版
MetalInternalFrameTitlePane (Java Platform SE 6) - JavaTM 2 Platform Standard Edition 6.0 API 规范中文版
javax.swing.plaf.metal
类 MetalInternalFrameTitlePane
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.plaf.basic.BasicInternalFrameTitlePane
javax.swing.plaf.metal.MetalInternalFrameTitlePane
- 所有已实现的接口:
- ImageObserver, MenuContainer, Serializable
public class MetalInternalFrameTitlePane
- extends BasicInternalFrameTitlePane
管理 JLF 标题栏的类
- 从以下版本开始:
- 1.3
从类 javax.swing.plaf.basic.BasicInternalFrameTitlePane 继承的字段 |
CLOSE_CMD, closeAction, closeButton, closeIcon, frame, iconButton, iconIcon, ICONIFY_CMD, iconifyAction, maxButton, maxIcon, MAXIMIZE_CMD, maximizeAction, menuBar, minIcon, MOVE_CMD, moveAction, notSelectedTextColor, notSelectedTitleColor, propertyChangeListener, RESTORE_CMD, restoreAction, selectedTextColor, selectedTitleColor, SIZE_CMD, sizeAction, windowMenu |
从类 javax.swing.plaf.basic.BasicInternalFrameTitlePane 继承的方法 |
createActions, createSystemMenu, createSystemMenuBar, enableActions, getTitle, installListeners, installTitlePane, paintTitleBackground, postClosingEvent, setButtonIcons, uninstallListeners |
从类 javax.swing.JComponent 继承的方法 |
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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, transferFocusBackward, 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, 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, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
isPalette
protected boolean isPalette
paletteCloseIcon
protected Icon paletteCloseIcon
paletteTitleHeight
protected int paletteTitleHeight
MetalInternalFrameTitlePane
public MetalInternalFrameTitlePane(JInternalFrame f)
addNotify
public void addNotify()
- 从类
JComponent
复制的描述
- 通知此组件它现在已有了一个父组件。调用此方法时,通过
KeyboardAction
事件侦听器设置父组件链。
- 覆盖:
- 类
JComponent
中的 addNotify
- 另请参见:
JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)
installDefaults
protected void installDefaults()
- 覆盖:
- 类
BasicInternalFrameTitlePane
中的 installDefaults
uninstallDefaults
protected void uninstallDefaults()
- 覆盖:
- 类
BasicInternalFrameTitlePane
中的 uninstallDefaults
createButtons
protected void createButtons()
- 覆盖:
- 类
BasicInternalFrameTitlePane
中的 createButtons
assembleSystemMenu
protected void assembleSystemMenu()
- 重写父级的方法,使其不执行任何操作。Metal 窗体没有系统菜单。
- 覆盖:
- 类
BasicInternalFrameTitlePane
中的 assembleSystemMenu
addSystemMenuItems
protected void addSystemMenuItems(JMenu systemMenu)
- 重写父级的方法,使其不执行任何操作。Metal 窗体没有系统菜单。
- 覆盖:
- 类
BasicInternalFrameTitlePane
中的 addSystemMenuItems
showSystemMenu
protected void showSystemMenu()
- 重写父级的方法,使其不执行任何操作。Metal 窗体没有系统菜单。
- 覆盖:
- 类
BasicInternalFrameTitlePane
中的 showSystemMenu
addSubComponents
protected void addSubComponents()
- 重写父级的方法,避免创建一个菜单栏。Metal 窗体没有系统菜单。
- 覆盖:
- 类
BasicInternalFrameTitlePane
中的 addSubComponents
createPropertyChangeListener
protected PropertyChangeListener createPropertyChangeListener()
- 覆盖:
- 类
BasicInternalFrameTitlePane
中的 createPropertyChangeListener
createLayout
protected LayoutManager createLayout()
- 覆盖:
- 类
BasicInternalFrameTitlePane
中的 createLayout
paintPalette
public void paintPalette(Graphics g)
paintComponent
public void paintComponent(Graphics g)
- 从类
JComponent
复制的描述
- 如果 UI 委托为非
null
,则调用该 UI 委托的 paint 方法。向该委托传递 Graphics
对象的副本,以保护其余的 paint 代码免遭不可取消的更改(例如 Graphics.translate
)。
如果在子类中重写此方法,则不应该对传入的 Graphics
进行永久更改。例如,不应更改剪贴区的 Rectangle
或修改转换。如果需要进行这些操作,您会发现根据传入的 Graphics
创建一个新 Graphics
并进行操作更加方便。另外,如果不调用超类的实现,则必须遵守不透明属性,也就是说,如果此组件是不透明的,则必须以透明的颜色完全填充背景。如果不遵守不透明属性,则很可能看到可视的人为内容。
传入的 Graphics
对象可能安装了恒等转换以外的转换。在这种情况下,如果多次应用其他转换,则可能得到不可预料的结果。
- 覆盖:
- 类
BasicInternalFrameTitlePane
中的 paintComponent
- 参数:
g
- 要保护的 Graphics
对象- 另请参见:
JComponent.paint(java.awt.Graphics)
,
ComponentUI
setPalette
public void setPalette(boolean b)
提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。 版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。