Java プラットフォーム 1.2

javax.swing.text
インタフェース Style

既知の実装クラスの一覧:
StyleContext.NamedStyle

public abstract interface Style
extends MutableAttributeSet

ドキュメント内の要素に関連付ける属性のコレクションです。こうした属性は文字および段落の書式を要素と関連付けるために使われるので、そのための処理が提供されます。要素と関連付けられるほかのカスタマイズされた属性は、実際には階層に存在する名前と値のペアになり、名前 (キー) がローカルで見つからない場合、要求は親に転送されます。より効率的な代替の実装を容易にするために、共通して使用される属性は別にされています。


クラス javax.swing.text.AttributeSet から継承した内部クラス
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
 
クラス javax.swing.text.AttributeSet から継承したフィールド
NameAttribute, ResolveAttribute
 
メソッドの概要
 void addChangeListener(ChangeListener l)
          属性が変更されている場合に変更を追跡するリスナーを追加します。
 String getName()
          書式の名前を取得します。
 void removeChangeListener(ChangeListener l)
          属性の変更を追跡していたリスナーを削除します。
 
インタフェース javax.swing.text.MutableAttributeSet から継承したメソッド
addAttribute, addAttributes, removeAttribute, removeAttributes, removeAttributes, setResolveParent
 
インタフェース javax.swing.text.AttributeSet から継承したメソッド
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqual
 

メソッドの詳細

getName

public String getName()
書式の名前を取得します。書式には名前を付ける必要がないので、書式に関連付けられている名前がない場合は null が返されます。
戻り値:
名前

addChangeListener

public void addChangeListener(ChangeListener l)
属性が変更されている場合に変更を追跡するリスナーを追加します。
パラメータ:
l - 変更リスナー

removeChangeListener

public void removeChangeListener(ChangeListener l)
属性の変更を追跡していたリスナーを削除します。
パラメータ:
l - 変更リスナー

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.