Класс HTMLDocument.BlockElement

Все реализованные интерфейсы:
Serializable, AttributeSet, Element, MutableAttributeSet, TreeNode
Вложенный класс:
HTMLDocument
public class HTMLDocument.BlockElement
extends AbstractDocument.BranchElement

Элемент, представляющий структурный блок HTML.

См. также:
Сериализованная форма

Вложенные классы

Вложенные классы/интерфейсы, объявленные в интерфейсе javax.swing.text.AttributeSet

AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute

Поля

Поля, объявленные в интерфейсе javax.swing.text.AttributeSet

NameAttribute, ResolveAttribute

Краткое описание конструкторов

Конструктор Описание
BlockElement​(Element parent, AttributeSet a)

Создаёт составной элемент, который изначально не содержит дочерних элементов.

Краткое описание методов

Модификатор и тип Метод Описание
String getName()

Получает имя элемента.

AttributeSet getResolveParent()

Получает родительский элемент для разрешения.

Методы, объявленные в классе javax.swing.text.AbstractDocument.BranchElement

children, getAllowsChildren, getElement, getElementCount, getElementIndex, getEndOffset, getStartOffset, isLeaf, positionToElement, replace, toString

Методы, объявленные в классе javax.swing.text.AbstractDocument.AbstractElement

addAttribute, addAttributes, containsAttribute, containsAttributes, copyAttributes, dump, getAttribute, getAttributeCount, getAttributeNames, getAttributes, getChildAt, getChildCount, getDocument, getIndex, getParent, getParentElement, isDefined, isEqual, removeAttribute, removeAttributes, removeAttributes, setResolveParent

Методы, объявленные в классе java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Подробное описание конструкторов

BlockElement

public BlockElement(Element parent,
                    AttributeSet a)

Создаёт составной элемент, который изначально не содержит дочерних элементов.

Параметры:
parent - родительский элемент
a - атрибуты элемента
С:
1.4

Подробное описание методов

getName

public String getName()

Получает имя элемента.

Задано в:
getName в интерфейсе Element
Переопределяет:
getName в классе AbstractDocument.BranchElement
Возвращает:
имя, null, если нет

getResolveParent

public AttributeSet getResolveParent()

Получает родительский элемент для разрешения. Атрибуты HTML не наследуются на уровне модели, поэтому мы переопределяем это, чтобы вернуть null.

Задано в:
getResolveParent в интерфейсе AttributeSet
Переопределяет:
getResolveParent в классе AbstractDocument.AbstractElement
Возвращает:
null, отсутствуют
См. также:
AttributeSet.getResolveParent()

© 1993, 2020, 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.
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/html/HTMLDocument.BlockElement.html

Spec-Zone .ru
спецификации, руководства, описания, API