クラスDefaultStyledDocument.SectionElement
java.lang.Object
javax.swing.text.AbstractDocument.AbstractElement
javax.swing.text.AbstractDocument.BranchElement
javax.swing.text.DefaultStyledDocument.SectionElement
- すべての実装されたインタフェース:
Serializable, AttributeSet, Element, MutableAttributeSet, TreeNode
- 含まれているクラス:
DefaultStyledDocument
protected class DefaultStyledDocument.SectionElement extends AbstractDocument.BranchElement
ドキュメントのデフォルト・ルート要素で、含まれる段落や行をマッピングします。
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4では、すべてのJavaBeansの長期ストレージのサポートがjava.beansパッケージに追加されました。 XMLEncoderを参照してください。
-
ネストされたクラスのサマリー
インタフェースで宣言されたネストされたクラス/インタフェース AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute修飾子と型インタフェース説明static interfaceこのインタフェースはタイプ・シグニチャであり、文字レベル表現に関与するあらゆる属性のキーに現れることが期待されます。static interfaceこのインタフェースはタイプ・シグニチャであり、色の表示に関与するあらゆる属性のキーに現れることが期待されます。static interfaceこのインタフェースはタイプ・シグニチャであり、テキストの描画に使用するフォントの決定に関与するあらゆる属性のキーに現れることが期待されます。static interfaceこのインタフェースはタイプ・シグニチャであり、段落レベルの表現に関与する属性のキーに現れることが期待されます。 -
フィールドのサマリー
インタフェースで宣言されたフィールド AttributeSet
NameAttribute, ResolveAttribute -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
クラスで宣言されたメソッド AbstractDocument.BranchElement
children, getAllowsChildren, getElement, getElementCount, getElementIndex, getEndOffset, getStartOffset, isLeaf, positionToElement, replace, toString修飾子と型メソッド説明children()レシーバの子をEnumerationとして返します。booleanレシーバが子を許可する場合はtrueを返します。getElement(int index) 子要素を取得します。int要素の子の数を取得します。intgetElementIndex(int offset) 指定されたモデル・オフセットにもっとも近い子要素インデックスを取得します。int要素のモデル内での終了オフセットを取得します。int要素のモデル内での開始オフセットを取得します。booleanisLeaf()要素が葉かどうかを調べます。positionToElement(int pos) 指定されたモデル位置を含む子要素を取得します。voidコンテンツを要素の新規セットで置き換えます。toString()要素を文字列に変換します。クラスで宣言されたメソッド AbstractDocument.AbstractElement
addAttribute, addAttributes, containsAttribute, containsAttributes, copyAttributes, dump, getAttribute, getAttributeCount, getAttributeNames, getAttributes, getChildAt, getChildCount, getDocument, getIndex, getParent, getParentElement, getResolveParent, isDefined, isEqual, removeAttribute, removeAttributes, removeAttributes, setResolveParent修飾子と型メソッド説明voidaddAttribute(Object name, Object value) 要素に属性を追加します。voidaddAttributes(AttributeSet attr) 属性セットを要素に追加します。booleancontainsAttribute(Object name, Object value) 属性の名前と値が定義済みであるかどうかを判定します。booleancontainsAttributes(AttributeSet attrs) 要素にすべての属性が含まれているかどうかを判定します。属性セットをコピーします。voiddump(PrintStream psOut, int indentAmount) 要素階層のデバッグ表現をダンプします。getAttribute(Object attrName) 属性の値を取得します。int定義されている属性の個数を取得します。Enumeration<?> すべての属性の名前を取得します。要素の属性を取得します。getChildAt(int childIndex) インデックスchildIndexにある子TreeNodeを返します。intTreeNodeのレシーバが格納する子の数を返します。基盤となるモデルを取得します。intレシーバの子の中でnodeのインデックスを返します。レシーバの親TreeNodeを返します。要素の親を取得します。解釈処理側の親を返します。boolean指定された属性が定義済みであるかどうかを判定します。booleanisEqual(AttributeSet attr) 2つの属性セットが等しいかどうかを判定します。voidremoveAttribute(Object name) セットから属性を削除します。voidremoveAttributes(Enumeration<?> names) 要素の属性セットを削除します。voidremoveAttributes(AttributeSet attrs) 要素の属性セットを削除します。voidsetResolveParent(AttributeSet parent) 解釈処理側の親を設定します。クラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
コンストラクタの詳細
-
SectionElement
public SectionElement()新しいSectionElementを作成します。
-
-
メソッドの詳細
-
getName
public String getName()要素の名前を返します。- 定義:
getName、インタフェースElement- オーバーライド:
getName、クラスAbstractDocument.BranchElement- 戻り値:
- 名前
-