|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--javax.swing.text.TextAction
|
+--javax.swing.text.StyledEditorKit.StyledTextAction
インストールされた StyledEditorKit (またはサブクラス) によって JEditorPane でトリガされると見なされるアクションです。このアクションは、文字や段落のレベル属性を変更する簡易メソッドです。StyledDocument、JEditorPane、または StyledEditorKit が true にならなかったと見なされる場合は、この簡易メソッドによって IllegalArgumentException がスローされます。
ソースが JEditorPane 型にナロー変換される場合、このアクションの影響を受けるコンポーネントは ActionEvent のソースになります。ソースがナロー変換できない場合は、最後にフォーカスのあったテキストコンポーネントが変更されます。どちらでもない場合、アクションは実行されません。
警告:
このクラスの直列化されたオブジェクトは、今後の Swing のリリースとは互換性を持ちません。現在の直列化サポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。1.4 では、すべての JavaBeansTM の長期運用サポートが、 java.beans パッケージに追加されました。XMLEncoder を参照してください。
| フィールドの概要 |
| クラス javax.swing.AbstractAction から継承したフィールド |
changeSupport, enabled |
| インタフェース javax.swing.Action から継承したフィールド |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| コンストラクタの概要 | |
StyledEditorKit.StyledTextAction(String nm)
文字列であるアクション名から、新しい StyledTextAction を作成します。 |
|
| メソッドの概要 | |
protected JEditorPane |
getEditor(ActionEvent e)
アクションのターゲットエディタを取得します。 |
protected StyledDocument |
getStyledDocument(JEditorPane e)
このエディタ区画に関連したドキュメントを取得します。 |
protected StyledEditorKit |
getStyledEditorKit(JEditorPane e)
このエディタ区画に関連したエディタキットを取得します。 |
protected void |
setCharacterAttributes(JEditorPane editor,
AttributeSet attr,
boolean replace)
指定された属性を文字コンテンツに適用します。 |
protected void |
setParagraphAttributes(JEditorPane editor,
AttributeSet attr,
boolean replace)
指定された属性を段落に適用します。 |
| クラス 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 |
| コンストラクタの詳細 |
public StyledEditorKit.StyledTextAction(String nm)
nm - アクションの名前| メソッドの詳細 |
protected final JEditorPane getEditor(ActionEvent e)
e - アクションイベント
protected final StyledDocument getStyledDocument(JEditorPane e)
e - エディタ
IllegalArgumentException - 不正なドキュメントタイプの場合protected final StyledEditorKit getStyledEditorKit(JEditorPane e)
e - エディタ区画
IllegalArgumentException - 不正なドキュメントタイプの場合
protected final void setCharacterAttributes(JEditorPane editor,
AttributeSet attr,
boolean replace)
editor - エディタattr - 属性replace - true の場合、既存の属性が最初に置き換えられる
protected final void setParagraphAttributes(JEditorPane editor,
AttributeSet attr,
boolean replace)
editor - エディタattr - 属性replace - true の場合、既存の属性が最初に置き換えられる
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Java、Java 2D、および JDBC は米国ならびにその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.