Spec-Zone.ru › OpenJDK 17

Класс 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(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 - атрибуты элемента
Since:
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, 2021, 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/17/docs/api/java.desktop/javax/swing/text/html/HTMLDocument.BlockElement.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API