|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.RootPaneUI
javax.swing.plaf.basic.BasicRootPaneUI
javax.swing.plaf.metal.MetalRootPaneUI
public class 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 Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.