JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.text
ÀÎÅÍÆäÀ̽º MutableAttributeSet

¸ðµç ½´ÆÛ ÀÎÅÍÆäÀ̽º:
AttributeSet
¾Ë·ÁÁø ¼­ºê ÀÎÅÍÆäÀ̽º ¸ñ·Ï :
Style
¾Ë·ÁÁø ±¸Çö Ŭ·¡½º ¸ñ·Ï:
AbstractDocument.AbstractElement, AbstractDocument.BranchElement, AbstractDocument.LeafElement, DefaultStyledDocument.SectionElement, HTMLDocument.BlockElement, HTMLDocument.RunElement, SimpleAttributeSet, StyleContext.NamedStyle

public interface MutableAttributeSet
extends AttributeSet

ÀÏÀÇÀÎ ¼Ó¼ºÀ» ¸ðÀº °¡º¯ Ä÷º¼ÇÀÇ ¹ü¿ë ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù. ±¸ÇöÀº ¾Æ¸¶, ´ÙÀ½ÀÇ Çü½ÄÀÇ »ý¼ºÀÚ¸¦ Á¦°øÇÏ·Á°í ÇÕ´Ï´Ù. public XXXAttributeSet(ConstAttributeSet source);


Áßø(Nested) Ŭ·¡½º °³¿ä
 
ÀÎÅÍÆäÀ̽º javax.swing.text. AttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
 
ÇÊµå °³¿ä
 
ÀÎÅÍÆäÀ̽º javax.swing.text. AttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
NameAttribute, ResolveAttribute
 
¸Þ¼­µå °³¿ä
 void addAttribute (Object  name, Object  value)
          ÁöÁ¤µÈ À̸§°ú °ªÀ» °¡Áö´Â ¼Ó¼ºÀ» º¸°ü À¯ÁöÇÏ´Â °ÍÀ» Á¦¿ÜÇØ, ÀÌ°Í°ú °°Àº »õ·Î¿î ¼Ó¼º ¼¼Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 void addAttributes (AttributeSet  attributes)
          ÁöÁ¤µÈ ¼Ó¼º°ú °ªÀ» °¡Áö´Â °ÍÀ» Á¦¿ÜÇØ, ÀÌ°Í°ú °°Àº »õ·Î¿î ¼Ó¼º ¼¼Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 void removeAttribute (Object  name)
          ÁöÁ¤ÇÑ name¸¦ °¡Áö´Â ¼Ó¼ºÀ» »èÁ¦ÇÕ´Ï´Ù.
 void removeAttributes (AttributeSet  attributes)
          ÁöÁ¤ÇÑ name¸¦ °¡Áö´Â ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void removeAttributes (Enumeration <? > names)
          ÁöÁ¤ÇÑ names¸¦ °¡Áö´Â ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void setResolveParent (AttributeSet  parent)
          Çؼ® ó¸®ÃøÀÇ ºÎ¸ð¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 
ÀÎÅÍÆäÀ̽º javax.swing.text. AttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqual
 

¸Þ¼­µåÀÇ »ó¼¼

addAttribute

void addAttribute(Object  name,
                  Object  value)
ÁöÁ¤µÈ À̸§°ú °ªÀ» °¡Áö´Â ¼Ó¼ºÀ» º¸°ü À¯ÁöÇÏ´Â °ÍÀ» Á¦¿ÜÇØ, ÀÌ°Í°ú °°Àº »õ·Î¿î ¼Ó¼º ¼¼Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. °´Ã¼´Â ºÒº¯ÀÌ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù. Áï, ¾î´À Ŭ¶óÀ̾ðÆ®¿¡ Çصµ º¯°æÇÒ ¼ö ¾ø½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
name - À̸§
value - Ä¡

addAttributes

void addAttributes(AttributeSet  attributes)
ÁöÁ¤µÈ ¼Ó¼º°ú °ªÀ» °¡Áö´Â °ÍÀ» Á¦¿ÜÇØ, ÀÌ°Í°ú °°Àº »õ·Î¿î ¼Ó¼º ¼¼Æ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
attributes - ¼Ó¼º ¼¼Æ®

removeAttribute

void removeAttribute(Object  name)
ÁöÁ¤ÇÑ name¸¦ °¡Áö´Â ¼Ó¼ºÀ» »èÁ¦ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
name - ¼Ó¼º¸í

removeAttributes

void removeAttributes(Enumeration <? > names)
ÁöÁ¤ÇÑ names¸¦ °¡Áö´Â ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
names - À̸§¼¼Æ®

removeAttributes

void removeAttributes(AttributeSet  attributes)
ÁöÁ¤ÇÑ name¸¦ °¡Áö´Â ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
attributes - ¼Ó¼º ¼¼Æ®

setResolveParent

void setResolveParent(AttributeSet  parent)
Çؼ® ó¸®ÃøÀÇ ºÎ¸ð¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ°ÍÀº ¼Ó¼ºÀÌ ·ÎÄÿ¡ Á¤ÀǵǾî ÀÖÁö ¾ÊÀºÁö ¾î¶²Áö¸¦ Çؼ® ó¸®Çϱâ À§ÇÑ ¼Ó¼º ¼¼Æ®ÀÔ´Ï´Ù.

ÆĶó¹ÌÅÍ:
parent - ºÎ¸ð

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.