|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjavax.swing.text.AbstractDocument.AbstractElement
public abstract class AbstractDocument.AbstractElement
요소의 추상 부분을 구현합니다. 디폴트에서는, 요소의 현재의 속성 세트에 대해 불변 부분을 나타내는 필드를 보관 유지하는 것으로, 요소는 속성을 지원하고 있습니다. 요소 자신은, 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 |
| 생성자 의 상세 |
|---|
public AbstractDocument.AbstractElement(Element parent,
AttributeSet a)
parent - 친요소a - 요소의 속성| 메소드의 상세 |
|---|
public void dump(PrintStream psOut,
int indentAmount)
psOut - 출력 스트림indentAmount - 인덴트 레벨 >= 0public int getAttributeCount()
AttributeSet 내의 getAttributeCount AttributeSet.getAttributeCount() public boolean isDefined(Object attrName)
AttributeSet 내의 isDefined attrName - null 이외의 속성명
AttributeSet.isDefined(java.lang.Object) public boolean isEqual(AttributeSet attr)
AttributeSet 내의 isEqual attr - 비교의 대상이 되는 속성 세트
AttributeSet.isEqual(javax.swing.text.AttributeSet) public AttributeSet copyAttributes()
AttributeSet 내의 copyAttributes AttributeSet.copyAttributes() public Object getAttribute(Object attrName)
AttributeSet 내의 getAttribute attrName - null 이외의 속성명
AttributeSet.getAttribute(java.lang.Object) public Enumeration <? > getAttributeNames()
AttributeSet 내의 getAttributeNames AttributeSet.getAttributeNames()
public boolean containsAttribute(Object name,
Object value)
AttributeSet 내의 containsAttribute name - null 이외의 속성명value - 속성치
AttributeSet.containsAttribute(java.lang.Object, java.lang.Object) public boolean containsAttributes(AttributeSet attrs)
AttributeSet 내의 containsAttributes attrs - 체크 대상의 속성
AttributeSet.containsAttributes(javax.swing.text.AttributeSet) public AttributeSet getResolveParent()
AttributeSet 내의 getResolveParent nullAttributeSet.getResolveParent()
public void addAttribute(Object name,
Object value)
MutableAttributeSet 내의 addAttribute name - null 이외의 속성명value - 속성치MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object) public void addAttributes(AttributeSet attr)
MutableAttributeSet 내의 addAttributes attr - 추가하는 속성MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object) public void removeAttribute(Object name)
MutableAttributeSet 내의 removeAttribute name - null 이외의 속성명MutableAttributeSet.removeAttribute(java.lang.Object) public void removeAttributes(Enumeration <? > names)
MutableAttributeSet 내의 removeAttributes names - 속성명MutableAttributeSet.removeAttributes(java.util.Enumeration >) public void removeAttributes(AttributeSet attrs)
MutableAttributeSet 내의 removeAttributes attrs - 속성MutableAttributeSet.removeAttributes(java.util.Enumeration >) public void setResolveParent(AttributeSet parent)
MutableAttributeSet 내의 setResolveParent parent - 부모. 없는 경우는 nullMutableAttributeSet.setResolveParent(javax.swing.text.AttributeSet) public Document getDocument()
Element 내의 getDocument public Element getParentElement()
Element 내의 getParentElement public AttributeSet getAttributes()
Element 내의 getAttributes public String getName()
Element 내의 getName public abstract int getStartOffset()
Element 내의 getStartOffset Document ,
AbstractDocument public abstract int getEndOffset()
Element 내의 getEndOffset Document ,
AbstractDocument public abstract Element getElement(int index)
Element 내의 getElement index - 자의 인덱스 >= 0 && < getElementCount()
public abstract int getElementCount()
Element 내의 getElementCount public abstract int getElementIndex(int offset)
Element 내의 getElementIndex offset - 오프셋(offset) >= 0
public abstract boolean isLeaf()
Element 내의 isLeaf TreeNode 내의 isLeaf public TreeNode getChildAt(int childIndex)
childIndex 에 있는 아이 TreeNode 를 돌려줍니다.
TreeNode 내의 getChildAt public int getChildCount()
TreeNode 의 리시버가 포함하는 아이의 수를 돌려줍니다.
TreeNode 내의 getChildCount TreeNodews 의
리시버가 포함하는 아이의 수public TreeNode getParent()
TreeNode 를 돌려줍니다.
TreeNode 내의 getParent TreeNodepublic int getIndex(TreeNode node)
node 의 인덱스를 돌려줍니다. 리시버가 node 를 포함하지 않는 경우는,-1 이 돌려주어집니다.
TreeNode 내의 getIndex node - 대상의 위치
node 의 인덱스.
존재하지 않는 경우는 -1public abstract boolean getAllowsChildren()
TreeNode 내의 getAllowsChildren public abstract Enumeration children()
Enumeration 로서 돌려줍니다.
TreeNode 내의 children Enumeration)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.