JavaTM 2 Platform
Standard Ed. 6

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 繼承的巢狀類別/介面
BasicInternalFrameTitlePane.CloseAction, BasicInternalFrameTitlePane.IconifyAction, BasicInternalFrameTitlePane.MaximizeAction, BasicInternalFrameTitlePane.MoveAction, BasicInternalFrameTitlePane.PropertyChangeHandler, BasicInternalFrameTitlePane.RestoreAction, BasicInternalFrameTitlePane.SizeAction, BasicInternalFrameTitlePane.SystemMenuBar, BasicInternalFrameTitlePane.TitlePaneLayout
 
從類別 javax.swing.JComponent 繼承的巢狀類別/介面
JComponent.AccessibleJComponent
 
從類別 java.awt.Container 繼承的巢狀類別/介面
Container.AccessibleAWTContainer
 
從類別 java.awt.Component 繼承的巢狀類別/介面
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
欄位摘要
protected  boolean isPalette
           
protected  Icon paletteCloseIcon
           
protected  int paletteTitleHeight
           
 
從類別 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.JComponent 繼承的欄位
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
從類別 java.awt.Component 繼承的欄位
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
從介面 java.awt.image.ImageObserver 繼承的欄位
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
建構子摘要
MetalInternalFrameTitlePane(JInternalFrame f)
           
 
方法摘要
 void addNotify()
          通知此元件它現在已有了一個父元件。
protected  void addSubComponents()
          覆寫父級的方法,避免創建一個選單欄。
protected  void addSystemMenuItems(JMenu systemMenu)
          覆寫父級的方法,使其不執行任何操作。
protected  void assembleSystemMenu()
          覆寫父級的方法,使其不執行任何操作。
protected  void createButtons()
           
protected  LayoutManager createLayout()
           
protected  PropertyChangeListener createPropertyChangeListener()
           
protected  void installDefaults()
           
 void paintComponent(Graphics g)
          如果 UI 委託為非 null,則調用該 UI 委託的 paint 方法。
 void paintPalette(Graphics g)
           
 void setPalette(boolean b)
           
protected  void showSystemMenu()
          覆寫父級的方法,使其不執行任何操作。
protected  void uninstallDefaults()
           
 
從類別 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
 
從類別 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

欄位詳細資訊

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)

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only