public class

HTMLDocument.RunElement

extends AbstractDocument.LeafElement
java.lang.Object
   ↳ javax.swing.text.AbstractDocument.AbstractElement
     ↳ javax.swing.text.AbstractDocument.LeafElement
       ↳ javax.swing.text.html.HTMLDocument.RunElement

Class Overview

An element that represents a chunk of text that has a set of HTML character level attributes assigned to it.

Summary

[Expand]
Inherited Fields
From interface javax.swing.text.AttributeSet
Public Constructors
HTMLDocument.RunElement(Element parent, AttributeSet a, int offs0, int offs1)
Constructs an element that represents content within the document (has no children).
Public Methods
String getName()
Gets the name of the element.
AttributeSet getResolveParent()
Gets the resolving parent.
[Expand]
Inherited Methods
From class javax.swing.text.AbstractDocument.LeafElement
From class javax.swing.text.AbstractDocument.AbstractElement
From class java.lang.Object
From interface javax.swing.text.AttributeSet
From interface javax.swing.text.Element
From interface javax.swing.text.MutableAttributeSet
From interface javax.swing.tree.TreeNode

Public Constructors

public HTMLDocument.RunElement (Element parent, AttributeSet a, int offs0, int offs1)

Constructs an element that represents content within the document (has no children).

Parameters
parent the parent element
a the element attributes
offs0 the start offset (must be at least 0)
offs1 the end offset (must be at least offs0)

Public Methods

public String getName ()

Gets the name of the element.

Returns
  • the name, null if none

public AttributeSet getResolveParent ()

Gets the resolving parent. HTML attributes are not inherited at the model level so we override this to return null.

Returns
  • null, there are none