JavaTM Platform
Standard Ed. 6

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.AttributeSet から継承された入れ子のクラス/インタフェース
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
 
フィールドの概要
 
インタフェース javax.swing.text.AttributeSet から継承されたフィールド
NameAttribute, ResolveAttribute
 
コンストラクタの概要
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, 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.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()

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。