|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
public class StyledEditorKit
特定のタイプのテキストドキュメントに対して適切なエディタとして機能するために、テキストコンポーネントに必要なセットです。この実装は、テキストを書式付きテキストとして処理し、書式付きテキストを編集するためのアクションの最小セットを提供するデフォルトの実装を提供します。
| 入れ子のクラスの概要 | |
|---|---|
static class |
StyledEditorKit.AlignmentAction
段落の配置方法を設定するアクションです。 |
static class |
StyledEditorKit.BoldAction
ボールド属性を切り替えるアクションです。 |
static class |
StyledEditorKit.FontFamilyAction
関連する JEditorPane のフォントファミリを設定するアクションです。 |
static class |
StyledEditorKit.FontSizeAction
関連する JEditorPane のフォントサイズを設定するアクションです。 |
static class |
StyledEditorKit.ForegroundAction
フォアグラウンドカラーを設定するアクションです。 |
static class |
StyledEditorKit.ItalicAction
イタリック属性を切り替えるアクションです。 |
static class |
StyledEditorKit.StyledTextAction
インストールされた StyledEditorKit (またはサブクラス) によって JEditorPane でトリガされると見なされるアクションです。 |
static class |
StyledEditorKit.UnderlineAction
下線属性を切り替えるアクションです。 |
| フィールドの概要 |
|---|
| コンストラクタの概要 | |
|---|---|
StyledEditorKit()
書式付きドキュメントで使用する新しい EditorKit を作成します。 |
|
| メソッドの概要 | |
|---|---|
Object |
clone()
編集キットのコピーを作成します。 |
Document |
createDefaultDocument()
このタイプのエディタに適している未初期化テキストストレージモデルを作成します。 |
protected void |
createInputAttributes(Element element,
MutableAttributeSet set)
element の AttributeSet 内のキーと値のペアを set にコピーします。 |
void |
deinstall(JEditorPane c)
キットが JEditorPane から削除されているときに呼び出されます。 |
Action[] |
getActions()
エディタのコマンドリストを取り出します。 |
Element |
getCharacterAttributeRun()
キャレットに対応する現在の文字属性を表す要素を取り出します。 |
MutableAttributeSet |
getInputAttributes()
区画の入力属性を返します。 |
ViewFactory |
getViewFactory()
このキットで作成されるモデルのビューを作成するのに適したファクトリを取り出します。 |
void |
install(JEditorPane c)
キットが JEditorPane にインストールされているときに呼び出されます。 |
| クラス javax.swing.text.DefaultEditorKit から継承されたメソッド |
|---|
createCaret, getContentType, read, read, write, write |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public StyledEditorKit()
| メソッドの詳細 |
|---|
public MutableAttributeSet getInputAttributes()
public Element getCharacterAttributeRun()
public Action[] getActions()
DefaultEditorKit 内の getActionspublic Document createDefaultDocument()
DefaultEditorKit 内の createDefaultDocumentpublic void install(JEditorPane c)
EditorKit 内の installc - JEditorPanepublic void deinstall(JEditorPane c)
EditorKit 内の deinstallc - JEditorPanepublic ViewFactory getViewFactory()
DefaultEditorKit 内の getViewFactorypublic Object clone()
EditorKit 内の cloneCloneable
protected void createInputAttributes(Element element,
MutableAttributeSet set)
element の AttributeSet 内のキーと値のペアを set にコピーします。このメソッドは、コンポーネント、アイコン、要素名の各属性はコピーしません。サブクラスでは、どの属性をコピーしてどの属性をコピーしないかを変更することもできます。ただし、最初に set 内のすべての属性を必ず削除してください。このメソッドは、キャレットが別の位置に移動するたびに呼び出されます。
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。