JavaTM Platform
Standard Ed. 6

javax.swing.plaf.basic
클래스 BasicInternalFrameTitlePane

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 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans 의 장기간의 운용 지원는,java.beans 패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder 를 참조해 주세요.


상자의 클래스의 개요
 class BasicInternalFrameTitlePane.CloseAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.IconifyAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.MaximizeAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.MoveAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.PropertyChangeHandler
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.RestoreAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.SizeAction
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.SystemMenuBar
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 class BasicInternalFrameTitlePane.TitlePaneLayout
          이 클래스는, 「protected」내부 클래스로서 취급하는 것을 추천합니다.
 
클래스 javax.swing. JComponent 로부터 상속된 상자의 클래스/인터페이스
JComponent.AccessibleJComponent
 
클래스 java.awt. Container 로부터 상속된 상자의 클래스/인터페이스
Container.AccessibleAWTContainer
 
클래스 java.awt. Component 로부터 상속된 상자의 클래스/인터페이스
Component.AccessibleAWTComponent , Component.BaselineResizeBehavior , Component.BltBufferStrategy , Component.FlipBufferStrategy
 
필드의 개요
protected static String CLOSE_CMD
           
protected  Action closeAction
           
protected  JButton closeButton
           
protected  Icon closeIcon
           
protected  JInternalFrame frame
           
protected  JButton iconButton
           
protected  Icon iconIcon
           
protected static String ICONIFY_CMD
           
protected  Action iconifyAction
           
protected  JButton maxButton
           
protected  Icon maxIcon
           
protected static String MAXIMIZE_CMD
           
protected  Action maximizeAction
           
protected  JMenuBar menuBar
           
protected  Icon minIcon
           
protected static String MOVE_CMD
           
protected  Action moveAction
           
protected  Color notSelectedTextColor
           
protected  Color notSelectedTitleColor
           
protected  PropertyChangeListener propertyChangeListener
           
protected static String RESTORE_CMD
           
protected  Action restoreAction
           
protected  Color selectedTextColor
           
protected  Color selectedTitleColor
           
protected static String SIZE_CMD
           
protected  Action sizeAction
           
protected  JMenu 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
 
생성자 의 개요
BasicInternalFrameTitlePane (JInternalFrame  f)
           
 
메소드의 개요
protected  void addSubComponents ()
           
protected  void addSystemMenuItems (JMenu  systemMenu)
           
protected  void assembleSystemMenu ()
           
protected  void createActions ()
           
protected  void createButtons ()
           
protected  LayoutManager createLayout ()
           
protected  PropertyChangeListener createPropertyChangeListener ()
           
protected  JMenu createSystemMenu ()
           
protected  JMenuBar createSystemMenuBar ()
           
protected  void enableActions ()
           
protected  String getTitle (String  text, FontMetrics  fm, int availTextWidth)
           
protected  void installDefaults ()
           
protected  void installListeners ()
           
protected  void installTitlePane ()
           
 void paintComponent (Graphics  g)
          UI 위양이 null 가 아닌 경우에, UI 위양의 페인트 메소드를 호출합니다.
protected  void paintTitleBackground (Graphics  g)
          paintComponent 로부터 호출합니다.
protected  void postClosingEvent (JInternalFrame  frame)
          일반적으로의 Frame 와 같게 처리할 수 있도록(듯이), 프레임에 WINDOW_CLOSING 와 같은 이벤트를 전송 합니다.
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 , 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
 

필드의 상세

menuBar

protected JMenuBar  menuBar

iconButton

protected JButton  iconButton

maxButton

protected JButton  maxButton

closeButton

protected JButton  closeButton

windowMenu

protected JMenu  windowMenu

frame

protected JInternalFrame  frame

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

closeIcon

protected Icon  closeIcon

propertyChangeListener

protected PropertyChangeListener  propertyChangeListener

closeAction

protected Action  closeAction

maximizeAction

protected Action  maximizeAction

iconifyAction

protected Action  iconifyAction

restoreAction

protected Action  restoreAction

moveAction

protected Action  moveAction

sizeAction

protected Action  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)
메소드의 상세

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)

createSystemMenu

protected JMenu  createSystemMenu()

createSystemMenuBar

protected JMenuBar  createSystemMenuBar()

showSystemMenu

protected void showSystemMenu()

paintComponent

public void paintComponent(Graphics  g)
클래스 JComponent 의 기술:
UI 위양이 null 가 아닌 경우에, UI 위양의 페인트 메소드를 호출합니다. 위양에는 Graphics 객체의 카피를 건네주어, 나머지의 페인트 코드에 대해서 취소할 수 없는 변경을 하지 않게 보호합니다 (예를 들어 Graphics.translate 등).  

이 메소드를 서브 클래스에서 오버라이드(override) 하는 경우는, 건네받은 Graphics 의 객체에는 영속적인 변경은 실시하지 않게 합니다. 예를 들어 Rectangle 클립이나 변환은 변경하지 않습니다. 이러한 변경이 필요한 경우는, 건네받은 Graphics 로부터 새로운 Graphics 를 생성해, 그것을 변경하는 편이 용이합니다. 한층 더 상위 객체의 구현을 실시하지 않는 경우는, 불투명 프로퍼티에 주의할 필요가 있습니다. 즉 이 컴퍼넌트가 불투명한 경우는, 백그라운드에는 불투명하지 않은 색을 사용할 필요가 있습니다. 불투명 프로퍼티을 무시하면 화면이 보기 나뻐집니다.  

건네받은 Graphics 객체에는, 인스톨 되고 있는 변환 이외의 변환이 포함되어 있는 일이 있습니다. 이 경우, 다른 변환을 누적적으로 적용하면(자), 예기치 않은 결과가 생길 가능성이 있습니다.

오버라이드(override):
클래스 JComponent 내의 paintComponent
파라미터:
g - 보호 대상의 Graphics 객체
관련 항목:
JComponent.paint(java.awt.Graphics) , ComponentUI

paintTitleBackground

protected void paintTitleBackground(Graphics  g)
paintComponent 로부터 호출합니다. 타이틀 구획의 백그라운드를 그립니다. 모든 텍스트와 아이콘은, 이 백그라운드 위에 draw 됩니다.

파라미터:
g - 백그라운드를 draw 하기 위해서 사용되는 그래픽스
도입된 버젼:
1.4

getTitle

protected String  getTitle(String  text,
                          FontMetrics  fm,
                          int availTextWidth)

postClosingEvent

protected void postClosingEvent(JInternalFrame  frame)
일반적으로의 Frame 와 같게 처리할 수 있도록(듯이), 프레임에 WINDOW_CLOSING 와 같은 이벤트를 전송 합니다.


enableActions

protected void enableActions()

createPropertyChangeListener

protected PropertyChangeListener  createPropertyChangeListener()

createLayout

protected LayoutManager  createLayout()

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.