JavaTM Platform
Standard Ed. 6

クラス
javax.swing.text.EditorKit の使用

EditorKit を使用しているパッケージ
javax.swing すべてのプラットフォームで可能なかぎり同じように機能する「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.plaf 1 つのインタフェースおよび多くの abstract クラスを提供しており、Swing は、プラグイン可能な Look & Feel 機能を実現するためにこれらのクラスを利用します。 
javax.swing.plaf.basic 基本 Look & Feel に従って構築されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.multi 複数の Look & Feel を結合するユーザーインタフェースオブジェクトを提供します。 
javax.swing.text 編集可能なテキストコンポーネントと編集不能なテキストコンポーネントを処理するクラスとインタフェースを提供します。 
javax.swing.text.html HTML テキストエディタを作成するための HTMLEditorKit クラスとサポートクラスを提供します。 
javax.swing.text.rtf Rich-Text-Format テキストエディタを作成するためのクラス (RTFEditorKit) を提供します。 
 

javax.swing での EditorKit の使用
 

EditorKit を返す javax.swing のメソッド
protected  EditorKit JEditorPane.createDefaultEditorKit()
          コンポーネントが初めて生成されるときに、デフォルトのエディタキット (PlainEditorKit) を生成します。
protected  EditorKit JTextPane.createDefaultEditorKit()
          デフォルトで使う EditorKit を作成します。
static EditorKit JEditorPane.createEditorKitForContentType(String type)
          エディタキットのデフォルトのレジストリから、指定されたコンテンツ型のハンドラを生成します。
 EditorKit JEditorPane.getEditorKit()
          コンテンツの処理のために現在インストールされているキットを返します。
 EditorKit JEditorPane.getEditorKitForContentType(String type)
          指定されたコンテンツ型で使用するエディタキットを取り出します。
 

EditorKit 型のパラメータを持つ javax.swing のメソッド
 void JEditorPane.setEditorKit(EditorKit kit)
          コンテンツを処理するために現在インストールされているキットを設定します。
 void JTextPane.setEditorKit(EditorKit kit)
          コンテンツを処理するために現在インストールされているキットを設定します。
 void JEditorPane.setEditorKitForContentType(String type, EditorKit k)
          指定されたコンテンツ型で使用できるようにエディタキットを直接設定します。
 

javax.swing.plaf での EditorKit の使用
 

EditorKit を返す javax.swing.plaf のメソッド
abstract  EditorKit TextUI.getEditorKit(JTextComponent t)
          編集中のドキュメントの型で使用するポリシーを設定するサービスのバインディングを取得します。
 

javax.swing.plaf.basic での EditorKit の使用
 

EditorKit を返す javax.swing.plaf.basic のメソッド
 EditorKit BasicTextUI.getEditorKit(JTextComponent tc)
          UI の EditorKit を取得します。
 EditorKit BasicEditorPaneUI.getEditorKit(JTextComponent tc)
          UI の EditorKit を取得します。
 

javax.swing.plaf.multi での EditorKit の使用
 

EditorKit を返す javax.swing.plaf.multi のメソッド
 EditorKit MultiTextUI.getEditorKit(JTextComponent a)
          このオブジェクトが扱う各 UI で getEditorKit メソッドを呼び出します。
 

javax.swing.text での EditorKit の使用
 

javax.swing.text での EditorKit のサブクラス
 class DefaultEditorKit
          特定のタイプのテキストドキュメントに対して適切なエディタとして機能するために、テキストコンポーネントに必要なセットです。
 class StyledEditorKit
          特定のタイプのテキストドキュメントに対して適切なエディタとして機能するために、テキストコンポーネントに必要なセットです。
 

javax.swing.text.html での EditorKit の使用
 

javax.swing.text.html での EditorKit のサブクラス
 class HTMLEditorKit
          Swing の JEditorPane テキストコンポーネントは、EditorKit と呼ばれるプラグイン機構により、さまざまな種類のコンテンツをサポートしています。
 

javax.swing.text.rtf での EditorKit の使用
 

javax.swing.text.rtf での EditorKit のサブクラス
 class RTFEditorKit
          RTF 編集機能のデフォルトの実装です。
 


JavaTM Platform
Standard Ed. 6

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

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