public class HTMLDocument.RunElement extends AbstractDocument.LeafElement
An element that represents a chunk of text that has a set of HTML character level attributes assigned to it.
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
NameAttribute, ResolveAttribute
public RunElement(Element parent, AttributeSet a, int offs0, int offs1)
Constructs an element that represents content within the document (has no children).
parent
- the parent elementa
- the element attributesoffs0
- the start offset (must be at least 0)offs1
- the end offset (must be at least offs0)public String getName()
Gets the name of the element.
getName
in interface Element
getName
in class AbstractDocument.LeafElement
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.