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.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 | 
 
 
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()
 
 
提交错误或意见版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。