public class

HTMLDocument.BlockElement

extends AbstractDocument.BranchElement
java.lang.Object
   ↳ javax.swing.text.AbstractDocument.AbstractElement
     ↳ javax.swing.text.AbstractDocument.BranchElement
       ↳ javax.swing.text.html.HTMLDocument.BlockElement

Class Overview

An element that represents a structural block of HTML.

Summary

[Expand]
Inherited Fields
From interface javax.swing.text.AttributeSet
Public Constructors
HTMLDocument.BlockElement(Element parent, AttributeSet a)
Constructs a composite element that initially contains 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.BranchElement
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.BlockElement (Element parent, AttributeSet a)

Constructs a composite element that initially contains no children.

Parameters
parent the parent element
a the attributes for the element

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