JavaTM Platform
Standard Ed. 6

javax.swing.text
클래스 AbstractDocument.AbstractElement

java.lang.Object 
  상위를 확장 javax.swing.text.AbstractDocument.AbstractElement
모든 구현된 인터페이스:
Serializable , AttributeSet , Element , MutableAttributeSet , TreeNode
직계의 기존의 서브 클래스:
AbstractDocument.BranchElement , AbstractDocument.LeafElement
포함되어 있는 클래스:
AbstractDocument


public abstract class AbstractDocument.AbstractElement
extends Object
implements Element , MutableAttributeSet , Serializable , TreeNode

요소의 추상 부분을 구현합니다. 디폴트에서는, 요소의 현재의 속성 세트에 대해 불변 부분을 나타내는 필드를 보관 유지하는 것으로, 요소는 속성을 지원하고 있습니다. 요소 자신은, MutableAttributeSet 를 구현합니다. MutableAttributeSet 를 사용하면(자), 새로운 불변 세트를 꺼내 세트를 변경할 수 있습니다. 불변 세트는, 문서에 관련하는 AttributeContext 에 의해 제공됩니다.

경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans 의 장기간의 운용 지원는,java.beans 패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder 를 참조해 주세요.


상자의 클래스의 개요
 
인터페이스 javax.swing.text. AttributeSet 로부터 상속된 상자의 클래스/인터페이스
AttributeSet.CharacterAttribute , AttributeSet.ColorAttribute , AttributeSet.FontAttribute , AttributeSet.ParagraphAttribute
 
필드의 개요
 
인터페이스 javax.swing.text. AttributeSet 로부터 상속된 필드
NameAttribute , ResolveAttribute
 
생성자 의 개요
AbstractDocument.AbstractElement (Element  parent, AttributeSet  a)
          새로운 AbstractElement 를 작성합니다.
 
메소드의 개요
 void addAttribute (Object  name, Object  value)
          요소에 속성을 추가합니다.
 void addAttributes (AttributeSet  attr)
          속성 세트를 요소에 추가합니다.
abstract  Enumeration children ()
          리시버의 아이를 Enumeration 로서 돌려줍니다.
 boolean containsAttribute (Object  name, Object  value)
          속성의 이름과 값이 정의가 끝난 상태일지 어떨지를 판정합니다.
 boolean containsAttributes (AttributeSet  attrs)
          요소에 모든 속성이 포함되어 있는지 어떤지를 판정합니다.
 AttributeSet copyAttributes ()
          속성 세트를 카피합니다.
 void dump (PrintStream  psOut, int indentAmount)
          요소 계층의 디버그 표현을 덤프 합니다.
abstract  boolean getAllowsChildren ()
          리시버가 아이를 허가하는 경우는 true 를 돌려줍니다.
 Object getAttribute (Object  attrName)
          속성의 값을 가져옵니다.
 int getAttributeCount ()
          정의되고 있는 속성의 개수를 가져옵니다.
 Enumeration <? > getAttributeNames ()
          모든 속성의 이름을 가져옵니다.
 AttributeSet getAttributes ()
          요소의 속성을 가져옵니다.
 TreeNode getChildAt (int childIndex)
          인덱스 childIndex 에 있는 아이 TreeNode 를 돌려줍니다.
 int getChildCount ()
          TreeNode 의 리시버가 포함하는 아이의 수를 돌려줍니다.
 Document getDocument ()
          기반이 되는 모델을 가져옵니다.
abstract  Element getElement (int index)
          아이 요소를 가져옵니다.
abstract  int getElementCount ()
          요소의 아이의 수를 가져옵니다.
abstract  int getElementIndex (int offset)
          지정된 모델 오프셋(offset)에 가장 가까운 아이 요소 인덱스를 가져옵니다.
abstract  int getEndOffset ()
          요소의 모델내에서의 종료 오프셋(offset)를 가져옵니다.
 int getIndex (TreeNode  node)
          리시버의 아이중에서 node 의 인덱스를 돌려줍니다.
 String getName ()
          요소의 이름을 돌려줍니다.
 TreeNode getParent ()
          리시버의 친 TreeNode 를 돌려줍니다.
 Element getParentElement ()
          요소의 부모를 가져옵니다.
 AttributeSet getResolveParent ()
          해석 처리측의 부모를 가져옵니다.
abstract  int getStartOffset ()
          요소의 모델내에서의 개시 오프셋(offset)를 가져옵니다.
 boolean isDefined (Object  attrName)
          지정된 속성이 정의가 끝난 상태일지 어떨지를 판정합니다.
 boolean isEqual (AttributeSet  attr)
          2 개의 속성 세트가 동일한지 어떤지를 판정합니다.
