|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.text.StyledEditorKit.StyledTextAction
public abstract static class StyledEditorKit.StyledTextAction
インストールされた StyledEditorKit (またはサブクラス) によって JEditorPane でトリガされると見なされるアクションです。このアクションは、文字や段落のレベル属性を変更する簡易メソッドです。StyledDocument、JEditorPane、または StyledEditorKit が true にならなかったと見なされる場合は、この簡易メソッドによって IllegalArgumentException がスローされます。
ソースが JEditorPane 型にナロー変換される場合、このアクションの影響を受けるコンポーネントは ActionEvent のソースになります。ソースがナロー変換できない場合は、最後にフォーカスのあったテキストコンポーネントが変更されます。どちらでもない場合、アクションは実行されません。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK バージョン 1.4 以降、すべての JavaBeans™ の長期間の運用サポートは、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 Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。