インタフェースjava.awt.event.ActionListener
の使用
-
ActionListenerを使用するパッケージ パッケージ 説明 com.sun.java.accessibility.util Java Accessibility Utilitiesを構成するインタフェースとクラスの集合を提供します。java.awt ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。java.awt.dnd ドラッグ&ドロップ操作は、多くのグラフィカル・ユーザー・インタフェース・システムで見られる直接的な操作ジェスチャで、GUIの表現要素に論理的に関連付けられた2つのエンティティ間で情報を変換するメカニズムを提供します。javax.swing すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。javax.swing.plaf.basic 基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。javax.swing.plaf.metal デフォルトのLook & FeelであるJava Look & Feel (以前のコード名はMetal)に従って構築されたユーザー・インタフェース・オブジェクトを提供します。javax.swing.text 編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。javax.swing.text.html HTMLテキスト・エディタを作成するためのクラスHTMLEditorKit
とサポート・クラスを提供します。javax.swing.tree javax.swing.JTree
を処理するためのクラスとインタフェースを提供します。 -
-
com.sun.java.accessibility.utilでのActionListenerの使用
ActionListenerとして宣言されたcom.sun.java.accessibility.utilのフィールド 修飾子と型 フィールド 説明 protected static ActionListener
AWTEventMonitor. actionListener
削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。このフィールドは未使用です。型ActionListenerのパラメータを持つcom.sun.java.accessibility.utilのメソッド 修飾子と型 メソッド 説明 static void
AWTEventMonitor. addActionListener(ActionListener l)
Java仮想マシンの各コンポーネント・インスタンスのすべてのACTION
イベントを、その発生時に受け取る指定のリスナーを追加します。static void
AWTEventMonitor. removeActionListener(ActionListener l)
以後、ACTION
イベントをその発生時に受け取らないように、指定されたリスナーを削除します。 -
java.awtでのActionListenerの使用
ActionListenerを実装しているjava.awtのクラス 修飾子と型 クラス 説明 class
AWTEventMulticaster
AWTEventMulticaster
は、java.awt.event
パッケージで定義されたAWTイベントのための、効率的でスレッドセーフなマルチキャスト・イベント・ディスパッチを実装します。protected class
List.AccessibleAWTList
このクラスはList
クラスのアクセシビリティ・サポートを実装しています。ActionListenerを返すjava.awtのメソッド 修飾子と型 メソッド 説明 static ActionListener
AWTEventMulticaster. add(ActionListener a, ActionListener b)
action-listener-aとaction-listener-bを加え、結果として得られるマルチキャスト・リスナーを返します。ActionListener[]
Button. getActionListeners()
このボタンに登録されたすべてのアクション・リスナーの配列を返します。ActionListener[]
List. getActionListeners()
このリストに登録されたすべてのアクション・リスナーの配列を返します。ActionListener[]
MenuItem. getActionListeners()
このメニュー項目に登録されたすべてのアクション・リスナーの配列を返します。ActionListener[]
TextField. getActionListeners()
このテキスト・フィールドに登録されたすべてのアクション・リスナーの配列を返します。ActionListener[]
TrayIcon. getActionListeners()
このTrayIcon
に登録されたすべてのアクション・リスナーの配列を返します。static ActionListener
AWTEventMulticaster. remove(ActionListener l, ActionListener oldl)
action-listener-lから古いaction-listenerを削除し、結果として得られるマルチキャスト・リスナーを返します。ActionListener型のパラメータを持つjava.awtのメソッド 修飾子と型 メソッド 説明 static ActionListener
AWTEventMulticaster. add(ActionListener a, ActionListener b)
action-listener-aとaction-listener-bを加え、結果として得られるマルチキャスト・リスナーを返します。void
Button. addActionListener(ActionListener l)
このボタンからアクション・イベントを受け取るために、指定されたアクション・リスナーを追加します。void
List. addActionListener(ActionListener l)
このリストからアクション・イベントを受け取るために、指定されたアクション・リスナーを追加します。void
MenuItem. addActionListener(ActionListener l)
このメニュー項目からアクション・イベントを受け取るために、指定されたアクション・リスナーを追加します。void
TextField. addActionListener(ActionListener l)
このテキスト・フィールドからアクション・イベントを受け取るために、指定されたアクション・リスナーを追加します。void
TrayIcon. addActionListener(ActionListener listener)
このTrayIcon
からActionEvent
を受け取るために、指定されたアクション・リスナーを追加します。static ActionListener
AWTEventMulticaster. remove(ActionListener l, ActionListener oldl)
action-listener-lから古いaction-listenerを削除し、結果として得られるマルチキャスト・リスナーを返します。void
Button. removeActionListener(ActionListener l)
以降このボタンからアクション・イベントを受け取らないように、指定されたアクション・リスナーを削除します。void
List. removeActionListener(ActionListener l)
以降このリストからアクション・イベントを受け取らないように、指定されたアクション・リスナーを削除します。void
MenuItem. removeActionListener(ActionListener l)
以後このメニュー項目からアクション・イベントを受け取らないように、指定されたアクション・リスナーを削除します。void
TextField. removeActionListener(ActionListener l)
以降このテキスト・フィールドからアクション・イベントを受け取らないように、指定されたアクション・リスナーを削除します。void
TrayIcon. removeActionListener(ActionListener listener)
指定されたアクション・リスナーを削除します。 -
java.awt.dndでのActionListenerの使用
ActionListenerを実装しているjava.awt.dndのクラス 修飾子と型 クラス 説明 protected static class
DropTarget.DropTargetAutoScroller
この保護されたネスト・クラスは、自動スクロールを実装します。 -
javax.swingでのActionListenerの使用
javax.swingでのActionListenerのサブインタフェース 修飾子と型 インタフェース 説明 interface
Action
Action
インタフェースは、同じ機能が複数のコントロールによってアクセスされる場合に、ActionListener
インタフェースに対する便利な拡張機能を提供します。ActionListenerを実装しているjavax.swingのクラス 修飾子と型 クラス 説明 class
AbstractAction
このクラスは、JFCのAction
インタフェースのデフォルト実装を提供します。protected class
DefaultCellEditor.EditorDelegate
保護されているEditorDelegate
クラスです。class
JComboBox<E>
ボタン、または編集可能フィールドとドロップ・ダウン・リストを組み合わせたコンポーネントです。protected class
ToolTipManager.insideTimerAction
タイマーの内部動作。protected class
ToolTipManager.outsideTimerAction
タイマーの外のアクション。protected class
ToolTipManager.stillInsideTimerAction
まだタイマーの内側のアクション。ActionListenerとして宣言されているjavax.swingのフィールド 修飾子と型 フィールド 説明 protected ActionListener
AbstractButton. actionListener
ボタン・モデルのActionListener
。ActionListenerを返すjavax.swingのメソッド 修飾子と型 メソッド 説明 protected ActionListener
AbstractButton. createActionListener()
モデルに追加されたActionListener
を返します。ActionListener
JComponent. getActionForKeyStroke(KeyStroke aKeyStroke)
指定されたキー・ストロークに対して登録されているアクションを実行するオブジェクトを返します。ActionListener[]
AbstractButton. getActionListeners()
addActionListener()を使用してこのAbstractButtonに追加されたすべてのActionListener
の配列を返します。ActionListener[]
DefaultButtonModel. getActionListeners()
このDefaultButtonModel
に登録されたすべてのアクション・リスナーの配列を返します。ActionListener[]
JComboBox. getActionListeners()
addActionListener()を使用してこのJComboBoxに追加されたすべてのActionListener
の配列を返します。ActionListener[]
JFileChooser. getActionListeners()
このファイル・チューザに登録されたすべてのアクション・リスナーの配列を返します。ActionListener[]
JTextField. getActionListeners()
addActionListener()を使用してこのJTextFieldに追加されたすべてのActionListener
の配列を返します。ActionListener[]
Timer. getActionListeners()
このタイマーに登録されたすべてのアクション・リスナーの配列を返します。ActionListener型のパラメータを持つjavax.swingのメソッド 修飾子と型 メソッド 説明 void
AbstractButton. addActionListener(ActionListener l)
ボタンにActionListener
を追加します。void
ButtonModel. addActionListener(ActionListener l)
モデルにActionListener
を追加します。void
ComboBoxEditor. addActionListener(ActionListener l)
ActionListenerを追加します。void
JComboBox. addActionListener(ActionListener l)
ActionListener
を追加します。void
JFileChooser. addActionListener(ActionListener l)
ファイル・チューザにActionListener
を追加します。void
JTextField. addActionListener(ActionListener l)
アクション・イベントをこのテキスト・フィールドから受け取るために、指定されたアクション・リスナーを追加します。void
Timer. addActionListener(ActionListener listener)
Timer
にアクション・リスナーを追加します。static JDialog
JColorChooser. createDialog(Component c, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener)
「OK」、「取消」、および「リセット」ボタンとともに指定されたColorChooser
ペインを含む新しいダイアログを作成して返します。void
JComponent. registerKeyboardAction(ActionListener anAction, String aCommand, KeyStroke aKeyStroke, int aCondition)
このメソッドは現在使われていません。類似の動作にはgetActionMap()
とgetInputMap()
を組み合わせて使用してください。void
JComponent. registerKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)
このメソッドは現在使われていません。類似の動作にはgetActionMap()
とgetInputMap()
を組み合わせて使用してください。void
AbstractButton. removeActionListener(ActionListener l)
ボタンからActionListener
を削除します。void
ButtonModel. removeActionListener(ActionListener l)
モデルからActionListener
を削除します。void
ComboBoxEditor. removeActionListener(ActionListener l)
アクション・リスナーを削除します。void
JComboBox. removeActionListener(ActionListener l)
ActionListener
を削除します。void
JFileChooser. removeActionListener(ActionListener l)
ファイル・チューザからActionListener
を削除します。void
JTextField. removeActionListener(ActionListener l)
以後このテキスト・フィールドからアクション・イベントを受け取らないように、指定されたアクション・リスナーを削除します。void
Timer. removeActionListener(ActionListener listener)
指定されたアクション・リスナーをTimer
から削除します。ActionListener型のパラメータを持つjavax.swingのコンストラクタ コンストラクタ 説明 Timer(int delay, ActionListener listener)
Timer
を作成し、初期遅延とイベント間遅延をdelay
ミリ秒に初期化します。 -
javax.swing.plaf.basicでのActionListenerの使用
ActionListenerを実装しているjavax.swing.plaf.basicのクラス 修飾子と型 クラス 説明 protected class
BasicDesktopPaneUI.CloseAction
内部フレームを閉じることを処理します。protected class
BasicDesktopPaneUI.MaximizeAction
内部フレームを最大化することを処理します。protected class
BasicDesktopPaneUI.MinimizeAction
内部フレームを最小化することを処理します。protected class
BasicDesktopPaneUI.NavigateAction
次の内部フレームに移動することを処理します。protected class
BasicDesktopPaneUI.OpenAction
最小化または最大化された内部フレームを元に戻します。protected class
BasicFileChooserUI.ApproveSelectionAction
Open要求またはSave要求にこたえます。protected class
BasicFileChooserUI.CancelSelectionAction
取消しの要求にこたえます。protected class
BasicFileChooserUI.ChangeToParentDirectoryAction
親ディレクトリ操作に変更します。protected class
BasicFileChooserUI.GoHomeAction
Homeキー・イベントまたは同等のイベントに従って処理を行います。protected class
BasicFileChooserUI.NewFolderAction
新しいフォルダを作成します。protected class
BasicFileChooserUI.UpdateAction
現在のディレクトリでファイルを走査し直します。class
BasicInternalFrameTitlePane.CloseAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.IconifyAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.MaximizeAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.MoveAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.RestoreAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicInternalFrameTitlePane.SizeAction
このクラスは、「protected」内部クラスとして扱うようにしてください。class
BasicOptionPaneUI.ButtonActionListener
このクラスは、「protected」内部クラスとして扱うようにしてください。protected class
BasicScrollBarUI.ScrollListener
ScrollPane
で開始されるスクロール・イベントのためのリスナーです。class
BasicSliderUI.ActionScroller
ドキュメントから削除されたこのクラスは、Java 2プラットフォーム1.3では使用しません。class
BasicSliderUI.ScrollListener
スクロール・イベント・リスナーです。class
BasicSplitPaneUI.KeyboardDownRightHandler
JSplitPane UIが、特定のキーが押されたときの処理に使用するActionListenerの実装です。class
BasicSplitPaneUI.KeyboardEndHandler
JSplitPane UIが、特定のキーが押されたときの処理に使用するActionListenerの実装です。class
BasicSplitPaneUI.KeyboardHomeHandler
JSplitPane UIが、特定のキーが押されたときの処理に使用するActionListenerの実装です。class
BasicSplitPaneUI.KeyboardResizeToggleHandler
JSplitPane UIが、特定のキーが押されたときの処理に使用するActionListenerの実装です。class
BasicSplitPaneUI.KeyboardUpLeftHandler
JSplitPane UIが、特定のキーが押されたときの処理に使用するActionListenerの実装です。class
BasicTreeUI.ComponentHandler
スクロール時に推奨サイズを更新します(必要に応じて)。class
BasicTreeUI.TreeCancelEditingAction
アクションが実行されたときにcancelEditingを呼び出すActionListenerです。class
BasicTreeUI.TreeHomeAction
TreeHomeActionは、終了またはホーム・アクションを処理するために使用されます。class
BasicTreeUI.TreeIncrementAction
TreeIncrementActionは、上下のアクションを処理するために使われます。class
BasicTreeUI.TreePageAction
TreePageActionは、ページ・アップとページ・ダウンのイベントを処理します。class
BasicTreeUI.TreeToggleAction
最初に選択された行で、展開状態が切り替えられます。class
BasicTreeUI.TreeTraverseAction
TreeTraverseAction
は、左または右キーのために使用されるアクションです。ActionListenerとして宣言されているjavax.swing.plaf.basicのフィールド 修飾子と型 フィールド 説明 protected ActionListener
BasicSplitPaneUI. keyboardDownRightListener
非推奨。Java 2プラットフォーム1.3以降使われていません。protected ActionListener
BasicSplitPaneUI. keyboardEndListener
非推奨。Java 2プラットフォーム1.3以降使われていません。protected ActionListener
BasicSplitPaneUI. keyboardHomeListener
非推奨。Java 2プラットフォーム1.3以降使われていません。protected ActionListener
BasicSplitPaneUI. keyboardResizeToggleListener
非推奨。Java 2プラットフォーム1.3以降使われていません。protected ActionListener
BasicSplitPaneUI. keyboardUpLeftListener
非推奨。Java 2プラットフォーム1.3以降使われていません。ActionListenerを返すjavax.swing.plaf.basicのメソッド 修飾子と型 メソッド 説明 protected ActionListener
BasicOptionPaneUI. createButtonActionListener(int buttonIndex)
ButtonActionListener
の新しいインスタンスを構築します。protected ActionListener
BasicSplitPaneUI. createKeyboardDownRightListener()
非推奨。Java 2プラットフォーム1.3以降使われていません。protected ActionListener
BasicSplitPaneUI. createKeyboardEndListener()
非推奨。Java 2プラットフォーム1.3以降使われていません。protected ActionListener
BasicSplitPaneUI. createKeyboardHomeListener()
非推奨。Java 2プラットフォーム1.3以降使われていません。protected ActionListener
BasicSplitPaneUI. createKeyboardResizeToggleListener()
非推奨。Java 2プラットフォーム1.3以降使われていません。protected ActionListener
BasicSplitPaneUI. createKeyboardUpLeftListener()
非推奨。Java 2プラットフォーム1.3以降使われていません。 -
javax.swing.plaf.metalでのActionListenerの使用
ActionListenerを実装しているjavax.swing.plaf.metalのクラス 修飾子と型 クラス 説明 protected class
MetalFileChooserUI.DirectoryComboBoxAction
DirectoryComboBoxで選択されている項目が変更されたときにアクションを起こします。 -
javax.swing.textでのActionListenerの使用
ActionListenerを実装しているjavax.swing.textのクラス 修飾子と型 クラス 説明 static class
DefaultEditorKit.BeepAction
ビープ音を作成します。static class
DefaultEditorKit.CopyAction
選択した領域をコピーして、その内容をシステム・クリップボードに格納します。static class
DefaultEditorKit.CutAction
選択した領域を切り取り、その内容をシステム・クリップボードに格納します。static class
DefaultEditorKit.DefaultKeyTypedAction
キー入力イベントを受け取ったとき、キーマップ・エントリがない場合にデフォルトで実行されるアクションです。static class
DefaultEditorKit.InsertBreakAction
ドキュメントに行または段落の区切りを配置します。static class
DefaultEditorKit.InsertContentAction
関連するドキュメントに内容を格納します。static class
DefaultEditorKit.InsertTabAction
ドキュメントにタブ文字を配置します。static class
DefaultEditorKit.PasteAction
システム・クリップボードの内容を、選択された範囲、あるいはキャレットの前(選択範囲がない場合)に貼り付けます。static class
StyledEditorKit.AlignmentAction
段落の配置方法を設定するアクションです。static class
StyledEditorKit.BoldAction
太字属性を切り替えるアクションです。static class
StyledEditorKit.FontFamilyAction
関連するJEditorPaneのフォント・ファミリを設定するアクションです。static class
StyledEditorKit.FontSizeAction
関連するJEditorPaneのフォント・サイズを設定するアクションです。static class
StyledEditorKit.ForegroundAction
フォアグラウンド・カラーを設定するアクションです。static class
StyledEditorKit.ItalicAction
イタリック属性を切り替えるアクションです。static class
StyledEditorKit.StyledTextAction
インストールされたStyledEditorKit (またはサブクラス)によってJEditorPaneでトリガーされると見なされるアクションです。static class
StyledEditorKit.UnderlineAction
下線属性を切り替えるアクションです。class
TextAction
多くの異なるテキスト・コンポーネントで共有されるキー・バインディングに便利な、アクションの実装です。 -
javax.swing.text.htmlでのActionListenerの使用
ActionListenerを実装しているjavax.swing.text.htmlのクラス 修飾子と型 クラス 説明 class
FormView
フォーム要素<input>、<textarea>、および<select>のためのビュー・インタフェースを実装するコンポーネント・デコレータです。static class
HTMLEditorKit.HTMLTextAction
HTMLを既存のドキュメントに挿入するのに便利ないくつかの簡易メソッドを提供するabstractアクションです。static class
HTMLEditorKit.InsertHTMLTextAction
InsertHTMLTextActionは、既存のHTMLドキュメントに任意のHTML文字列を挿入するために使用できます。 -
javax.swing.treeでのActionListenerの使用
ActionListenerを実装しているjavax.swing.treeのクラス 修飾子と型 クラス 説明 class
DefaultTreeCellEditor
TreeCellEditor
。
-