Класс HTMLDocument.BlockElement
java.lang.Object
javax.swing.text.AbstractDocument.AbstractElement
javax.swing.text.AbstractDocument.BranchElement
javax.swing.text.html.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 |
Создает составной элемент, который изначально не содержит дочерних элементов. |
Краткое описание методов
| Модификатор и тип | Метод | Описание |
|---|---|---|
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
Подробное описание конструкторов
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, их нет
- См. также:
© 1993, 2023, 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/21/docs/api/java.desktop/javax/swing/text/html/HTMLDocument.BlockElement.html