JavaTM 2 Platform
Standard Ed. 5.0

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

¸ðµç ½´ÆÛ ÀÎÅÍÆäÀ̽º:
AttributeSet, MutableAttributeSet
¾Ë·ÁÁø ±¸Çö Ŭ·¡½º ¸ñ·Ï:
StyleContext.NamedStyle

public interface Style
extends MutableAttributeSet

¹®¼­³»ÀÇ ¿ä¼Ò¿¡ °ü·ÃÇÑ ¼Ó¼ºÀÇ Ä÷º¼ÇÀÔ´Ï´Ù. ÀÌ·¯ÇÑ ¼Ó¼ºÀº ¹®ÀÚ ¹× ´Ü¶ôÀÇ ¼­½ÄÀ» ¿ä¼Ò¿Í °ü·ÃÁþ±â À§Çؼ­ »ç¿ëµÇ¹Ç·Î ±× ¶§¹®ÀÇ Ã³¸®°¡ Á¦°øµË´Ï´Ù. ¿ä¼Ò¿¡ °ü·ÃÇÑ °Í ¿ÜÀÇ Ä¿½ºÅ͸¶ÀÌÁî µÈ ¼Ó¼ºÀº ½ÇÁ¦·Î´Â °èÃþ¿¡ Á¸ÀçÇÏ´Â À̸§°ú °ªÀÇ Æä¾î°¡ µÇ¾î, À̸§ (Å°)ÀÌ ·ÎÄ÷Π¹ß°ßµÇÁö ¾Ê´Â °æ¿ì, ¿ä±¸´Â ºÎ¸ð¿¡°Ô Àü¼Û µË´Ï´Ù. º¸´Ù È¿À²ÀûÀÎ ´ëüÀÇ ±¸ÇöÀ» ¿ëÀÌÇÏ°Ô Çϱâ À§Çؼ­ °øÅëµÇ¾î »ç¿ëµÇ´Â ¼Ó¼ºÀº µû·Î Á¸ÀçÇÕ´Ï´Ù.


Áßø(Nested) Ŭ·¡½º °³¿ä
 
ÀÎÅÍÆäÀ̽º javax.swing.text. AttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
 
ÇÊµå °³¿ä
 
ÀÎÅÍÆäÀ̽º javax.swing.text. AttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå
NameAttribute, ResolveAttribute
 
¸Þ¼­µå °³¿ä
 void addChangeListener (ChangeListener  l)
          ¼Ó¼ºÀÌ º¯°æµÇ°í ÀÖ´Â °æ¿ì·Î º¯°æÀ» ÃßÀûÇÏ´Â ¸®½º³Ê¸¦ Ãß°¡ÇÕ´Ï´Ù.
 String getName ()
          ¼­½ÄÀÇ À̸§À» ²¨³À´Ï´Ù.
 void removeChangeListener (ChangeListener  l)
          ¼Ó¼ºÀÇ º¯°æÀ» ÃßÀûÇÏ°í ÀÖ´ø ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.
 
ÀÎÅÍÆäÀ̽º javax.swing.text. MutableAttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
addAttribute, addAttributes, removeAttribute, removeAttributes, removeAttributes, setResolveParent
 
ÀÎÅÍÆäÀ̽º javax.swing.text. AttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqual
 

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

getName

String  getName()
¼­½ÄÀÇ À̸§À» ²¨³À´Ï´Ù. ¼­½ÄÀº À̸§À» ºÙÀÏ ÇÊ¿ä°¡ ¾ø±â ¶§¹®¿¡ ¼­½Ä¿¡ °ü·ÃÇÑ À̸§ÀÌ ¾ø´Â °æ¿ì´Â nullÀÌ ¸®Åϵ˴ϴ٠.

¹Ýȯ°ª:
À̸§

addChangeListener

void addChangeListener(ChangeListener  l)
¼Ó¼ºÀÌ º¯°æµÇ°í ÀÖ´Â °æ¿ì·Î º¯°æÀ» ÃßÀûÇÏ´Â ¸®½º³Ê¸¦ Ãß°¡ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
l - º¯°æ ¸®½º³Ê

removeChangeListener

void removeChangeListener(ChangeListener  l)
¼Ó¼ºÀÇ º¯°æÀ» ÃßÀûÇÏ°í ÀÖ´ø ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
l - º¯°æ ¸®½º³Ê

JavaTM 2 Platform
Standard Ed. 5.0

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