javax.swing.text.html
类 HTMLDocument.RunElement
java.lang.Object
  
javax.swing.text.AbstractDocument.AbstractElement
      
javax.swing.text.AbstractDocument.LeafElement
          
javax.swing.text.html.HTMLDocument.RunElement
- 所有已实现的接口: 
 - Serializable, AttributeSet, Element, MutableAttributeSet, TreeNode
 
- 正在封闭类:
 - HTMLDocument
 
public class HTMLDocument.RunElement
- extends AbstractDocument.LeafElement
 
表示文本块的元素,该文本块具有一个分配给它的 HTML 字符级的属性集。
 
 
 
 
 
 
 
| 从类 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.RunElement
public HTMLDocument.RunElement(Element parent,
                               AttributeSet a,
                               int offs0,
                               int offs1)
- 构造表示文档内部(没有子级)内容的元素。
- 参数:
 parent - 父元素a - 元素属性offs0 - 起始偏移量(必须至少为 0)offs1 - 结束偏移量(必须至少为 offs0)- 从以下版本开始:
 
- 1.4
 
 
getName
public String getName()
- 获取元素名称。
- 指定者:
 - 接口 
Element 中的 getName - 覆盖:
 - 类 
AbstractDocument.LeafElement 中的 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。