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
- すべての実装インタフェース:
- AttributeSet, Element, MutableAttributeSet, Serializable, TreeNode
- 含まれているクラス:
- HTMLDocument
- public class HTMLDocument.RunElement
- extends AbstractDocument.LeafElement
HTML 文字レベル属性のセットが割り当てられているテキストのチャンクを表す要素です。
- 関連項目:
- 直列化された形式
クラス javax.swing.text.AbstractDocument.AbstractElement から継承したメソッド |
addAttribute, addAttributes, containsAttribute, containsAttributes, copyAttributes, dump, finalize, 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 でなければならない)
getName
public String getName()
- 要素の名前を返します。
- オーバーライド:
- クラス
AbstractDocument.LeafElement
内の getName
- 戻り値:
- 名前。ない場合は null
getResolveParent
public AttributeSet getResolveParent()
- 解決処理側の親を返します。HTML 属性はモデルレベルでは継承されないので、null を返すように、このメソッドをオーバーライドします。
- オーバーライド:
- クラス
AbstractDocument.AbstractElement
内の getResolveParent
- 戻り値:
- 親がない場合は null
- 関連項目:
AttributeSet.getResolveParent()
バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。 Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.