javax.swing.text

Class DefaultStyledDocument.SectionElement

protected class DefaultStyledDocument.SectionElement extends BranchElement

An element type for sections. This is a simple BranchElement with a unique name.
Constructor Summary
SectionElement()
Creates a new SectionElement.
Method Summary
StringgetName()
Returns the name of the element.

Constructor Detail

SectionElement

public SectionElement()
Creates a new SectionElement.

Method Detail

getName

public String getName()
Returns the name of the element. This method always returns "section".

Returns: the name of the element