JavaTM Platform
Standard Ed. 6

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);


상자의 클래스의 개요
 
인터페이스 javax.swing.text. AttributeSet 로부터 상속된 상자의 클래스/인터페이스
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)
          지정한 name 를 가지는 속성 세트를 삭제합니다.
 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)
지정한 name 를 가지는 속성 세트를 삭제합니다.

파라미터:
names - 이름세트

removeAttributes

void removeAttributes(AttributeSet  attributes)
지정한 name 를 가지는 속성 세트를 삭제합니다.

파라미터:
attributes - 속성 세트

setResolveParent

void setResolveParent(AttributeSet  parent)
해석 처리측의 부모를 설정합니다. 이것은, 속성이 로컬로 정의되어 있지 않은 경우로 해석 처리하는 속성 세트입니다.

파라미터:
parent - 부모

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 도 참조해 주세요.