|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå | »ó¼¼: Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå |
public interface BeanInfo
bean ±¸ÇöÀÚ´Â ÀÌ BeanInfo ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â BeanInfo Ŭ·¡½º¸¦ Á¦°øÇØ, ÀÚ½ÅÀÇ bean ¸Þ¼µå, ÇÁ·ÎÆÛƼ, À̺¥Æ® µî¿¡ °üÇÑ ¸í½ÃÀûÀÎ Á¤º¸¸¦ Á¦°øÇÒ ¼ö ÀÖ½À´Ï´Ù .
bean ±¸ÇöÀÚ´Â ¸í½ÃÀûÀÎ Á¤º¸¸¦ ¸ðµÎ Á¦°øÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. Á¦°øÇÏ´Â Á¤º¸¸¦ ¼±ÅÃÇÒ ¼ö°¡ ÀÖ¾î ³ª¸ÓÁö´Â bean Ŭ·¡½ºÀÇ ¸Þ¼µåÀÇ Àú·¹º§ ¸®Ç÷º¼ÇÀ» »ç¿ëÇÑ ÀÚµ¿ ÇØ¼® ¹× Ç¥ÁØÀÇ µðÀÚÀÎ ÆÐÅÏÀÇ Àû¿ë¿¡ ÀÇÇØ ÃëµæÇÒ ¼ö ÀÖ½À´Ï´Ù.
»ç¿ëÀÚ´Â °¢ Descriptor Ŭ·¡½ºÀÇ ÀϺημ ¸Å¿ì ¸¹Àº Á¾·ùÀÇ Á¤º¸¸¦ Á¦°øÇÒ ±âȸ°¡ ÁÖ¾îÁö°Ô µË´Ï´Ù. ±×·¯³ª, °¢ »ý¼ºÀÚ°¡ ÇÊ¿ä·Î ÇÏ´Â ÃÖ¼ÒÇÑÀÇ ÄÚ¾î Á¤º¸¸¦ Á¦°øÇÏ´Â °Í¸¸À¸·Îµµ ÃæºÐÇÕ´Ï´Ù.
BeanInfo Ŭ·¡½ºÀÇ Æí¸®ÇÑ ¡¸¹«Á¶ÀÛ¡¹base class¸¦ Á¦°øÇÏ´Â SimpleBeanInfo Ŭ·¡½ºµµ ÂüÁ¶ÇϽʽÿÀ. À̰ÍÀ» »ç¿ëÇϸé, ¸í½ÃÀûÀÎ Á¤º¸¸¦ Á¦°øÇÏ°í ½ÍÀº ƯÁ¤ÀÇ °³¼Ò¸¦ ¿À¹ö¶óÀ̵å(override) ÇÒ ¼ö ÀÖ½À´Ï´Ù.
bean ¸ðµç µ¿ÀÛ¿¡ ´ëÇØ ¾Ë·Á¸é Introspector Ŭ·¡½º¸¦ ÂüÁ¶ÇϽʽÿÀ.
ÇÊµå °³¿ä | |
---|---|
static int |
ICON_COLOR_16x16
16¡¿16 Ä÷¯ÀÚ½Ä ¾ÆÀÌÄÜÀ» ³ªÅ¸³»´Â Á¤¼öÀÔ´Ï´Ù. |
static int |
ICON_COLOR_32x32
32¡¿32 Ä÷¯ÀÚ½Ä ¾ÆÀÌÄÜÀ» ³ªÅ¸³»´Â Á¤¼öÀÔ´Ï´Ù. |
static int |
ICON_MONO_16x16
16¡¿16 Èæ¹éÀÚ½Ä ¾ÆÀÌÄÜÀ» ³ªÅ¸³»´Â Á¤¼öÀÔ´Ï´Ù. |
static int |
ICON_MONO_32x32
32¡¿32 Èæ¹éÀÚ½Ä ¾ÆÀÌÄÜÀ» ³ªÅ¸³»´Â Á¤¼öÀÔ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
BeanInfo [] |
getAdditionalBeanInfo ()
ÀÌ ¸Þ¼µå´Â BeanInfo °´Ã¼°¡ ÇöÀçÀÇ bean¿¡ ´ëÇÑ Ãß°¡ Á¤º¸¸¦ Á¦°øÇÏ´Â °Í ¿ÜÀÇ BeanInfo °´Ã¼ÀÇ ÀÓÀÇÀÇ Ä÷º¼ÇÀ» µ¹·ÁÁÙ ¼ö°¡ ÀÖµµ·Ï ÇÕ´Ï´Ù. |
BeanDescriptor |
getBeanDescriptor ()
bean BeanDescriptor ¸¦ ÃëµæÇÕ´Ï´Ù. |
int |
getDefaultEventIndex ()
bean´Â »ç¶÷ÀÌ bean¸¦ »ç¿ëÇÒ °æ¿ì¿¡ °¡Àå ¸¹ÀÌ »ç¿ëµÇ´Â À̺¥Æ®¸¦ ¡¸µðÆúÆ®¡¹ÀÇ À̺¥Æ®·Î¼ °¡Áú ¼ö°¡ ÀÖ½À´Ï´Ù. |
int |
getDefaultPropertyIndex ()
bean´Â Ä¿½ºÅ͸¶ÀÌÁî µÉ ¶§¿¡ °¡Àå ¸¹ÀÌ ¼±ÅõǴ ÇÁ·ÎÆÛƼ¸¦ ¡¸µðÆúÆ®¡¹ÀÇ ÇÁ·ÎÆÛƼ·Î¼ °¡Áú ¼ö°¡ ÀÖ½À´Ï´Ù. |
EventSetDescriptor [] |
getEventSetDescriptors ()
bean EventSetDescriptor ¸¦ ÃëµæÇÕ´Ï´Ù. |
Image |
getIcon (int iconKind)
ÀÌ ¸Þ¼µå´Â Åø ¹Ú½º³ª Åø¹ÙµîÀ¸·Î bean¸¦ ³ªÅ¸³»±â À§Çؼ »ç¿ëÇÒ ¼ö ÀÖ´Â À̹ÌÁö °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
MethodDescriptor [] |
getMethodDescriptors ()
bean MethodDescriptor ¸¦ ÃëµæÇÕ´Ï´Ù. |
PropertyDescriptor [] |
getPropertyDescriptors ()
bean PropertyDescriptor ¸¦ ÃëµæÇÕ´Ï´Ù. |
ÇʵåÀÇ »ó¼¼ |
---|
static final int ICON_COLOR_16x16
static final int ICON_COLOR_32x32
static final int ICON_MONO_16x16
static final int ICON_MONO_32x32
¸Þ¼µåÀÇ »ó¼¼ |
---|
BeanDescriptor getBeanDescriptor()
BeanDescriptor
¸¦ ÃëµæÇÕ´Ï´Ù.
EventSetDescriptor [] getEventSetDescriptors()
EventSetDescriptor
¸¦ ÃëµæÇÕ´Ï´Ù.
int getDefaultEventIndex()
µðÆúÆ®ÀÇ À̺¥Æ®°¡ ¾ø´Â °æ¿ì´Â -1
PropertyDescriptor [] getPropertyDescriptors()
PropertyDescriptor
¸¦ ÃëµæÇÕ´Ï´Ù.
ÇÁ·ÎÆÛƼ°¡ À妽ºÈ µÇ°í ÀÖ´Â °æ¿ì¿¡´Â °á°úÀÇ ¹è¿³»ÀÇ ±× Ç׸ñÀº PropertyDescriptor IndexedPropertyDescriptor ¼ºê Ŭ·¡½º¿¡ ¼ÓÇÑ´Ù. getPropertyDescriptors Ŭ¶óÀÌ¾ðÆ®´Â "instanceof"¸¦ »ç¿ëÇØ, ÃëµæÇÑ PropertyDescriptor°¡ IndexedPropertyDescriptor ȵµÀÎÁö¸¦ ÆÇÁ¤ÇÒ ¼ö ÀÖ´Ù
int getDefaultPropertyIndex()
µðÆúÆ® ÇÁ·ÎÆÛƼ°¡ ¾ø´Â °æ¿ì´Â -1
MethodDescriptor [] getMethodDescriptors()
MethodDescriptor
¸¦ ÃëµæÇÕ´Ï´Ù.
BeanInfo [] getAdditionalBeanInfo()
´Ù¸¥ BeanInfo °´Ã¼¿¡ ÀÇÇØ Á¦°øµÈ Á¤º¸ÀÇ »çÀÌ¿¡ ºÒÀÏÄ¡ ¶Ç´Â ¿À¹ö·¦ÀÌ ÀÖ´Â °æ¿ì´Â getAdditionalBeanInfo °´Ã¼º¸´Ù ÇöÀçÀÇ BeanInfo°¡ ¿ì¼±µÇ¾î ¹è¿³»¿¡ ÀÌÀüºÎÅÍ ÀÖ´ø ¿ä¼Òº¸´Ù ³ªÁß¿¡ µé¾î°£ ¿ä¼Ò°¡ ¿ì¼±µË´Ï´Ù.
Image getIcon(int iconKind)
¹Ýµå½Ã bean´Â ÀÚ½Ä ¾ÆÀÌÄÜÀ» Á¦°øÇÒ ÇÊ¿ä´Â ¾ø°í, ÀÌ ¸Þ¼µå·Î nullÀ» µ¹·ÁÁÖ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
¾ÆÀÌÄÜ¿¡´Â 4°³ÀÇ Á¾·ù (16¡¿16 Ä÷¯, 32¡¿32 Ä÷¯, 16¡¿16 Èæ¹é, 32¡¿32 Èæ¹é)°¡ ÀÖ½À´Ï´Ù. bean°¡ 1°³ÀÇÀڽľÆÀÌÄÜ ¹Û¿¡ Áö¿øÇÏÁö ¾Ê´Â °æ¿ì´Â 16¡¿16 Ä÷¯¸¦ ÃßõÇÕ´Ï´Ù.
¾ÆÀÌÄÜÀº ±âÁ¸ÀÇ ¹é±×¶ó¿îµå¿¡ ·»´õ¸µ ÇÒ ¼ö ÀÖµµ·Ï, Åõ¸íÀÇ ¹é±×¶ó¿îµå¸¦ °¡Áö´Â °ÍÀ» ÃßõÇÕ´Ï´Ù.
iconKind
- ¿ä±¸µÈÀڽľÆÀÌÄÜÀÇ Á¾·ù. Á¤¼ö ICON_COLOR_16 x16, ICON_COLOR_32 x32, ICON_MONO_16 x16, ¶Ç´Â ICON_MONO_32x32
¾î¶² °ÍÀΰ¡
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå | »ó¼¼: Çʵå | constructor¡¡ ¡¡ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.