javax.swing.text.html
public class HTMLDocument.RunElement extends AbstractDocument.LeafElement
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
NameAttribute, ResolveAttribute
Constructor and Description |
---|
HTMLDocument.RunElement(Element parent,
AttributeSet a,
int start,
int end)
Constructs an element that has no children.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the element.
|
AttributeSet |
getResolveParent()
Gets the resolving parent.
|
children, getAllowsChildren, getElement, getElementCount, getElementIndex, getEndOffset, getStartOffset, isLeaf, toString
addAttribute, addAttributes, containsAttribute, containsAttributes, copyAttributes, dump, getAttribute, getAttributeCount, getAttributeNames, getAttributes, getChildAt, getChildCount, getDocument, getIndex, getParent, getParentElement, isDefined, isEqual, removeAttribute, removeAttributes, removeAttributes, setResolveParent
public HTMLDocument.RunElement(Element parent, AttributeSet a, int start, int end)
parent
- - parent of thisa
- - elements attributesstart
- - the start offset >= 0end
- - the end offsetpublic String getName()
getName
in interface Element
getName
in class AbstractDocument.LeafElement
public AttributeSet getResolveParent()
getResolveParent
in interface AttributeSet
getResolveParent
in class AbstractDocument.AbstractElement
AbstractDocument.AbstractElement.setResolveParent(AttributeSet)