JavaTM 2 Platform
Standard Ed. 6

javax.swing.text.html
类 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
 
构造方法摘要
HTMLDocument.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
 

构造方法详细信息

HTMLDocument.BlockElement

public HTMLDocument.BlockElement(Element parent,
                                 AttributeSet a)
构造初始不包含子元素的复合元素。

参数:
parent - 父元素
a - 元素的属性
从以下版本开始:
1.4
方法详细信息

getName

public String getName()
获取元素名称。

指定者:
接口 Element 中的 getName
覆盖:
AbstractDocument.BranchElement 中的 getName
返回:
名称,如果没有,则返回 null

getResolveParent

public AttributeSet getResolveParent()
获得解析父级。HTML 属性不是在模型级继承的,因此我们重写此方法以返回 null。

指定者:
接口 AttributeSet 中的 getResolveParent
覆盖:
AbstractDocument.AbstractElement 中的 getResolveParent
返回:
null,表示没有
另请参见:
AttributeSet.getResolveParent()

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only