| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
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 Platform Standard Ed. 6 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。