|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.beans.FeatureDescriptor | +--java.beans.PropertyDescriptor
PropertyDescriptor ´Â Java Bean °¡ ÇÑ ¹úÀÇ ¾×¼¼½º¿ë ¸Þ¼Òµå¸¦ »ç¿ëÇØ export ÇÏ´Â ´ÜÀÏÀÇ ÇÁ·ÎÆÛƼ¸¦ ±â¼úÇÕ´Ï´Ù.
»ý¼ºÀÚÀÇ °³¿ä | |
PropertyDescriptor (String propertyName,
Class beanClass)
¾×¼¼½º¿ë ¸Þ¼Òµå getFoo ¹× setFoo ¸¦ »ç¿ëÇØ, Ç¥ÁØÀÇ Java ±Ô¾à¿¡ ÁذÅÇϰí ÀÖ´Â ÇÁ·ÎÆÛƼÀÇ PropertyDescriptor ¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
PropertyDescriptor (String propertyName,
Class beanClass,
String getterName,
String setterName)
ÀÌ constructor Àº ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ read ¹× ±âÀÔÇØ ¿ë¹«ÀÇ ¸Þ¼Òµå¸íÀ» Àμö¿¡ ÃëÇÕ´Ï´Ù. |
|
PropertyDescriptor (String propertyName,
Method getter,
Method setter)
ÀÌ constructor Àº ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ read ¹× ±âÀÔÇØ ¿ë¹«ÀÇ Method ¿ÀºêÁ§Æ®¸¦ Àμö¿¡ ÃëÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
boolean |
equals (Object obj)
PropertyDescriptor ¿Í ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¸¦ Á¶ÇÕÇÕ´Ï´Ù. |
Class |
getPropertyEditorClass ()
ÀÌ ÇÁ·ÎÆÛƼÀÇ ¸í½ÃÀûÀÎ µî·ÏÀÌ ³¡³ PropertyEditor Ŭ·¡½º¸¦ ÃëµæÇÕ´Ï´Ù. |
Class |
getPropertyType ()
ÇÁ·ÎÆÛƼÀÇ Class ¿ÀºêÁ§Æ®¸¦ ÃëµæÇÕ´Ï´Ù. |
Method |
getReadMethod ()
ÇÁ·ÎÆÛƼġÀÇ Àоîµé¿©¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ÃëµæÇÕ´Ï´Ù. |
Method |
getWriteMethod ()
ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ÃëµæÇÕ´Ï´Ù. |
boolean |
isBound ()
¹Ù¿îµå ÇÁ·ÎÆÛƼ¸¦ °»½ÅÇØ, ÇÁ·ÎÆÛƼÀÇ º¯°æ½Ã¿¡ PropertyChange À̺¥Æ®°¡ ¹æ¾Æ¼è µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù. |
boolean |
isConstrained ()
Á¦¾à ÇÁ·ÎÆÛƼÀÇ °»½ÅÀ» ½ÃµµÇØ ÇÁ·ÎÆÛƼÀÇ º¯°æ½Ã¿¡ VetoableChange À̺¥Æ®°¡ ¹æ¾Æ¼è µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù. |
void |
setBound (boolean bound)
¹Ù¿îµå ÇÁ·ÎÆÛƼ¸¦ °»½ÅÇØ, ÇÁ·ÎÆÛƼÀÇ º¯°æ½Ã¿¡ PropertyChange À̺¥Æ®°¡ ¹æ¾Æ¼è µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù. |
void |
setConstrained (boolean constrained)
Á¦¾à ÇÁ·ÎÆÛƼÀÇ °»½ÅÀ» ½ÃµµÇØ ÇÁ·ÎÆÛƼÀÇ º¯°æ½Ã¿¡ VetoableChange À̺¥Æ®°¡ ¹æ¾Æ¼è µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù. |
void |
setPropertyEditorClass (Class propertyEditorClass)
Åë»ó, PropertyEditor ´Â PropertyEditorManager ¸¦ »ç¿ëÇØ °Ë»öµË´Ï´Ù¸¸, ¾î¶°ÇÑ ÀÌÀ¯¿¡ ÀÇÇØ ƯÁ¤ÀÇ PropertyEditor ¸¦ ÁöÁ¤ ÇÁ·ÎÆÛƼ¿¡ °ü·ÃÁþ°í ½ÍÀº °æ¿ì´Â ÀÌ ¸Þ¼Òµå¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. |
void |
setReadMethod (Method getter)
ÇÁ·ÎÆÛƼġÀÇ Àоîµé¿©¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setWriteMethod (Method setter)
ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º java.beans. FeatureDescriptor ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
attributeNames , getDisplayName , getName , getShortDescription , getValue , isExpert , isHidden , isPreferred , setDisplayName , setExpert , setHidden , setName , setPreferred , setShortDescription , setValue |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
public PropertyDescriptor(String propertyName, Class beanClass) throws IntrospectionException
propertyName
- ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íbeanClass
- Ÿ°Ù bean ÀÇ Class ¿ÀºêÁ§Æ®. ¿¹¸¦ µé¾î, sun.beans.OurButton.class
IntrospectionException
- ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìpublic PropertyDescriptor(String propertyName, Class beanClass, String getterName, String setterName) throws IntrospectionException
propertyName
- ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íbeanClass
- Ÿ°Ù bean ÀÇ Class ¿ÀºêÁ§Æ®. ¿¹¸¦ µé¾î, sun.beans.OurButton.classgetterName
- ÇÁ·ÎÆÛƼġÀÇ Àо¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸í. ÇÁ·ÎÆÛƼ°¡ ±âÀÔÇØ Àü¿ëÀÇ °æ¿ì´Â nullsetterName
- ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸í. ÇÁ·ÎÆÛƼ°¡ Àоîµé¿© Àü¿ëÀÇ °æ¿ì´Â null
IntrospectionException
- ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ìpublic PropertyDescriptor(String propertyName, Method getter, Method setter) throws IntrospectionException
propertyName
- ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸ígetter
- ÇÁ·ÎÆÛƼġÀÇ Àоîµé¿©¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå. ÇÁ·ÎÆÛƼ°¡ ±âÀÔÇØ Àü¿ëÀÇ °æ¿ì´Â nullsetter
- ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå. ÇÁ·ÎÆÛƼ°¡ Àоîµé¿© Àü¿ëÀÇ °æ¿ì´Â null
IntrospectionException
- ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì¸Þ¼ÒµåÀÇ »ó¼¼ |
public Class getPropertyType()
ReadMethod °¡ µ¹·ÁÁÖ´Â ÇüÅÂ
public Method getReadMethod()
public void setReadMethod(Method getter) throws IntrospectionException
getter
- »õ·Î¿î get ¸Þ¼Òµå
IntrospectionException
public Method getWriteMethod()
public void setWriteMethod(Method setter) throws IntrospectionException
setter
- »õ·Î¿î set ¸Þ¼Òµå
IntrospectionException
public boolean isBound()
public void setBound(boolean bound)
bound
- ¹Ù¿îµå ÇÁ·ÎÆÛƼÀÇ °æ¿ì´Â truepublic boolean isConstrained()
public void setConstrained(boolean constrained)
constrained
- Á¦¾à ÇÁ·ÎÆÛƼÀÇ °æ¿ì´Â truepublic void setPropertyEditorClass(Class propertyEditorClass)
propertyEditorClass
- PropertyEditor ÀÇ Classpublic Class getPropertyEditorClass()
public boolean equals(Object obj)
PropertyDescriptor
¿Í ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¸¦ Á¶ÇÕÇÕ´Ï´Ù. ¾çÀÚ°¡ µî°¡ÀÎ °æ¿ì, true ¸¦ µ¹·ÁÁÝ´Ï´Ù. Àо, ±âÀÔÇØ, ÇÁ·ÎÆÛƼÀÇ ÇüÅÂ, ÇÁ·ÎÆÛƼ ¿¡µðÅÍ, Ç÷¡±×°¡ µ¿ÀÏÇϸé, 2 °³ÀÇ PropertyDescriptor
´Â µî°¡ÀÔ´Ï´Ù.
Object
³»ÀÇ equals
obj
- ºñ±³ ´ë»óÀÇ ÂüÁ¶ ¿ÀºêÁ§Æ®
true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
Object.hashCode()
,
Hashtable
|
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.