|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.text.StyleContext
¼½Ä ¹× °ü·ÃÇÏ´Â ¸®¼Ò½ºÀÇ Ç®ÀÔ´Ï´Ù. ÀÌ Å¬·¡½º´Â ´Ù¾çÇÑ ¼½Ä Á¤ÀÇ¿¡ ÀÇÇØ ÀçÀÌ¿ëµÇ´Â ÆùÆ® ¹× »öµîÀÌ ´Ù¾çÇÑ ¸®¼Ò½ºÀÇ Ä³½¬¸¦ º¸°ü À¯ÁöÇÏ´Â ÄÁÅ×À̳ʰ¡ µÇ´Â °ÍÀ¸·Î, ¸®¼Ò½ºÀÇ ±×·ìÀÇ ¼ö¸íÀ» °áÁ¤ÇÕ´Ï´Ù. ÇÊ¿äÇÑ °æ¿ì, À̰ÍÀº °ü·Ã ¸®¼Ò½º¸¦ ÃÖ´ëÇÑÀ¸·Î °øÀ¯Çϱâ À§Çؼ º¹¼öÀÇ ¹®¼·Î °øÀ¯ÇÒ ¼ö ÀÖ½À´Ï´Ù.
¶Ç, ÀÌ Å¬·¡½º´Â ¼Ó¼ºÀÇ ÀÛÀº ¼¼Æ®¿¡ ´ëÇÑ È¿À²ÀûÀÎ ¼Æ÷Æ®¸¦ Á¦°øÇØ, »ç¿ëÀ» °øÀ¯ÇÏ´Â °ÍÀ¸·Î ¼Ó¼ºÀ» ¾ÐÃàÇØ, ±×·¯ÇÑ º¯°æ ºÒ°¡´ÉÇÑ ¼ºÁúÀ» ÃÖ´ëÇÑÀ¸·Î ÀÌ¿ëÇÕ´Ï´Ù. ¸¹Àº ¼½ÄÀº º¹Á¦µÇ¹Ç·Î, °øÀ¯ÀÇ °¡´É¼ºÀÌ Ä¿Á®, Ä«Çǰ¡ ¸î¹øÀ̳ª »ç¿ëµË´Ï´Ù. Å« ¼¼Æ®´Â °øÀ¯ÀÇ °¡´É¼ºÀ» °¨¼Ò½ÃŰ¹Ç·Î, ÇÊ¿¬ÀûÀ¸·Î ¿ë·® È¿À²ÀÌ µÚ¶³¾îÁø ±¸ÇöÀÌ µË´Ï´Ù.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ÀÇ ¸±¸®½º¿Í´Â ȣȯ¼ºÀ» °¡ÁöÁö ¾Ê½À´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ ¼Æ÷Æ®´Â ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. 1.4 ¿¡¼´Â ¸ðµç JavaBeansTM ÀÇ Àå±â ¿î¿ë ¼Æ÷Æ®°¡, java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ¾ú½À´Ï´Ù. XMLEncoder
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
class |
StyleContext.NamedStyle
Åë»ó, ij¸¯ÅÍ ¹× ´Ü¶ôÀÇ ¼½ÄÀ» ³ªÅ¸³»±â À§Çؼ(¶§¹®¿¡) »ç¿ëµÇ´Â ¼Ó¼ºÀÇ ÄÝ·º¼ÇÀÔ´Ï´Ù. |
class |
StyleContext.SmallAttributeSet
ÀÌ Å¬·¡½º´Â ¼Ò¼öÀÇ ¼Ó¼ºÀ» ¹è¿·Î¼ ÀúÀåÇÕ´Ï´Ù. |
ÇʵåÀÇ °³¿ä | |
static String |
DEFAULT_STYLE
´Ü¶ô¿¡ Á¢¼ÓµÇ´Â µðÆúÆ®ÀÇ ³í¸® ¼½Ä¿¡ ºÙÀÏ ¼ö ÀÖ´Â À̸§ÀÔ´Ï´Ù. |
»ý¼ºÀÚÀÇ °³¿ä | |
StyleContext ()
»õ·Î¿î StyleContext ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
AttributeSet |
addAttribute (AttributeSet old,
Object name,
Object value)
ÁöÁ¤µÈ ¼¼Æ®¿¡ ¼Ó¼ºÀ» Ãß°¡ÇØ, ±× »õ·Î¿î ¼¼Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
AttributeSet |
addAttributes (AttributeSet old,
AttributeSet attr)
¼Ó¼º ¼¼Æ®¸¦ ¿ä¼Ò¿¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
addChangeListener (ChangeListener l)
¼½ÄÀÌ Ãß°¡ ¶Ç´Â »èÁ¦µÉ ¶§ º¯°æÀ» ÃßÀûÇϴ ûÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù. |
Style |
addStyle (String nm,
Style parent)
¼½Ä °èÃþ¿¡ »õ·Î¿î ¼½ÄÀ» Ãß°¡ÇÕ´Ï´Ù. |
protected MutableAttributeSet |
createLargeAttributeSet (AttributeSet a)
¸Þ¸ð¸® È¿À²º¸´Ù ó¸® ½Ã°£À» ¿ì¼±ÇÏ´Â °æ¿ì¸¦ À§ÇÑ, Å« »çÀÌÁîÀÇ ¼Ó¼º ¼¼Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
protected StyleContext.SmallAttributeSet |
createSmallAttributeSet (AttributeSet a)
°øÀ¯ °¡´ÉÇϰí ÄÄÆÑÆ®ÇÑ ¼Ó¼º ¼¼Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
Color |
getBackground (AttributeSet attr)
¼Ó¼º ¼¼Æ®¸¦ ¹é±×¶ó¿îµå Ä®¶óÀÇ ÁöÁ¤À¸·Î º¯È¯ÇÕ´Ï´Ù. |
ChangeListener [] |
getChangeListeners ()
addChangeListener()¿¡ ÀÇÇØ ÀÌ StyleContext ¿¡ Ãß°¡µÈ, Àü ChangeListener ·ÎºÎÅÍ µÇ´Â ¹è¿À» µ¹·ÁÁÝ´Ï´Ù. |
protected int |
getCompressionThreshold ()
ÀÏÀÇ·Î º¯°æÀÌ ºÒ°¡´ÉÇÑ ¼¼Æ®¿¡ ¾ÐÃàÀ» ½ÃµµÇϴ Ű¿Í °ªÀÇ Æä¾îÀÇ ÃÖ´ë¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
static StyleContext |
getDefaultStyleContext ()
µ¶ÀÚÀûÀÎ ¹®¸ÆÀ» Á¤ÀÇ ¶Ç´Â °ø±ÞÇÏÁö ¾Ê´Â ¸ðµç ¹®¼¿¡ ÀÇÇØ °øÀ¯µÇ´Â µðÆúÆ®ÀÇ AttributeContext ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
AttributeSet |
getEmptySet ()
ÇÏ´ÃÀÇ ¼Ó¼º ¼¼Æ®¸¦ ²¨³À´Ï´Ù. |
Font |
getFont (AttributeSet attr)
¼Ó¼º ¼¼Æ®·ÎºÎÅÍ ÆùÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Font |
getFont (String family,
int style,
int size)
»õ·Î¿î ÆùÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
FontMetrics |
getFontMetrics (Font f)
ÆùÆ®¸ÞÆ®¸¯½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Color |
getForeground (AttributeSet attr)
¼Ó¼º ¼¼Æ®¸¦ foreground Ä®¶óÀÇ ÁöÁ¤À¸·Î º¯È¯ÇÕ´Ï´Ù. |
static Object |
getStaticAttribute (Object key)
Á÷Àü¿¡ registerStaticAttributeKey ¿¡ µî·ÏµÈ ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
static Object |
getStaticAttributeKey (Object key)
key ¿¡ µî·ÏµÇ´Â String ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Style |
getStyle (String nm)
¹®¼¿¡ ÀÌÀü¿¡ Ãß°¡µÈ À̸§ ÷ºÎÀÇ ¼½ÄÀ» ²¨³À´Ï´Ù. |
Enumeration |
getStyleNames ()
Á¤Àǵǰí ÀÖ´Â ¼½ÄÀÇ À̸§À» ²¨³À´Ï´Ù. |
void |
readAttributes (ObjectInputStream in,
MutableAttributeSet a)
¼Ó¼ºÀ» ÀоîµéÀÌ´Â ¹®¸Æ °íÀ¯ÀÇ Ã³¸®ÀÔ´Ï´Ù. |
static void |
readAttributeSet (ObjectInputStream in,
MutableAttributeSet a)
ÁöÁ¤µÈ ¿ÀºêÁ§Æ® ÀÔ·Â ½ºÆ®¸²À¸·ÎºÎÅÍ , writeAttributeSet ·Î ÀÌÀü¿¡ ±âÀÔÇØÁö°í ÀÖ´Â ¼Ó¼º ¼¼Æ®¸¦ ÀоîµéÀÔ´Ï´Ù. |
void |
reclaim (AttributeSet a)
MutableAttributeSet ÀÇ ±¸Çö¿¡ ÀÇÇØ ÇÊ¿äÇÏ°Ô µÇÁö ¾Ê°Ô µÈ ¼¼Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
static void |
registerStaticAttributeKey (Object key)
¿ÀºêÁ§Æ®¸¦, ¼Ó¼º ¼¼Æ®·Î Ű·Î¼ »ç¿ëµÇ´Â static ¿ÀºêÁ§Æ®·Î¼ µî·ÏÇÕ´Ï´Ù. |
AttributeSet |
removeAttribute (AttributeSet old,
Object name)
¼¼Æ®·ÎºÎÅÍ ¼Ó¼ºÀ» »èÁ¦ÇÕ´Ï´Ù. |
AttributeSet |
removeAttributes (AttributeSet old,
AttributeSet attrs)
¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù. |
AttributeSet |
removeAttributes (AttributeSet old,
Enumeration names)
¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeChangeListener (ChangeListener l)
¼½ÄÀÇ Ãß°¡ ¶Ç´Â »èÁ¦¸¦ ÃßÀûÇϰí ÀÖ´ø ûÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeStyle (String nm)
ÀÌÀü¿¡ ¹®¼¿¡ Ãß°¡µÈ À̸§ ÷ºÎ ¼½ÄÀ» »èÁ¦ÇÕ´Ï´Ù. |
String |
toString ()
¼½Ä ¹®¸ÆÀ» ij¸¯ÅÍ ¶óÀÎÀ¸·Î º¯È¯ÇÕ´Ï´Ù. |
void |
writeAttributes (ObjectOutputStream out,
AttributeSet a)
¼Ó¼ºÀ» ±âÀÔÇÏ´Â ¹®¸Æ °íÀ¯ÀÇ Ã³¸®ÀÔ´Ï´Ù. |
static void |
writeAttributeSet (ObjectOutputStream out,
AttributeSet a)
Á÷·Äȸ¦ À§Çؼ(¶§¹®¿¡), ÁöÁ¤µÈ ¿ÀºêÁ§Æ® ½ºÆ®¸²¿¡ ¼Ó¼º ¼¼Æ®¸¦ ±âÀÔÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
public static final String DEFAULT_STYLE
»ý¼ºÀÚÀÇ »ó¼¼ |
public StyleContext()
¸Þ¼ÒµåÀÇ »ó¼¼ |
public static final StyleContext getDefaultStyleContext()
public Style addStyle(String nm, Style parent)
nm
- ¼½ÄÀÇ À̸§. ÀÌ À̸§Àº ¹®¼³»ÀÇ À̸§ ÷ºÎ ¼½ÄÀÇ ÄÝ·º¼Ç Áß(¾È)¿¡¼ ÀÏÀǰ¡ ¾Æ´Ï¸é ¾ÈµÈ´Ù. À̸§Àº ¼½Ä¿¡ À̸§ÀÌ ºÙÁö ¾ÊÀº °æ¿ì´Â null µµ °¡´ÉÇÏÁö¸¸, È£ÃâÃøÀº À̸§ÀÌ ¾ø´Â ¼½ÄÀÌ À̸§À¸·Î ÃëµæÇÒ ¼ö ¾ø´Â °æ¿ì¿¡ µ¹·ÁÁÖ¾îÁö´Â ÂüÁ¶¸¦ °ü¸®ÇØ¾ß ÇÑ´Ù. À̸§ÀÌ ¾ø´Â ¼½ÄÀº ½ºÅ¸ÀÏ ·±À¸·Î º¼ ¼ö ÀÖ´Â °Í °°Àº ij¸¯ÅÍ ¼Ó¼ºÀÇ ¿À¹ö¶óÀ̵å(override)µîÀ¸·Î Æí¸®ÇÑ °æ¿ì°¡ ÀÖ´Âparent
- Ä£¼½Ä. ÁöÁ¤µÇ¾î ÀÖÁö ¾ÊÀº ¼Ó¼ºÀÌ ´Ù¸¥ ¼½Ä¿¡¼ ÇØ¼® ó¸®µÉ Çʿ䰡 ¾ø´Â °æ¿ì´Â null µµ °¡´É
public void removeStyle(String nm)
nm
- »èÁ¦µÇ´Â ¼½ÄÀÇ À̸§public Style getStyle(String nm)
nm
- ¼½ÄÀÇ À̸§
public Enumeration getStyleNames()
public void addChangeListener(ChangeListener l)
l
- º¯°æ ûÃëÀÚpublic void removeChangeListener(ChangeListener l)
l
- º¯°æ ûÃëÀÚpublic ChangeListener [] getChangeListeners()
ChangeListener
·ÎºÎÅÍ µÇ´Â ¹è¿À» µ¹·ÁÁÝ´Ï´Ù.
ChangeListener
. Ãß°¡µÈ ûÃëÀÚ°¡ ¾ø´Â °æ¿ì´Â ÇÏ´ÃÀÇ ¹è¿public Font getFont(AttributeSet attr)
attr
- ¼Ó¼º ¼¼Æ®
public Color getForeground(AttributeSet attr)
attr
- ¼Ó¼º ¼¼Æ®
public Color getBackground(AttributeSet attr)
attr
- ¼Ó¼º ¼¼Æ®
public Font getFont(String family, int style, int size)
family
- ÆùÆ® ÆÐ¹Ð¸® ( ¡¸Monospaced¡¹ µî)style
- ÆùÆ®ÀÇ ¼½Ä (Font.PLAIN µî)size
- Æ÷ÀÎÆ® »çÀÌÁî >= 1
public FontMetrics getFontMetrics(Font f)
f
- ÆùÆ®
public AttributeSet addAttribute(AttributeSet old, Object name, Object value)
ÀÌ ¸Þ¼Òµå´Â thread ¼¼ÀÌÇÁÀÔ´Ï´Ù¸¸, ´ëºÎºÐÀÇ Swing ¸Þ¼Òµå´Â ´Ù¸¨´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº ¡¸Threads and Swing¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
AbstractDocument.AttributeContext
³»ÀÇ addAttribute
old
- ±¸¼Ó¼º ¼¼Æ®name
- null ÀÌ¿ÜÀÇ ¼Ó¼º¸ívalue
- ¼Ó¼ºÄ¡
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)
public AttributeSet addAttributes(AttributeSet old, AttributeSet attr)
ÀÌ ¸Þ¼Òµå´Â thread ¼¼ÀÌÇÁÀÔ´Ï´Ù¸¸, ´ëºÎºÐÀÇ Swing ¸Þ¼Òµå´Â ´Ù¸¨´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº ¡¸Threads and Swing¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
AbstractDocument.AttributeContext
³»ÀÇ addAttributes
old
- ±¸¼Ó¼º ¼¼Æ®attr
- Ãß°¡ÇÏ´Â ¼Ó¼º
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)
public AttributeSet removeAttribute(AttributeSet old, Object name)
ÀÌ ¸Þ¼Òµå´Â thread ¼¼ÀÌÇÁÀÔ´Ï´Ù¸¸, ´ëºÎºÐÀÇ Swing ¸Þ¼Òµå´Â ´Ù¸¨´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº ¡¸Threads and Swing¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
AbstractDocument.AttributeContext
³»ÀÇ removeAttribute
old
- ±¸¼Ó¼º ¼¼Æ®name
- null ÀÌ¿ÜÀÇ ¼Ó¼º¸í
MutableAttributeSet.removeAttribute(java.lang.Object)
public AttributeSet removeAttributes(AttributeSet old, Enumeration names)
ÀÌ ¸Þ¼Òµå´Â thread ¼¼ÀÌÇÁÀÔ´Ï´Ù¸¸, ´ëºÎºÐÀÇ Swing ¸Þ¼Òµå´Â ´Ù¸¨´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº ¡¸Threads and Swing¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
AbstractDocument.AttributeContext
³»ÀÇ removeAttributes
old
- ±¸¼Ó¼º ¼¼Æ®names
- ¼Ó¼º¸í
MutableAttributeSet.removeAttributes(java.util.Enumeration)
public AttributeSet removeAttributes(AttributeSet old, AttributeSet attrs)
ÀÌ ¸Þ¼Òµå´Â thread ¼¼ÀÌÇÁÀÔ´Ï´Ù¸¸, ´ëºÎºÐÀÇ Swing ¸Þ¼Òµå´Â ´Ù¸¨´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº ¡¸Threads and Swing¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
AbstractDocument.AttributeContext
³»ÀÇ removeAttributes
old
- ±¸¼Ó¼º ¼¼Æ®attrs
- ¼Ó¼º
MutableAttributeSet.removeAttributes(java.util.Enumeration)
public AttributeSet getEmptySet()
AbstractDocument.AttributeContext
³»ÀÇ getEmptySet
public void reclaim(AttributeSet a)
ÀÌ ¸Þ¼Òµå´Â thread ¼¼ÀÌÇÁÀÔ´Ï´Ù¸¸, ´ëºÎºÐÀÇ Swing ¸Þ¼Òµå´Â ´Ù¸¨´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº ¡¸Threads and Swing¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
AbstractDocument.AttributeContext
³»ÀÇ reclaim
a
- Àç»ýÇÏ´Â ¼¼Æ®protected int getCompressionThreshold()
protected StyleContext.SmallAttributeSet createSmallAttributeSet(AttributeSet a)
a
- ÄÄÆÑÆ®ÇÑ Çü½Ä¿¡¼ Ç¥ÇöµÇ´Â ¼Ó¼º ¼¼Æ®protected MutableAttributeSet createLargeAttributeSet(AttributeSet a)
a
- »çÀÌÁîÀÇ Å« Çü½Ä¿¡¼ Ç¥ÇöµÇ´Â ¼Ó¼º ¼¼Æ®public String toString()
Object
³»ÀÇ toString
public void writeAttributes(ObjectOutputStream out, AttributeSet a) throws IOException
IOException
public void readAttributes(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException , IOException
ClassNotFoundException
IOException
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException
registerStaticAttributeKey
¸Þ¼Òµå·Î µî·ÏµÇ¾î ÀÖ´Â static ¼Ó¼º ۸¦ ó¸®ÇÕ´Ï´Ù. static Ű·Î¼ µî·ÏµÇÁö ¾ÊÀº ¼Ó¼º Ű´Â Á÷Á¢ Á÷·ÄÈ µË´Ï´Ù. ¸ðµç °ªÀÌ Á÷·ÄÈ °¡´ÉÇÕ´Ï´Ù.
out
- Ãâ·Â ½ºÆ®¸²a
- ¼Ó¼º ¼¼Æ®
IOException
- ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic static void readAttributeSet(ObjectInputStream in, MutableAttributeSet a) throws ClassNotFoundException , IOException
writeAttributeSet
·Î ÀÌÀü¿¡ ±âÀÔÇØÁö°í ÀÖ´Â ¼Ó¼º ¼¼Æ®¸¦ ÀоîµéÀÔ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â registerStaticAttributeKey
¸Þ¼Òµå·Î µî·ÏµÇ¾î Àִ Ű¸¸À» °í·ÁÇÏ´Â ÇöÀçÀÇ °¡»ó ¸Ó½ÅÀ¸·Î static ¿ÀºêÁ§Æ®¿´´ø ۸¦ static ¿ÀºêÁ§Æ®¿¡ º¹¿øÇÏ·Á°í ÇÕ´Ï´Ù. ½ºÆ®¸²À¸·ÎºÎÅÍ ²¨³»Áø ¼Ó¼ºÀº ÁöÁ¤µÈ º¯°æÀÌ °¡´ÉÇÑ ¼¼Æ®¿¡ ¹èÄ¡µË´Ï´Ù.
in
- ¼Ó¼º µ¥ÀÌÅ͸¦ ÀоîµéÀÌ´Â ¿ÀºêÁ§Æ® ½ºÆ®¸²a
- ¼Ó¼º Á¤ÀǸ¦ ¹èÄ¡ÇÏ´Â ¼Ó¼º ¼¼Æ®
ClassNotFoundException
- ¿ÀºêÁ§Æ® ½ºÆ®¸²À» ÀоîµéÀÏ ¶§ °ËÃâµÇ¾úÀ» °æ¿ì¿¡ À§¿¡°Ô °Ç³×Áø´Ù
IOException
- ¿ÀºêÁ§Æ® ½ºÆ®¸²À» ÀоîµéÀÏ ¶§ °ËÃâµÇ¾úÀ» °æ¿ì¿¡ À§¿¡°Ô °Ç³×Áø´Ùpublic static void registerStaticAttributeKey(Object key)
1.1 °¡»ó ¸Ó½Å»ó¿¡¼ÀÇ Ã³¸®ÀÇ °æ¿ì, ÀÌ ¸Þ¼Òµå´Â Ŭ·¡½º¸í¿¡ ¿¬°áµÈ toString
¿¡ ÀÇÇØ µ¹·ÁÁÖ¾îÁö´Â °ªÀ» »ç¿ëÇÕ´Ï´Ù. toString ¿¡ ÀÇÇØ µ¹·ÁÁÖ¾îÁö´Â °ªÀº ³ªÁß¿¡ Àç°è»êµÉ ¶§ °°°Ô µÇµµ·Ï(µíÀÌ) Çϱâ À§Çؼ´Â ±× Áß¿¡ Ŭ·¡½º ÂüÁ¶¸¦ °®°ÔÇÒ ¼ö ¾ø½À´Ï´Ù. ±×°ÍÀº Object ³»ÀÇ Á¤ÀǷκÎÅÍ À籸ÇöµÇÁö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù.
key
- null ÀÌ¿ÜÀÇ ¿ÀºêÁ§Æ® Űpublic static Object getStaticAttribute(Object key)
registerStaticAttributeKey
¿¡ µî·ÏµÈ ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
public static Object getStaticAttributeKey(Object key)
key
¿¡ µî·ÏµÇ´Â String ¸¦ µ¹·ÁÁÝ´Ï´Ù.
getStaticAttribute(java.lang.Object)
,
registerStaticAttributeKey(java.lang.Object)
|
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.