java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.text.StyledEditorKit.StyledTextAction
javax.swing.text.html.HTMLEditorKit.HTMLTextAction
- すべての実装されたインタフェース:
ActionListener,Serializable,Cloneable,EventListener,Action
- 直系の既知のサブクラス:
HTMLEditorKit.InsertHTMLTextAction
- 含まれているクラス:
HTMLEditorKit
public abstract static class HTMLEditorKit.HTMLTextAction extends StyledEditorKit.StyledTextAction
HTMLを既存のドキュメントに挿入するのに便利ないくつかの簡易メソッドを提供するabstractアクションです。
ノート: 簡易メソッドは、ドキュメントのロックを取得しません。 テキストを変更する別のスレッドがある場合、簡易メソッドは一貫性のない動作をするか、誤った内容を返す場合があります。
-
フィールドのサマリー
クラスjavax.swing.AbstractActionで宣言されたフィールド
changeSupport, enabledインタフェースjavax.swing.Actionで宣言されているフィールド
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明protected intelementCountToTag(HTMLDocument doc, int offset, HTML.Tag tag) いちばん深い葉から数えて、tagを表す要素に到達するまでの要素の数を返します。protected ElementfindElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag) tagに一致するoffsetに位置する、いちばん深い要素を返します。protected Element[]getElementsAt(HTMLDocument doc, int offset) offsetを格納する要素から成る配列を返します。protected HTMLDocument指定されたJEditorPaneのHTMLDocumentを返します。protected HTMLEditorKit指定されたJEditorPaneのHTMLEditorKitを返します。クラスjavax.swing.text.StyledEditorKit.StyledTextActionで宣言されたメソッド
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributesクラスjavax.swing.text.TextActionで宣言されたメソッド
augmentList, getFocusedComponent, getTextComponentクラスjavax.swing.AbstractActionで宣言されたメソッド
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledクラスjava.lang.Objectで宣言されたメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitインタフェースjava.awt.event.ActionListenerで宣言されたメソッド
actionPerformed
-
コンストラクタの詳細
-
HTMLTextAction
-
-
メソッドの詳細
-
getHTMLDocument
protected HTMLDocument getHTMLDocument(JEditorPane e) 指定されたJEditorPaneのHTMLDocumentを返します。- パラメータ:
e- the JEditorPane- 戻り値:
eのHTMLDocument。
-
getHTMLEditorKit
protected HTMLEditorKit getHTMLEditorKit(JEditorPane e) 指定されたJEditorPaneのHTMLEditorKitを返します。- パラメータ:
e- the JEditorPane- 戻り値:
eのHTMLEditorKit。
-
getElementsAt
protected Element[] getElementsAt(HTMLDocument doc, int offset) offsetを格納する要素から成る配列を返します。 最初の要素はルートに対応します。- パラメータ:
doc- HTMLDocumentのインスタンスoffset- オフセットの値- 戻り値:
offsetを含む要素の配列
-
elementCountToTag
protected int elementCountToTag(HTMLDocument doc, int offset, HTML.Tag tag) いちばん深い葉から数えて、tagを表す要素に到達するまでの要素の数を返します。tagを表す要素が見つからない場合は-1を返します。offsetにある葉の親がtagを表す場合は0を返します。- パラメータ:
doc- HTMLDocumentのインスタンスoffset- 開始オフセットtag- 表現するタグ- 戻り値:
- 要素の数
-
findElementMatchingTag
protected Element findElementMatchingTag(HTMLDocument doc, int offset, HTML.Tag tag) tagに一致するoffsetに位置する、いちばん深い要素を返します。- パラメータ:
doc- HTMLDocumentのインスタンスoffset- 指定オフセット>= 0tag- HTML.Tagのインスタンス- 戻り値:
- 最も深い要素
-