swingwtx.swing.text
Class AbstractDocument.AbstractElement
java.lang.Object
swingwtx.swing.text.AbstractDocument.AbstractElement
- All Implemented Interfaces:
- AttributeSet, Element, MutableAttributeSet, java.io.Serializable, TreeNode
- Direct Known Subclasses:
- AbstractDocument.BranchElement, AbstractDocument.LeafElement
- Enclosing class:
- AbstractDocument
- public abstract class AbstractDocument.AbstractElement
- extends java.lang.Object
- implements Element, MutableAttributeSet, java.io.Serializable, TreeNode
Sub-classes
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDocument.AbstractElement
public AbstractDocument.AbstractElement(Element parent,
AttributeSet a)
dump
public void dump(java.io.PrintStream psOut,
int indentAmount)
getAttributeCount
public int getAttributeCount()
- Specified by:
getAttributeCount
in interface AttributeSet
isDefined
public boolean isDefined(java.lang.Object attrName)
- Specified by:
isDefined
in interface AttributeSet
isEqual
public boolean isEqual(AttributeSet attr)
- Specified by:
isEqual
in interface AttributeSet
copyAttributes
public AttributeSet copyAttributes()
- Specified by:
copyAttributes
in interface AttributeSet
getAttribute
public java.lang.Object getAttribute(java.lang.Object attrName)
- Specified by:
getAttribute
in interface AttributeSet
getAttributeNames
public java.util.Enumeration getAttributeNames()
- Specified by:
getAttributeNames
in interface AttributeSet
containsAttribute
public boolean containsAttribute(java.lang.Object name,
java.lang.Object value)
- Specified by:
containsAttribute
in interface AttributeSet
containsAttributes
public boolean containsAttributes(AttributeSet attrs)
- Specified by:
containsAttributes
in interface AttributeSet
getResolveParent
public AttributeSet getResolveParent()
- Specified by:
getResolveParent
in interface AttributeSet
addAttribute
public void addAttribute(java.lang.Object name,
java.lang.Object value)
- Specified by:
addAttribute
in interface MutableAttributeSet
addAttributes
public void addAttributes(AttributeSet attr)
- Specified by:
addAttributes
in interface MutableAttributeSet
removeAttribute
public void removeAttribute(java.lang.Object name)
- Specified by:
removeAttribute
in interface MutableAttributeSet
removeAttributes
public void removeAttributes(java.util.Enumeration names)
- Specified by:
removeAttributes
in interface MutableAttributeSet
removeAttributes
public void removeAttributes(AttributeSet attrs)
- Specified by:
removeAttributes
in interface MutableAttributeSet
setResolveParent
public void setResolveParent(AttributeSet parent)
- Specified by:
setResolveParent
in interface MutableAttributeSet
getDocument
public Document getDocument()
- Specified by:
getDocument
in interface Element
getParentElement
public Element getParentElement()
- Specified by:
getParentElement
in interface Element
getAttributes
public AttributeSet getAttributes()
- Specified by:
getAttributes
in interface Element
getName
public java.lang.String getName()
- Specified by:
getName
in interface Element
getChildAt
public TreeNode getChildAt(int childIndex)
- Specified by:
getChildAt
in interface TreeNode
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface TreeNode
getParent
public TreeNode getParent()
- Specified by:
getParent
in interface TreeNode
getIndex
public int getIndex(TreeNode node)
- Specified by:
getIndex
in interface TreeNode
getStartOffset
public abstract int getStartOffset()
- Abstract methods
- Specified by:
getStartOffset
in interface Element
getEndOffset
public abstract int getEndOffset()
- Specified by:
getEndOffset
in interface Element
getElement
public abstract Element getElement(int index)
- Specified by:
getElement
in interface Element
getElementCount
public abstract int getElementCount()
- Specified by:
getElementCount
in interface Element
getElementIndex
public abstract int getElementIndex(int offset)
- Specified by:
getElementIndex
in interface Element
isLeaf
public abstract boolean isLeaf()
- Specified by:
isLeaf
in interface Element
getAllowsChildren
public abstract boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface TreeNode
children
public abstract java.util.Enumeration children()
- Specified by:
children
in interface TreeNode