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
代表HTML结构块的元素。
-
Nested Class Summary
Nested classes/interfaces declared in interface javax.swing.text.AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
-
Field Summary
Fields declared in interface javax.swing.text.AttributeSet
NameAttribute, ResolveAttribute
-
Constructor Summary
-
Method Summary
Methods declared in class javax.swing.text.AbstractDocument.BranchElement
children, getAllowsChildren, getElement, getElementCount, getElementIndex, getEndOffset, getStartOffset, isLeaf, positionToElement, replace, toString
Methods declared in class 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
-
Constructor Details
-
BlockElement
构造一个最初不包含任何子元素的复合元素。- 参数:
-
parent
- 父元素 -
a
- 元素的属性 - 自从:
- 1.4
-
-
Method Details
-
getName
获取元素的名称。- 指定者:
-
getName
在接口Element
中 - 覆盖:
-
getName
在类AbstractDocument.BranchElement
中 - 返回:
- 名称,如果没有则为null
-
getResolveParent
获取解析父级。在模型级别上,HTML属性不会被继承,因此我们重写此方法返回null。- 指定者:
-
getResolveParent
在接口AttributeSet
中 - 覆盖:
-
getResolveParent
在类AbstractDocument.AbstractElement
中 - 返回:
- null,没有
- 参见:
-