|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.text.AbstractDocument.AbstractElement
javax.swing.text.AbstractDocument.BranchElement
public class AbstractDocument.BranchElement
다른 요소를 포함한 복합 요소를 구현합니다.
경고: 이 클래스의 직렬화 된 객체는, 향후의 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.BranchElement (Element parent,
AttributeSet a)
처음은 아이를 포함하지 않는, 복합 요소를 작성합니다. |
메소드의 개요 | |
---|---|
Enumeration |
children ()
리시버의 아이를 Enumeration 로서 돌려줍니다. |
boolean |
getAllowsChildren ()
리시버가 아이를 허가하는 경우는 true 를 돌려줍니다. |
Element |
getElement (int index)
아이 요소를 가져옵니다. |
int |
getElementCount ()
요소의 아이의 수를 가져옵니다. |
int |
getElementIndex (int offset)
지정된 모델 오프셋(offset)에 가장 가까운 아이 요소 인덱스를 가져옵니다. |
int |
getEndOffset ()
요소의 모델내에서의 종료 오프셋(offset)를 가져옵니다. |
String |
getName ()
요소의 이름을 가져옵니다. |
int |
getStartOffset ()
요소의 모델내에서의 개시 오프셋(offset)를 가져옵니다. |
boolean |
isLeaf ()
요소가 잎인가 어떤가를 조사합니다. |
Element |
positionToElement (int pos)
지정된 모델 위치를 포함한 아이 요소를 가져옵니다. |
void |
replace (int offset,
int length,
Element [] elems)
컨텐츠를 요소의 신규 세트로 옮겨놓습니다. |
String |
toString ()
요소를 캐릭터 라인으로 변환합니다. |
클래스 javax.swing.text. AbstractDocument.AbstractElement 로부터 상속된 메소드 |
---|
addAttribute , addAttributes , containsAttribute , containsAttributes , copyAttributes , dump , getAttribute , getAttributeCount , getAttributeNames , getAttributes , getChildAt , getChildCount , getDocument , getIndex , getParent , getParentElement , getResolveParent , isDefined , isEqual , removeAttribute , removeAttributes , removeAttributes , setResolveParent |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
public AbstractDocument.BranchElement(Element parent, AttributeSet a)
parent
- 친요소a
- 요소의 속성메소드의 상세 |
---|
public Element positionToElement(int pos)
pos
- 위치 >= 0
public void replace(int offset, int length, Element [] elems)
offset
- 개시 오프셋(offset) >= 0length
- 옮겨놓는 길이 >= 0elems
- 신규 요소public String toString()
Object
내의 toString
public String getName()
Element
내의 getName
AbstractDocument.AbstractElement
내의 getName
public int getStartOffset()
Element
내의 getStartOffset
AbstractDocument.AbstractElement
내의 getStartOffset
Document
,
AbstractDocument
public int getEndOffset()
Element
내의 getEndOffset
AbstractDocument.AbstractElement
내의 getEndOffset
NullPointerException
- 이 요소에 아이가 없는 경우Document
,
AbstractDocument
public Element getElement(int index)
Element
내의 getElement
AbstractDocument.AbstractElement
내의 getElement
index
- 자의 인덱스 >= 0 && < getElementCount()
public int getElementCount()
Element
내의 getElementCount
AbstractDocument.AbstractElement
내의 getElementCount
public int getElementIndex(int offset)
Element
내의 getElementIndex
AbstractDocument.AbstractElement
내의 getElementIndex
offset
- 오프셋(offset) >= 0
public boolean isLeaf()
Element
내의 isLeaf
TreeNode
내의 isLeaf
AbstractDocument.AbstractElement
내의 isLeaf
public boolean getAllowsChildren()
TreeNode
내의 getAllowsChildren
AbstractDocument.AbstractElement
내의 getAllowsChildren
public Enumeration children()
Enumeration
로서 돌려줍니다.
TreeNode
내의 children
AbstractDocument.AbstractElement
내의 children
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.