swingwtx.swing.text
Class AbstractDocument.BranchElement

java.lang.Object
  extended byswingwtx.swing.text.AbstractDocument.AbstractElement
      extended byswingwtx.swing.text.AbstractDocument.BranchElement
All Implemented Interfaces:
AttributeSet, Element, MutableAttributeSet, java.io.Serializable, TreeNode
Enclosing class:
AbstractDocument

public class AbstractDocument.BranchElement
extends AbstractDocument.AbstractElement

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class swingwtx.swing.text.AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
 
Field Summary
 
Fields inherited from interface swingwtx.swing.text.AttributeSet
NameAttribute, ResolveAttribute
 
Constructor Summary
AbstractDocument.BranchElement(Element parent, AttributeSet attributeSet)
           
 
Method Summary
 java.util.Enumeration children()
           
 boolean getAllowsChildren()
           
 Element getElement(int index)
           
 int getElementCount()
           
 int getElementIndex(int offset)
           
 int getEndOffset()
           
 java.lang.String getName()
           
 int getStartOffset()
          Abstract methods
 boolean isLeaf()
           
 Element positionToElement(int pos)
           
 void replace(int offset, int length, Element[] elems)
           
 
Methods inherited from class swingwtx.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDocument.BranchElement

public AbstractDocument.BranchElement(Element parent,
                                      AttributeSet attributeSet)
Method Detail

positionToElement

public Element positionToElement(int pos)

replace

public void replace(int offset,
                    int length,
                    Element[] elems)

getName

public java.lang.String getName()
Specified by:
getName in interface Element
Overrides:
getName in class AbstractDocument.AbstractElement

getStartOffset

public int getStartOffset()
Description copied from class: AbstractDocument.AbstractElement
Abstract methods

Specified by:
getStartOffset in interface Element
Specified by:
getStartOffset in class AbstractDocument.AbstractElement

getEndOffset

public int getEndOffset()
Specified by:
getEndOffset in interface Element
Specified by:
getEndOffset in class AbstractDocument.AbstractElement

getElement

public Element getElement(int index)
Specified by:
getElement in interface Element
Specified by:
getElement in class AbstractDocument.AbstractElement

getElementCount

public int getElementCount()
Specified by:
getElementCount in interface Element
Specified by:
getElementCount in class AbstractDocument.AbstractElement

getElementIndex

public int getElementIndex(int offset)
Specified by:
getElementIndex in interface Element
Specified by:
getElementIndex in class AbstractDocument.AbstractElement

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface Element
Specified by:
isLeaf in class AbstractDocument.AbstractElement

getAllowsChildren

public boolean getAllowsChildren()
Specified by:
getAllowsChildren in interface TreeNode
Specified by:
getAllowsChildren in class AbstractDocument.AbstractElement

children

public java.util.Enumeration children()
Specified by:
children in interface TreeNode
Specified by:
children in class AbstractDocument.AbstractElement