abstract  boolean isLeaf ()
          요소가 잎인가 어떤가를 조사합니다.
 void removeAttribute (Object  name)
          세트로부터 속성을 삭제합니다.
 void removeAttributes (AttributeSet  attrs)
          요소의 속성 세트를 삭제합니다.
 void removeAttributes (Enumeration <? > names)
          요소의 속성 세트를 삭제합니다.
 void setResolveParent (AttributeSet  parent)
          해석 처리측의 부모를 설정합니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

생성자 의 상세

AbstractDocument.AbstractElement

public AbstractDocument.AbstractElement(Element  parent,
                                        AttributeSet  a)
새로운 AbstractElement 를 작성합니다.

파라미터:
parent - 친요소
a - 요소의 속성
도입된 버젼:
1.4
메소드의 상세

dump

public void dump(PrintStream  psOut,
                 int indentAmount)
요소 계층의 디버그 표현을 덤프 합니다.

파라미터:
psOut - 출력 스트림
indentAmount - 인덴트 레벨 >= 0

getAttributeCount

public int getAttributeCount()
정의되고 있는 속성의 개수를 가져옵니다.

정의:
인터페이스 AttributeSet 내의 getAttributeCount
반환값:
속성의 수 >= 0
관련 항목:
AttributeSet.getAttributeCount()

isDefined

public boolean isDefined(Object  attrName)
지정된 속성이 정의가 끝난 상태일지 어떨지를 판정합니다.

정의:
인터페이스 AttributeSet 내의 isDefined
파라미터:
attrName - null 이외의 속성명
반환값:
속성이 정의되고 있는 경우는 true
관련 항목:
AttributeSet.isDefined(java.lang.Object)

isEqual

public boolean isEqual(AttributeSet  attr)
2 개의 속성 세트가 동일한지 어떤지를 판정합니다.

정의:
인터페이스 AttributeSet 내의 isEqual
파라미터:
attr - 비교의 대상이 되는 속성 세트
반환값:
동일한 경우는 true
관련 항목:
AttributeSet.isEqual(javax.swing.text.AttributeSet)

copyAttributes

public AttributeSet  copyAttributes()
속성 세트를 카피합니다.

정의:
인터페이스 AttributeSet 내의 copyAttributes
반환값:
카피
관련 항목:
AttributeSet.copyAttributes()

getAttribute

public Object  getAttribute(Object  attrName)
속성의 값을 가져옵니다.

정의:
인터페이스 AttributeSet 내의 getAttribute
파라미터:
attrName - null 이외의 속성명
반환값:
속성치
관련 항목:
AttributeSet.getAttribute(java.lang.Object)

getAttributeNames

public Enumeration <? > getAttributeNames()
모든 속성의 이름을 가져옵니다.

정의:
인터페이스 AttributeSet 내의 getAttributeNames
반환값:
속성명의 열거
관련 항목:
AttributeSet.getAttributeNames()

containsAttribute

public boolean containsAttribute(Object  name,
                                 Object  value)
속성의 이름과 값이 정의가 끝난 상태일지 어떨지를 판정합니다.

정의:
인터페이스 AttributeSet 내의 containsAttribute
파라미터:
name - null 이외의 속성명
value - 속성치
반환값:
이름과 값이 정의되고 있는 경우는 true
관련 항목:
AttributeSet.containsAttribute(java.lang.Object, java.lang.Object)

containsAttributes

public boolean containsAttributes(AttributeSet  attrs)
요소에 모든 속성이 포함되어 있는지 어떤지를 판정합니다.

정의:
인터페이스 AttributeSet 내의 containsAttributes
파라미터:
attrs - 체크 대상의 속성
반환값:
요소가 속성을 모두 포함하고 있는 경우는 true
관련 항목:
AttributeSet.containsAttributes(javax.swing.text.AttributeSet)

getResolveParent

public AttributeSet  getResolveParent()
해석 처리측의 부모를 가져옵니다. 오버라이드(override) 되지 않는 경우, 해석 처리측의 부모는, 디폴트로 친요소가 됩니다.

정의:
인터페이스 AttributeSet 내의 getResolveParent
반환값:
부모로부터의 속성. 없는 경우는 null
관련 항목:
AttributeSet.getResolveParent()

addAttribute

public void addAttribute(Object  name,
                         Object  value)
요소에 속성을 추가합니다.

정의:
인터페이스 MutableAttributeSet 내의 addAttribute
파라미터:
name - null 이외의 속성명
value - 속성치
관련 항목:
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)

addAttributes

public void addAttributes(AttributeSet  attr)
속성 세트를 요소에 추가합니다.

정의:
인터페이스 MutableAttributeSet 내의 addAttributes
파라미터:
attr - 추가하는 속성
관련 항목:
MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)

removeAttribute

public void removeAttribute(Object  name)
세트로부터 속성을 삭제합니다.

정의:
인터페이스 MutableAttributeSet 내의 removeAttribute
파라미터:
name - null 이외의 속성명
관련 항목:
MutableAttributeSet.removeAttribute(java.lang.Object)

