モジュール java.desktop
パッケージ javax.swing.text

クラスStyledEditorKit.StyledTextAction

java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.text.StyledEditorKit.StyledTextAction
すべての実装されたインタフェース:
ActionListener, Serializable, Cloneable, EventListener, Action
直系の既知のサブクラス:
HTMLEditorKit.HTMLTextAction, StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.UnderlineAction
含まれているクラス:
StyledEditorKit

public abstract static class StyledEditorKit.StyledTextAction extends TextAction
インストールされたStyledEditorKit (またはサブクラス)によってJEditorPaneでトリガーされると見なされるアクションです。 このアクションは、文字や段落のレベル属性を変更する簡易メソッドです。 StyledDocument、JEditorPane、またはStyledEditorKitがtrueにならなかったと見なされる場合は、この簡易メソッドによってIllegalArgumentExceptionがスローされます。

ソースがJEditorPane型にナロー変換される場合、このアクションの影響を受けるコンポーネントはActionEventのソースになります。 ソースがナロー変換できない場合は、最後にフォーカスのあったテキスト・コンポーネントが変更されます。 どちらでもない場合、アクションは実行されません。

警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4では、すべてのJavaBeansの長期ストレージのサポートがjava.beansパッケージに追加されました。 XMLEncoderを参照してください。