swingwtx.swing.text
Class AbstractDocument.BranchElement
java.lang.Object
swingwtx.swing.text.AbstractDocument.AbstractElement
swingwtx.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
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 |
AbstractDocument.BranchElement
public AbstractDocument.BranchElement(Element parent,
AttributeSet attributeSet)
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