クラス
javax.swing.JEditorPaneの使用
JEditorPaneを使用するパッケージ
パッケージ
説明
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
HTMLテキスト・エディタを作成するためのクラス
HTMLEditorKit
とサポート・クラスを提供します。-
javax.swingでのJEditorPaneの使用
javax.swingのJEditorPaneのサブクラス -
javax.swing.textでのJEditorPaneの使用
JEditorPaneを返すjavax.swing.textのメソッド修飾子と型メソッド説明protected JEditorPane
StyledEditorKit.StyledTextAction.getEditor(ActionEvent e)
アクションのターゲット・エディタを取得します。型JEditorPaneのパラメータを持つjavax.swing.textのメソッド修飾子と型メソッド説明void
EditorKit.deinstall(JEditorPane c)
キットがJEditorPaneから削除されているときに呼び出されます。void
StyledEditorKit.deinstall(JEditorPane c)
キットがJEditorPaneから削除されているときに呼び出されます。protected StyledDocument
StyledEditorKit.StyledTextAction.getStyledDocument(JEditorPane e)
このエディタ・ペインに関連したドキュメントを取得します。protected StyledEditorKit
StyledEditorKit.StyledTextAction.getStyledEditorKit(JEditorPane e)
このエディタ・ペインに関連したエディタ・キットを取得します。void
EditorKit.install(JEditorPane c)
キットがJEditorPaneにインストールされるときに呼び出されます。void
StyledEditorKit.install(JEditorPane c)
キットがJEditorPaneにインストールされているときに呼び出されます。protected void
StyledEditorKit.StyledTextAction.setCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace)
指定された属性を文字コンテンツに適用します。protected void
StyledEditorKit.StyledTextAction.setParagraphAttributes(JEditorPane editor, AttributeSet attr, boolean replace)
指定された属性を段落に適用します。 -
javax.swing.text.htmlでのJEditorPaneの使用
型JEditorPaneのパラメータを持つjavax.swing.text.htmlのメソッド修飾子と型メソッド説明protected void
HTMLEditorKit.LinkController.activateLink(int pos, JEditorPane editor)
指定された位置がリンクを表す場合は、対応するJEditorPaneのlinkActivatedを呼び出します。void
HTMLEditorKit.deinstall(JEditorPane c)
キットがJEditorPaneから削除されているときに呼び出されます。protected HTMLDocument
HTMLEditorKit.HTMLTextAction.getHTMLDocument(JEditorPane e)
protected HTMLEditorKit
HTMLEditorKit.HTMLTextAction.getHTMLEditorKit(JEditorPane e)
protected void
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
境界に挿入するときに呼び出されます。protected void
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
非推奨。Java 2プラットフォームv1.3以降は、insertAtBoundaryを使用してください。protected void
HTMLEditorKit.InsertHTMLTextAction.insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag)
HTMLEditorKit.insertHTMLのためのカバーです。void
HTMLEditorKit.install(JEditorPane c)
キットがJEditorPaneにインストールされるときに呼び出されます。