JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.plaf.basic
Ŭ·¡½º BasicRootPaneUI

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.plaf.ComponentUI 
      »óÀ§¸¦ È®Àå javax.swing.plaf.RootPaneUI 
          »óÀ§¸¦ È®Àå javax.swing.plaf.basic.BasicRootPaneUI
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
PropertyChangeListener, EventListener
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
MetalRootPaneUI

public class BasicRootPaneUI
extends RootPaneUI
implements PropertyChangeListener

RootPaneUI ±âº»ÀûÀÎ ±¸ÇöÀÔ´Ï´Ù. RootPaneUI¿¡´Â Àü JRootPane ÀνºÅϽº·Î °øÀ¯ÇÏ´Â ±¸ÇöÀÌ 1°³ ÀÖ½À´Ï´Ù.


»ý¼ºÀÚ °³¿ä
BasicRootPaneUI ()
           
 
¸Þ¼­µå °³¿ä
static ComponentUI createUI (JComponent  c)
           
protected  void installComponents (JRootPane  root)
           
protected  void installDefaults (JRootPane  c)
           
protected  void installKeyboardActions (JRootPane  root)
           
protected  void installListeners (JRootPane  root)
           
 void installUI (JComponent  c)
          Look & Feel¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ±¸¼ºÇÕ´Ï´Ù.
 void propertyChange (PropertyChangeEvent  e)
          ·çÆ® ±¸È¹ÀÇ ÇÁ·ÎÆÛƼ°¡ º¯°æÀÌ µÇ¾úÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù.
protected  void uninstallComponents (JRootPane  root)
           
protected  void uninstallDefaults (JRootPane  root)
           
protected  void uninstallKeyboardActions (JRootPane  root)
           
protected  void uninstallListeners (JRootPane  root)
           
 void uninstallUI (JComponent  c)
          installUI ½Ã¿¡ ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®·Î ½ÇÇàÇÑ ±¸¼ºÀ» Ãë¼ÒÇÕ´Ï´Ù.
 
Ŭ·¡½º javax.swing.plaf. ComponentUI ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

BasicRootPaneUI

public BasicRootPaneUI()
¸Þ¼­µåÀÇ »ó¼¼

createUI

public static ComponentUI  createUI(JComponent  c)

installUI

public void installUI(JComponent  c)
Ŭ·¡½º ComponentUI ±â¼ú:
Look & Feel¿¡ ÀûÀýÇÑ, ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®¸¦ ±¸¼ºÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ComponentUIÀνºÅϽº°¡ ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI À§¾çÀ¸·Î¼­ ÀνºÅç µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ÀÌÇϸ¦ Æ÷ÇÔÇÑ Look & Feel¿ëÀÇ ÄÄÆÛ³ÍÆ®¸¦ ¿ÏÀüÇÏ°Ô ±¸¼ºÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
  1. Ä÷¯, ÆùÆ®, º¸´õ,ÀڽľÆÀÌÄÜ, ºÒÅõ¸íÇÔ µî ¸ðµç µðÆúÆ® ÇÁ·ÎÆÛƼÀÇ °ªÀ» ÄÄÆÛ³ÍÆ®¿¡ ÀνºÅç ÇÑ´Ù. °¡´ÉÇÑ °æ¿ì´Â Ŭ¶óÀ̾ðÆ® ÇÁ·Î±×·¥¿¡ ÀÇÇØ ÃʱâÈ­µÈ ÇÁ·ÎÆÛƼÀÇ °ªÀ» ¿À¹ö¶óÀ̵å(override) Çؼ­´Â ¾È µÈ´Ù
  2. ÇÊ¿ä¿¡ µû¶ó¼­, ÄÄÆÛ³ÍÆ®¿¡ LayoutManager¸¦ ÀνºÅç ÇÑ´Ù
  3. ÇÊ¿äÇÑ ¼­ºê ÄÄÆÛ³ÍÆ®¸¦, ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â Ãß°¡ÇÑ´Ù
  4. À̺¥Æ® ¸®½º³Ê¸¦, ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â ÀνºÅç ÇÑ´Ù
  5. ÄÄÆÛ³ÍÆ®ÀÇ ÇÁ·ÎÆÛƼÀÇ º¯°æÀ» ÀûÀýÈ÷ °ËÃâÇØ, ÀÀ´äÇϱâ À§Çؼ­ PropertyChangeListener¸¦ ÄÄÆÛ³ÍÆ®¿¡ ÀÛ¼º ¶Ç´Â ÀνºÅç ÇÑ´Ù
  6. Å°º¸µå UI (Mnemonics, traversalµî)¸¦, ÄÄÆÛ³ÍÆ®¿¡ ÀνºÅç ÇÑ´Ù
  7. ÀûÀýÇÑ ÀνºÅϽºÀÇ µ¥ÀÌÅ͸¦ ÃʱâÈ­ÇÑ´Ù

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentUI ³»ÀÇ installUI
ÆĶó¹ÌÅÍ:
c - UI À§¾çÀÌ ÀνºÅç µÇ°í ÀÖ´Â ÄÄÆÛ³ÍÆ®
°ü·Ã Ç׸ñ:
ComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()

