|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
public class PropertyEditorSupport
ÇÁ·ÎÆÛƼ ¿¡µðÅÍÀÇ ±¸Ãà¿¡ µµ¿òÀÌ µÇ´Â Áö¿ø Ŭ·¡½ºÀÔ´Ï´Ù.
base class ¶Ç´Â À§¾ç µÇ´Â ÃøÀ¸·Î¼ »ç¿ë °¡´ÉÇÕ´Ï´Ù.
| »ý¼ºÀÚ °³¿ä | |
|---|---|
PropertyEditorSupport ()
PropertyEditorSupport °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
PropertyEditorSupport (Object source)
PropertyEditorSupport °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
| ¸Þ¼µå °³¿ä | |
|---|---|
void |
addPropertyChangeListener (PropertyChangeListener listener)
PropertyChange À̺¥Æ®ÀÇ ¸®½º³Ê¸¦ µî·ÏÇÕ´Ï´Ù. |
void |
firePropertyChange ()
°ü·Ã ¸®½º³Ê°¡ ¸ðµÎ »èÁ¦µÈ °ÍÀ» º¸°íÇÕ´Ï´Ù. |
String |
getAsText ()
ÇÁ·ÎÆÛƼġ¸¦, Àΰ£ÀÌ ÆíÁýÇϴµ¥ ÀûÇÕÇÑ Ä³¸¯ÅÍ ¶óÀÎÀÇ Çü½Ä¿¡¼ ÃëµæÇÕ´Ï´Ù. |
Component |
getCustomEditor ()
PropertyEditor´Â ÇÁ·ÎÆÛƼġ¸¦ ÆíÁýÇÏ´Â ¿ÏÀüÇÑ Ä¿½ºÅÒ ÄÄÆÛ³ÍÆ®¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. |
String |
getJavaInitializationString ()
Java Äڵ带 »ý¼ºÇØ ÇÁ·ÎÆÛƼġ¸¦ ¼³Á¤ÇÒ °æ¿ì¿¡ »ç¿ëÇÕ´Ï´Ù. |
Object |
getSource ()
À̺¥Æ® ¼Ò½º·Î¼ »ç¿ëµÇ´Â Bean¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
String [] |
getTags ()
ÇÁ·ÎÆÛƼ°ªÀÌ ±âÁ¸ÀÇ ÅÂ±× Ã·À߸øµÈ °ª ¼¼Æ®ÀÇ 1°³°¡ ¾Æ´Ï¸é ¾ÈµÇ´Â °æ¿ì¿¡ ű×Ä¡ÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. |
Object |
getValue ()
ÇÁ·ÎÆÛƼÀÇ °ªÀ» ÃëµæÇÕ´Ï´Ù. |
boolean |
isPaintable ()
Ŭ·¡½º°¡ paintValue ¸Þ¼µå¸¦ ¹ÞÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
void |
paintValue (Graphics gfx,
Rectangle box)
°ªÀÇ Ç¥ÇöÀ» ȸéÀÇ ÁöÁ¤µÈ ¿µ¿ª¿¡ ·»´õ¸µ ÇÕ´Ï´Ù. |
void |
removePropertyChangeListener (PropertyChangeListener listener)
PropertyChange À̺¥Æ®ÀÇ ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
setAsText (String text)
ÁöÁ¤µÈ String (ij¸¯ÅÍ ¶óÀÎ)¸¦ ÇØ¼®ÇØ ÇÁ·ÎÆÛƼġ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setSource (Object source)
¼Ò½º Bean¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setValue (Object value)
ÆíÁý ´ë»óÀÇ °´Ã¼¸¦ ¼³Á¤ ¶Ç´Â º¯°æÇÕ´Ï´Ù. |
boolean |
supportsCustomEditor ()
propertyEditor°¡ Ä¿½ºÅÒ ¿¡µðÅ͸¦ Áö¿øÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| »ý¼ºÀÚ »ó¼¼ |
|---|
public PropertyEditorSupport()
PropertyEditorSupport °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù.
public PropertyEditorSupport(Object source)
PropertyEditorSupport °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù.
source - À̺¥Æ® Æ®¸®°Å¿ë ¼Ò½º| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public Object getSource()
PropertyEditorSupport
ÀνºÅϽº°¡ ¸®Åϵ˴ϴÙ
.
public void setSource(Object source)
¼Ò½º Bean´Â ÇÁ·ÎÆÛƼÀÇ º¯°æÀÇ À̺¥Æ® ¼Ò½º·Î¼ »ç¿ëµË´Ï´Ù. ÀÌ ¼Ò½º´Â Á¤º¸¸¦ Á¦°øÇϱâ À§ÇØÀÎ ¸¸Å »ç¿ëµË´Ï´Ù. PropertyEditor¸¦ »ç¿ëÇØ º¯°æÀ» ´õÇÒ ¼ö ¾ø½À´Ï´Ù.
source - À̺¥Æ®¿ë ¼Ò½º °´Ã¼public void setValue(Object value)
PropertyEditor ³»ÀÇ setValue value - ÆíÁý ´ë»óÀÇ »õ·Î¿î Ÿ°Ù °´Ã¼. ÀÌ °´Ã¼´Â PropertyEditor ·Î º¯°æÇÏ´Â °ÍÀÌ ¾Æ´Ï¶ó, PropertyEditor ·Î »õ·Î¿î °´Ã¼¸¦ ÀÛ¼ºÇØ º¯°æÄ¡¸¦ º¸Á¸ÇÑ´Ùpublic Object getValue()
PropertyEditor ³»ÀÇ getValue public boolean isPaintable()
PropertyEditor ³»ÀÇ isPaintable
public void paintValue(Graphics gfx,
Rectangle box)
PropertyEditor°¡ ·»´õ¸µ ¿ä±¸¸¦ ¹Þ¾ÆµéÀÌÁö ¾Ê´Â °æ¿ì (isPaintable¸¦ ÂüÁ¶), ÀÌ ¸Þ¼µå´Â ¾Æ¹«°Íµµ ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù.
PropertyEditor ³»ÀÇ paintValue gfx - ·»´õ¸µ µÇ´Â ±×·¡ÇÈ °´Ã¼box - ±×·¡ÇÈ °´Ã¼¸¦ ·»´õ¸µ ÇÏ´Â ±¸Çüpublic String getJavaInitializationString()
°á°ú¿¹·Î¼ ¡¸2¡¹, ¡¸new Color(127,127,34)¡¹, ¡¸Color.orange¡¹µîÀÌ ÀÖ½À´Ï´Ù.
PropertyEditor ³»ÀÇ getJavaInitializationString public String getAsText()
PropertyEditor ³»ÀÇ getAsText °ªÀ» ij¸¯ÅÍ ¶óÀÎÀ¸·Î¼ Ç¥ÇöÇÒ ¼ö ¾ø´Â °æ¿ì´Â nullÀ» µ¹·ÁÁØ´Ù
null ÀÌ¿ÜÀÇ °ªÀÌ µ¹·ÁÁÖ°íÁö¸é, PropertyEditor´Â ±× ij¸¯ÅÍ ¶óÀÎÀ» ÇØ¼®ÇØ setAsText()¿¡ µÇµ¹¸°´Ù
public void setAsText(String text)
throws IllegalArgumentException
PropertyEditor ³»ÀÇ setAsText text - ÇØ¼®µÇ´Â ij¸¯ÅÍ ¶óÀÎ
IllegalArgumentException public String [] getTags()
PropertyEditor ³»ÀÇ getTags public Component getCustomEditor()
getCustomEditor¸¦ È£ÃâÇÏ´Â °í·¹º§ÀÎ Äڵ忡¼´Â ÄÄÆÛ³ÍÆ®¸¦ º¸´Ù Å« ÇÁ·ÎÆÛƼ ½ÃÆ®¿¡ Â¥³Ö°Å³ª µ¶ÀÚÀûÀÎ ´ÙÀ̾ó·Î±×¿¡ ¹èÄ¡Çϰųª ÇÒ ¼ö ÀÖ½À´Ï´Ù .
PropertyEditor ³»ÀÇ getCustomEditor public boolean supportsCustomEditor()
PropertyEditor ³»ÀÇ supportsCustomEditor public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyEditor ³»ÀÇ addPropertyChangeListener listener - PropertyChange À̺¥Æ®°¡ Æ®¸®°Å µÇ¾úÀ» ¶§¿¡ È£ÃâµÇ´Â °´Ã¼public void removePropertyChangeListener(PropertyChangeListener listener)
PropertyEditor ³»ÀÇ removePropertyChangeListener listener - »èÁ¦µÇ´Â PropertyChange ¸®½º³Êpublic void firePropertyChange()
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.