removeAttributes

public void removeAttributes(Enumeration <? > names)
요소의 속성 세트를 삭제합니다.

정의:
인터페이스 MutableAttributeSet 내의 removeAttributes
파라미터:
names - 속성명
관련 항목:
MutableAttributeSet.removeAttributes(java.util.Enumeration)

removeAttributes

public void removeAttributes(AttributeSet  attrs)
요소의 속성 세트를 삭제합니다.

정의:
인터페이스 MutableAttributeSet 내의 removeAttributes
파라미터:
attrs - 속성
관련 항목:
MutableAttributeSet.removeAttributes(java.util.Enumeration)

setResolveParent

public void setResolveParent(AttributeSet  parent)
해석 처리측의 부모를 설정합니다.

정의:
인터페이스 MutableAttributeSet 내의 setResolveParent
파라미터:
parent - 부모. 없는 경우는 null
관련 항목:
MutableAttributeSet.setResolveParent(javax.swing.text.AttributeSet)

getDocument

public Document  getDocument()
기반이 되는 모델을 가져옵니다.

정의:
인터페이스 Element 내의 getDocument
반환값:
모델

getParentElement

public Element  getParentElement()
요소의 부모를 가져옵니다.

정의:
인터페이스 Element 내의 getParentElement
반환값:
부모

getAttributes

public AttributeSet  getAttributes()
요소의 속성을 가져옵니다.

정의:
인터페이스 Element 내의 getAttributes
반환값:
속성 세트

getName

public String  getName()
요소의 이름을 돌려줍니다.

정의:
인터페이스 Element 내의 getName
반환값:
이름. 없는 경우는 null

getStartOffset

public abstract int getStartOffset()
요소의 모델내에서의 개시 오프셋(offset)를 가져옵니다.

정의:
인터페이스 Element 내의 getStartOffset
반환값:
오프셋(offset) >= 0
관련 항목:
Document , AbstractDocument

getEndOffset

public abstract int getEndOffset()
요소의 모델내에서의 종료 오프셋(offset)를 가져옵니다.

정의:
인터페이스 Element 내의 getEndOffset
반환값:
오프셋(offset) >= 0
관련 항목:
Document , AbstractDocument

getElement

public abstract Element  getElement(int index)
아이 요소를 가져옵니다.

정의:
인터페이스 Element 내의 getElement
파라미터:
index - 자의 인덱스 >= 0 && < getElementCount()
반환값:
자 요소

getElementCount

public abstract int getElementCount()
요소의 아이의 수를 가져옵니다.

정의:
인터페이스 Element 내의 getElementCount
반환값:
자의 수 >= 0

getElementIndex

public abstract int getElementIndex(int offset)
지정된 모델 오프셋(offset)에 가장 가까운 아이 요소 인덱스를 가져옵니다.

정의:
인터페이스 Element 내의 getElementIndex
파라미터:
offset - 오프셋(offset) >= 0
반환값:
요소의 인덱스 >= 0

isLeaf

public abstract boolean isLeaf()
요소가 잎인가 어떤가를 조사합니다.

정의:
인터페이스 Element 내의 isLeaf
정의:
인터페이스 TreeNode 내의 isLeaf
반환값:
잎인 경우는 true

getChildAt

public TreeNode  getChildAt(int childIndex)
인덱스 childIndex 에 있는 아이 TreeNode 를 돌려줍니다.

정의:
인터페이스 TreeNode 내의 getChildAt

getChildCount

public int getChildCount()
TreeNode 의 리시버가 포함하는 아이의 수를 돌려줍니다.

정의:
인터페이스 TreeNode 내의 getChildCount
반환값:
TreeNodews 의 리시버가 포함하는 아이의 수

getParent

public TreeNode  getParent()
리시버의 친 TreeNode 를 돌려줍니다.

정의:
인터페이스 TreeNode 내의 getParent
반환값:
리시버의 친 TreeNode

getIndex

public int getIndex(TreeNode  node)
리시버의 아이중에서 node 의 인덱스를 돌려줍니다. 리시버가 node 를 포함하지 않는 경우는,-1 이 돌려주어집니다.

정의:
인터페이스 TreeNode 내의 getIndex
파라미터:
node - 대상의 위치
반환값:
리시버의 아이안의 node 의 인덱스. 존재하지 않는 경우는 -1

getAllowsChildren

public abstract boolean getAllowsChildren()
리시버가 아이를 허가하는 경우는 true 를 돌려줍니다.

정의:
인터페이스 TreeNode 내의 getAllowsChildren
반환값:
리시버가 아이를 허가하는 경우는 true, 그렇지 않은 경우는 false

children

public abstract Enumeration  children()
리시버의 아이를 Enumeration 로서 돌려줍니다.

정의:
인터페이스 TreeNode 내의 children
반환값:
리시버의 아이 (Enumeration)

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