|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.beans.PropertyEditorSupport
ÇÁ·ÎÆÛƼ ¿¡µðÅÍÀÇ ±¸ÃàÀ» Áö¿øÇϱâ À§ÇÑ ¼Æ÷Æ® Ŭ·¡½ºÀÔ´Ï´Ù.
base class ¶Ç´Â delegate Ŭ·¡½º·Î¼ »ç¿ëÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.
»ý¼ºÀÚÀÇ °³¿ä | |
protected |
PropertyEditorSupport ()
ÆÄ»ý PropertyEditor Ŭ·¡½º°¡ »ç¿ëÇÏ´Â constructor ÀÔ´Ï´Ù. |
protected |
PropertyEditorSupport (Object source)
PropertyEditor ÀÇ delegate½Ã¿¡ »ç¿ëÇÏ´Â constructor ÀÔ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
void |
addPropertyChangeListener (PropertyChangeListener listener)
PropertyChange À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ µî·ÏÇÕ´Ï´Ù. |
void |
firePropertyChange ()
°ü°è°¡ Àִ ûÃëÀÚ·Î ¿ÀºêÁ§Æ®°¡ º¯°æµÇ°í ÀÖ´Â °ÍÀ» ¸®Æ÷Æ®ÇÕ´Ï´Ù. |
String |
getAsText ()
À¯Àú¿¡ ÀÇÇÑ ÆíÁýÀÌ °¡´ÉÇÑ Ä³¸¯ÅÍ ¶óÀÎÀÇ ÇüÅ·Î, ÇÁ·ÎÆÛƼġ¸¦ ÃëµæÇÕ´Ï´Ù. |
Component |
getCustomEditor ()
PropertyEditor ´Â ÇÁ·ÎÆÛƼġ¸¦ ÆíÁýÇÏ´Â ¿ÏÀüÇÑ Ä¿½ºÅÒ ÄÄÆÛ³ÍÆ®ÀÇ »ç¿ëÀ» ¼±ÅÃÇÒ ¼ö ÀÖ½À´Ï´Ù. |
String |
getJavaInitializationString ()
Java Äڵ带 »ý¼ºÇØ ÇÁ·ÎÆÛƼġ¸¦ ¼³Á¤ÇÒ °æ¿ì¿¡ »ç¿ëÇÕ´Ï´Ù. |
String [] |
getTags ()
ÇÁ·ÎÆÛƼġ°¡ ±âÁ¸ÀÇ ÅÂ±× Ã·ºÎÀÇ °ª¼¼Æ®ÀÇ 1 °³°¡ ¾Æ´Ï¸é ¾ÈµÇ´Â °æ¿ì¿¡, ÀÌ ¸Þ¼Òµå°¡ ű×ÀÇ ¹è¿À» µ¹·ÁÁÝ´Ï´Ù. |
Object |
getValue ()
ÇÁ·ÎÆÛƼġ¸¦ ÃëµæÇÕ´Ï´Ù. |
boolean |
isPaintable ()
Ŭ·¡½º°¡ paintValue ¸Þ¼Òµå¸¦ ¹Þ¾ÆµéÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
void |
paintValue (Graphics gfx,
Rectangle box)
°ªÀÇ Ç¥ÇöÀ» ȸéÀÇ ÁöÁ¤µÈ area¿¡ Ç¥Çö ÇÕ´Ï´Ù. |
void |
removePropertyChangeListener (PropertyChangeListener listener)
PropertyChange À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
setAsText (String text)
ÁöÁ¤µÈ String ¸¦ ÇØ¼®ÇØ ÇÁ·ÎÆÛƼġ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setValue (Object value)
ÆíÁýÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¼³Á¤ (º¯°æ)ÇÕ´Ï´Ù. |
boolean |
supportsCustomEditor ()
propertyEditor °¡ Ä¿½ºÅÒ ¿¡µðÅ͸¦ ¼Æ÷Æ®Çϰí ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
protected PropertyEditorSupport()
protected PropertyEditorSupport(Object source)
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
ÆíÁý °¡´ÉÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ¸·Î¼ °ªÀ» Ç¥ÇöÇÒ ¼ö ¾ø´Â °æ¿ì´Â 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 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.