Java プラットフォーム 1.2

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

public class HTMLDocument.RunElement
extends AbstractDocument.LeafElement

HTML 文字レベル属性のセットが割り当てられているテキストのチャンクを表す要素です。

関連項目:
直列化された形式

コンストラクタの概要
HTMLDocument.RunElement(Element parent, AttributeSet a, int offs0, int offs1)
          ドキュメント内のコンテンツを表す (子を持たない) 要素を作成します。
 
メソッドの概要
 String getName()
          要素の名前を取得します。
 AttributeSet getResolveParent()
          解決処理側の親を取得します。
 
クラス javax.swing.text.AbstractDocument.LeafElement から継承したメソッド
children, getAllowsChildren, getElement, getElementCount, getElementIndex, getEndOffset, getStartOffset, isLeaf, toString
 
クラス 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
 
クラス java.lang.Object から継承したメソッド
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

HTMLDocument.RunElement

public HTMLDocument.RunElement(Element parent,
                               AttributeSet a,
                               int offs0,
                               int offs1)
ドキュメント内のコンテンツを表す (子を持たない) 要素を作成します。
パラメータ:
parent - 親要素
a - 要素属性
offs0 - 開始オフセット >= 0
offs1 - 終了オフセット >= offs0
メソッドの詳細

getName

public String getName()
要素の名前を取得します。
戻り値:
名前。名前がない場合は null
オーバーライド:
クラス AbstractDocument.LeafElement 内の getName

getResolveParent

public AttributeSet getResolveParent()
解決処理側の親を取得します。HTML 属性はモデルレベルでは継承されないので、null を返すように、このメソッドをオーバーライドします。
戻り値:
親がない場合は null
オーバーライド:
クラス AbstractDocument.AbstractElement 内の getResolveParent
関連項目:
AttributeSet.getResolveParent()

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.