public abstract class TextAction extends AbstractAction
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースとの互換性がなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートが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| コンストラクタ | 説明 |
|---|---|
TextAction(String name) |
新しいJTextActionオブジェクトを作成します。
|
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
static Action[] |
augmentList(Action[] list1, Action[] list2) |
コマンド・リストを一つ取得し、それをもう一つの別のコマンド・リストで拡張します。
|
protected JTextComponent |
getFocusedComponent() |
現在フォーカスを持つテキスト・コンポーネントを取得します。
|
protected JTextComponent |
getTextComponent(ActionEvent e) |
アクションに使用するコンポーネントを判定します。
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactionPerformedpublic TextAction(String name)
name - アクションの名前protected final JTextComponent getTextComponent(ActionEvent e)
e - ActionEventpublic static final Action[] augmentList(Action[] list1, Action[] list2)
list1 - 最初のリスト。空でもよいがnullは不可list2 - 2番目のリスト。空でもよいがnullは不可protected final JTextComponent getFocusedComponent()
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。