|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--javax.swing.plaf.RootPaneUI | +--javax.swing.plaf.basic.BasicRootPaneUI | +--javax.swing.plaf.metal.MetalRootPaneUI
RootPaneUI
¸¦ À§ÇÑ, Metal Look & Feel ÀÇ ±¸ÇöÀ» Á¦°øÇÕ´Ï´Ù.
MetalRootPaneUI
´Â JRootPane
ÀÇ windowDecorationStyle
ÇÁ·ÎÆÛƼÀÇ ¼Æ÷Æ®¸¦ Á¦°øÇÕ´Ï´Ù. MetalRootPaneUI
´Â Ä¿½ºÅÒ LayoutManager
, ÀûÀýÇÑ À§Á¦Æ®¸¦ Ç¥Çö ÇÏ´Â private Component
, ¹× private Border
¸¦ ÀνºÅç ÇÏ´Â °ÍÀ¸·Î½á À̰ÍÀ» ½ÇÇàÇÕ´Ï´Ù. LayoutManager
´Â windowDecorationStyle
ÇÁ·ÎÆÛƼÀÇ °ª¿¡ °ü°è¾øÀÌ, Ç×»ó ÀνºÅç µË´Ï´Ù¸¸,Border
¹× Component
´Â windowDecorationStyle
°¡ JRootPane.NONE
°¡ ¾Æ´Ñ °æ¿ì¿¡¸¸ ÀνºÅç µÇ´ÂÁö Ãß°¡µË´Ï´Ù.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿ÍÀÇ È£È¯¼ºÀÌ ¾ø¾îÁý´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ ¼Æ÷Æ®´Â ´Ü±â ±â¾ïÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÁ¯ 1.4 ÀÌÈÄ, ¸ðµç JavaBeans ÀÇ Àå±â ±â¾ï¿ë ¼Æ÷Æ®´Â java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº XMLEncoder
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
»ý¼ºÀÚÀÇ °³¿ä | |
MetalRootPaneUI ()
|
¸Þ¼ÒµåÀÇ °³¿ä | |
static ComponentUI |
createUI (JComponent c)
JRootPane ÀÇ UI ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
void |
installUI (JComponent c)
installUI ÀÇ ½´ÆÛ Ŭ·¡½ºÀÇ ±¸ÇöÀ» È£ÃâÇØ, °Ç³×¹ÞÀº JRootPane ¿¡ ÇÊ¿äÇÑ »óŸ¦ ÀνºÅç ÇØ,RootPaneUI ÀÇ Metal Look & Feel ÀÇ ±¸ÇöÀ» Ç¥Çö ÇÕ´Ï´Ù. |
void |
propertyChange (PropertyChangeEvent e)
ÇÁ·ÎÆÛƼ°¡ º¯°æµÇ¾úÀ» ¶§¿¡ ºÒ·Á °©´Ï´Ù. |
void |
uninstallUI (JComponent c)
½´ÆÛ Ŭ·¡½ºÀÇ ±¸ÇöÀ» È£ÃâÇØ, ¸ðµç »óŸ¦ ¾ðÀνºÅçÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing.plaf.basic. BasicRootPaneUI ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
installComponents , installDefaults , installKeyboardActions , installListeners , uninstallComponents , uninstallDefaults , uninstallKeyboardActions , uninstallListeners |
Ŭ·¡½º 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 |
»ý¼ºÀÚÀÇ »ó¼¼ |
public MetalRootPaneUI()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public static ComponentUI createUI(JComponent c)
JRootPane
ÀÇ UI ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
c
- RootPaneUI ¸¦ ÀÛ¼ºÇÏ´Â JRootPane
public void installUI(JComponent c)
installUI
ÀÇ ½´ÆÛ Ŭ·¡½ºÀÇ ±¸ÇöÀ» È£ÃâÇØ, °Ç³×¹ÞÀº JRootPane
¿¡ ÇÊ¿äÇÑ »óŸ¦ ÀνºÅç ÇØ,RootPaneUI
ÀÇ Metal Look & Feel ÀÇ ±¸ÇöÀ» Ç¥Çö ÇÕ´Ï´Ù. JRootPane
ÀÇ windowDecorationStyle
ÇÁ·ÎÆÛƼ°¡ JRootPane.NONE
ÀÌ¿ÜÀÇ °æ¿ì´Â Ä¿½ºÅÒ Component
¸¦ Ãß°¡ÇØ,JRootPane
¿¡ Ä¿½ºÅÒ Border
¹× LayoutManager
¸¦ ÀνºÅçÇÔ°ú ÇÔ²²,JRootPane
ÀÇ À§Á¦Æ®¸¦ Ç¥Çö ÇÕ´Ï´Ù.
BasicRootPaneUI
³»ÀÇ installUI
c
- »óŸ¦ ÀνºÅç ÇÏ´Â JRootPaneComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void uninstallUI(JComponent c)
JRootPane
ÀÇ LayoutManager
µµ ¸®¼ÂÆ® ÇÕ´Ï´Ù. À©µµ¿ìÀÇ Àå½Ä ½ºÅ¸ÀÏÀ» Ç¥Çö Çϱâ À§Çؼ Component
°¡ JRootPane
¿¡ Ãß°¡µÇ°í ÀÖ´Â °æ¿ì´Â ÀÌ ¸Þ¼Òµå´Â ±×°ÍÀ» »èÁ¦ÇÕ´Ï´Ù. °°ÀÌJRootPane
ÀÇ Border ¹× LayoutManager ¸¦ installUI
°¡ ºÒ·Á °¡±â Àü »óÅ¿¡ µÇµ¹¸³´Ï´Ù.
BasicRootPaneUI
³»ÀÇ uninstallUI
c
- »óŸ¦ ¾ðÀνºÅçÇÏ´Â JRootPaneComponentUI.installUI(javax.swing.JComponent)
,
JComponent.updateUI()
public void propertyChange(PropertyChangeEvent e)
MetalRootPaneUI
´Â ÁÖ·Î windowDecorationStyle
ÇÁ·ÎÆÛƼ¸¦ ½Äº°ÇÒ °æ¿ì¿¡ ÀνºÅç µÈ JRootPane
·ÎºÎÅÍ ¹ß»ýÇÏ´Â À̺¥Æ®¿¡ °ü°è°¡ ÀÖ½À´Ï´Ù. windowDecorationStyle
ÀÌ JRootPane.NONE
ÀÌ¿ÜÀÇ °ªÀ¸·Î º¯°æµÇ¾úÀ» °æ¿ì, À̰ÍÀº Component
¸¦ JRootPane
¿¡ Ãß°¡ÇØ,Border
¸¦JRootPane
¿¡ ÀνºÅçÇÔ°ú ÇÔ²², À©µµ¿ì Àå½ÄÀ» Ç¥Çö ÇÕ´Ï´Ù. ÇÑÆí,windowDecorationStyle
ÀÌ JRootPane.NONE
À¸·Î º¯°æµÇ¾úÀ» °æ¿ì,installUI
°¡ ºÒ·Á °¡±â Àü »óÅ¿¡ Border ¸¦ ¸®¼ÂÆ®ÇÔ°ú ÇÔ²²,JRootPane
¿¡ Ãß°¡µÈ Component
¸¦ »èÁ¦ÇÕ´Ï´Ù.
PropertyChangeListener
³»ÀÇ propertyChange
BasicRootPaneUI
³»ÀÇ propertyChange
e
- À̺¥Æ® ¼Ò½º ¹× º¯°æÇÑ ÇÁ·ÎÆÛƼ¸¦ ±â¼úÇÏ´Â PropertyChangeEvent ¿ÀºêÁ§Æ®
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.