JavaTM Platform
Standard Ed. 6

javax.swing.text
인터페이스 Style

모든 슈퍼 인터페이스:
AttributeSet , MutableAttributeSet
기존의 구현 클래스의 일람:
StyleContext.NamedStyle


public interface Style
extends MutableAttributeSet

문서내의 요소에 관련한 속성의 컬렉션입니다. 이러한 속성은 문자 및 단락의 서식을 요소와 관련짓기 위해서(때문에) 사용되므로, 그 때문의 처리가 제공됩니다. 요소에 관련한 것 외의 커스터마이즈 된 속성은, 실제로는 계층에 존재하는 이름과 값의 페어가 되어, 이름 (키)이 로컬로 발견되지 않는 경우, 요구는 부모에게 전송 됩니다. 보다 효율적인 대체의 구현을 용이하게 하기 위해서, 공통되어 사용되는 속성은 따로 존재합니다.


상자의 클래스의 개요
 
인터페이스 javax.swing.text. AttributeSet 로부터 상속된 상자의 클래스/인터페이스
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 Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.