|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.text.StyleContext
public class StyleContext
¼½Ä ¹× °ü·ÃµÈ ÀÚ¿øÀÇ Ç®ÀÔ´Ï´Ù. ÀÌ Å¬·¡½º´Â ´Ù¾çÇÑ ¼½Ä Á¤ÀÇ¿¡ ÇØ ÀçÀÌ¿ëµÇ´Â ÆùÆ® ¹× »öµîÀÌ ´Ù¾çÇÑ ÀÚ¿øÀÇ Ä³½¬¸¦ º¸°ü À¯ÁöÇÏ´Â ÄÁÅ×À̳ʰ¡ µÇ´Â °ÍÀ¸·Î ÀÚ¿øÀÇ ±×·ìÀÇ ¼ö¸íÀ» °áÁ¤ÇÕ´Ï´Ù. ÇÊ¿äÇÑ °æ¿ì, À̰ÍÀº °ü·Ã ÀÚ¿øÀ» ÃÖ´ëÇÑÀ¸·Î °øÀ¯Çϱâ À§Çؼ º¹¼öÀÇ ¹®¼·Î °øÀ¯ÇÒ ¼ö ÀÖ½À´Ï´Ù.
¶Ç, ÀÌ Å¬·¡½º´Â ¼Ó¼ºÀÇ ÀÛÀº ¼¼Æ®¿¡ ´ëÇÑ È¿À²ÀûÀÎ ¼Æ÷Æ®¸¦ Á¦°øÇØ, »ç¿ëÀ» °øÀ¯ÇÏ´Â °ÍÀ¸·Î ¼Ó¼ºÀ» ¾ÐÃàÇØ, ±×·¯ÇÑ º¯°æ ºÒ°¡´ÉÇÑ ¼ºÁúÀ» ÃÖ´ëÇÑÀ¸·Î ÀÌ¿ëÇÕ´Ï´Ù. ¸¹Àº ¼½ÄÀº º¹Á¦µÇ¹Ç·Î °øÀ¯ÀÇ °¡´É¼ºÀÌ Ä¿Á®, Ä«Çǰ¡ ¸î¹øÀ̳ª »ç¿ëµË´Ï´Ù. Å« ¼¼Æ®´Â °øÀ¯ÀÇ °¡´É¼ºÀ» °¨¼Ò½ÃŰ¹Ç·Î ÇÊ¿¬ÀûÀ¸·Î ¿ë·® È¿À²ÀÌ µÚ¶³¾îÁø ±¸ÇöÀÌ µË´Ï´Ù.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â
ÇâÈÄÀÇ Swing ¸±¸®½º¿Í ȣȯÀº ¾Æ´Ï°Ô µÉ ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ ¼Æ÷Æ®´Â
´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing¸¦
½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÁ¯ 1.4 ÀÌÈÄ, ¸ðµç JavaBeans™
Àå±â°£ÀÇ ¿î¿ë ¼Æ÷Æ®´Â
java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº,XMLEncoder
¸¦
ÂüÁ¶ÇϽʽÿÀ.
Áßø(Nested) Ŭ·¡½º °³¿ä | |
---|---|
class |
StyleContext.NamedStyle
º¸Åë , ¹®ÀÚ ¹× ´Ü¶ôÀÇ ¼½ÄÀ» ³ªÅ¸³»±â À§Çؼ »ç¿ëµÇ´Â ¼Ó¼ºÀÇ Ä÷º¼ÇÀÔ´Ï´Ù. |
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 µµ °¡´ÉÇÏÁö¸¸, È£ÃâÃøÀº À̸§ÀÌ ¾ø´Â ¼½ÄÀÌ À̸§À¸·Î ÃëµæÇÒ ¼ö ¾ø´Â °æ¿ì¿¡ µ¹·ÁÁÖ°íÁö´Â ÂüÁ¶¸¦ °ü¸®ÇØ¾ß ÇÑ´Ù. À̸§ÀÌ ¾ø´Â ¼½ÄÀº, ½ºÅ¸ÀÏ ·±À¸·Î º¼ ¼ö ÀÖ´Â °Í °°Àº ¹®ÀÚ ¼Ó¼ºÀÇ ¿À¹ö¶óÀ̵å(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 Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.