|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Object javax.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 µµ ÂüÁ¶ÇϽʽÿÀ.