public abstract static class StyledEditorKit.StyledTextAction extends TextAction
ソースがJEditorPane型にナロー変換される場合、このアクションの影響を受けるコンポーネントはActionEventのソースになります。ソースがナロー変換できない場合は、最後にフォーカスのあったテキスト・コンポーネントが変更されます。どちらでもない場合、アクションは実行されません。
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースとの互換性がなくなる予定です。現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。1.4以降、すべてのJavaBeans(tm)用の長期間の格納サポートがjava.beansパッケージに追加されています。XMLEncoderを参照してください。
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| コンストラクタと説明 |
|---|
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)
指定された属性を段落に適用します。
|
augmentList, getFocusedComponent, getTextComponentaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactionPerformedpublic 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の場合、既存の属性が最初に置き換えられる バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.