javax.swing.text.html

Class HTMLDocument.RunElement

public class HTMLDocument.RunElement extends AbstractDocument.LeafElement

RunElement represents a section of text that has a set of HTML character level attributes assigned to it.
Constructor Summary
RunElement(Element parent, AttributeSet a, int start, int end)
Constructs an element that has no children.
Method Summary
StringgetName()
Gets the name of the element.
AttributeSetgetResolveParent()
Gets the resolving parent.

Constructor Detail

RunElement

public RunElement(Element parent, AttributeSet a, int start, int end)
Constructs an element that has no children. It represents content within the document.

Parameters: parent - parent of this a - elements attributes start - the start offset >= 0 end - the end offset

Method Detail

getName

public String getName()
Gets the name of the element.

Returns: the name of the element if it exists, null otherwise.

getResolveParent

public AttributeSet getResolveParent()
Gets the resolving parent. HTML attributes do not inherit at the model level, so this method returns null.

Returns: null