public class HTMLDocument.BlockElement extends AbstractDocument.BranchElement
An element that represents a structural block of HTML.
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
NameAttribute, ResolveAttribute
public BlockElement(Element parent, AttributeSet a)
Constructs a composite element that initially contains no children.
parent
- the parent elementa
- the attributes for the elementpublic String getName()
Gets the name of the element.
getName
in interface Element
getName
in class AbstractDocument.BranchElement
public AttributeSet getResolveParent()
Gets the resolving parent. HTML attributes are not inherited at the model level so we override this to return null.
getResolveParent
in interface AttributeSet
getResolveParent
in class AbstractDocument.AbstractElement
AttributeSet.getResolveParent()
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.