uninstallUI

public void uninstallUI(JComponent  c)
Ŭ·¡½º ComponentUI ±â¼ú:
installUI ½Ã¿¡ ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®·Î ½ÇÇàÇÑ ±¸¼ºÀ» Ãë¼ÒÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®ÀÇ UI À§¾çÀ¸·Î¼­ÀÇ UIComponentÀνºÅϽº°¡ »èÁ¦µÇ°í ÀÖÀ» ¶§ È£ÃâÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â installUI¿¡ ÀÇÇØ ½ÇÇàµÈ ±¸¼ºÀ» ¹ÙÅÁÀ¸·Î µÇµ¹¸± ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì JComponentÀνºÅϽº¸¦ ±ú²ýÇÑ »óÅ (¿©ºÐÀÇ ¸®½º³Ê³ª, Look & Feel °íÀ¯ÀÇ ÇÁ·ÎÆÛƼ °´Ã¼°¡ ³²Áö ¾Ê°Ô)·Î Çϵµ·Ï ÃæºÐÈ÷ ÁÖÀÇÇØ ÁÖ¼¼¿ä. ¼ø¼­¿¡´Â ´ÙÀ½ÀÇ °ÍÀÌ ÀÖ½À´Ï´Ù.
  1. UI ·Î¼­ ¼³Á¤µÈ ¸ðµç º¸´õ¸¦, ÄÄÆÛ³ÍÆ®·ÎºÎÅÍ »èÁ¦ÇÑ´Ù
  2. UI ·Î¼­ ¼³Á¤µÈ ¸ðµç ·¹À̾ƿô ¸Å´ÏÀú¸¦, ÄÄÆÛ³ÍÆ®·ÎºÎÅÍ »èÁ¦ÇÑ´Ù
  3. UI ·Î¼­ Ãß°¡µÈ ¸ðµç ¼­ºê ÄÄÆÛ³ÍÆ®¸¦, ÄÄÆÛ³ÍÆ®·ÎºÎÅÍ »èÁ¦ÇÑ´Ù
  4. UI ·Î¼­ Ãß°¡µÈ ¸ðµç À̺¥Æ®/¸®½º³Ê¸¦, ÄÄÆÛ³ÍÆ®·ÎºÎÅÍ »èÁ¦ÇÑ´Ù
  5. UI ·Î¼­ ÀνºÅç µÈ ¸ðµç Å°º¸µå UI¸¦, ÄÄÆÛ³ÍÆ®·ÎºÎÅÍ »èÁ¦ÇÑ´Ù
  6. GC ¿ëÀ¸·Î ÇÒ´çÇÒ ¼ö ÀÖ´ø ¸ðµç ÀνºÅϽºÀÇ µ¥ÀÌÅÍ °´Ã¼¸¦ ¹«È¿·Î ÇÑ´Ù

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentUI ³»ÀÇ uninstallUI
ÆĶó¹ÌÅÍ:
c - ÀÌ UI À§¾çÀÌ »èÁ¦µÇ´Â ÄÄÆÛ³ÍÆ®. ÀÌ Àμö´Â ÀÚÁÖ ¹«½ÃµÇÁö¸¸, UI °´Ã¼°¡ »óžøÀÌ º¹¼öÀÇ ÄÄÆÛ³ÍÆ®¿¡ °øÀ¯µÇ´Â °æ¿ì¿¡ »ç¿ëµÇ´Â ÀÏÀÌ ÀÖ´Â
°ü·Ã Ç׸ñ:
ComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()

installDefaults

protected void installDefaults(JRootPane  c)

installComponents

protected void installComponents(JRootPane  root)

installListeners

protected void installListeners(JRootPane  root)

installKeyboardActions

protected void installKeyboardActions(JRootPane  root)

uninstallDefaults

protected void uninstallDefaults(JRootPane  root)

uninstallComponents

protected void uninstallComponents(JRootPane  root)

uninstallListeners

protected void uninstallListeners(JRootPane  root)

uninstallKeyboardActions

protected void uninstallKeyboardActions(JRootPane  root)

propertyChange

public void propertyChange(PropertyChangeEvent  e)
·çÆ® ±¸È¹ÀÇ ÇÁ·ÎÆÛƼ°¡ º¯°æÀÌ µÇ¾úÀ» ¶§¿¡ È£ÃâÇÕ´Ï´Ù. defaultButton°¡ º¯°æÀÌ µÈ °ÍÀ» À̺¥Æ®°¡ °¡¸®Å°´Â °æ¿ì´Â Å°º¸µå ¾×¼ÇÀ» ÀνºÅç ´Ù½Ã ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º PropertyChangeListener ³»ÀÇ propertyChange
ÆĶó¹ÌÅÍ:
e - À̺¥Æ® ¼Ò½º ¹× º¯°æÇÑ ÇÁ·ÎÆÛƼ¸¦ ±â¼úÇÏ´Â PropertyChangeEvent °´Ã¼

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.