クラスAWTEventListenerProxy
java.lang.Object
java.util.EventListenerProxy<AWTEventListener>
java.awt.event.AWTEventListenerProxy
- すべての実装されたインタフェース:
AWTEventListener, EventListener
public class AWTEventListenerProxy extends EventListenerProxy<AWTEventListener> implements AWTEventListener
特定のイベント・マスク用の
AWTEventListenerを追加するために、EventListenerProxyを拡張するクラスです。 このクラスのインスタンスは、AWTEventListenerとしてToolkitオブジェクトに追加できます。
ToolkitのgetAWTEventListenersメソッドは、AWTEventListenerおよびAWTEventListenerProxyオブジェクトを組み合わせて返すことができます。
- 導入されたバージョン:
- 1.4
- 関連項目:
-
コンストラクタのサマリー
コンストラクタコンストラクタ説明AWTEventListenerProxy(long eventMask, AWTEventListener listener) AWTEventListenerを特定のイベント・マスクにバインドするコンストラクタです。 -
メソッドのサマリー
修飾子と型メソッド説明voideventDispatched(AWTEvent event) AWTイベントをリスナー委譲に転送します。longリスナーに関連付けられたイベント・マスクを返します。クラスで宣言されたメソッド EventListenerProxy
getListenerクラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
コンストラクタの詳細
-
AWTEventListenerProxy
public AWTEventListenerProxy(long eventMask, AWTEventListener listener) AWTEventListenerを特定のイベント・マスクにバインドするコンストラクタです。- パラメータ:
eventMask- 受け取るイベント・タイプのビットマップlistener- リスナー・オブジェクト
-
-
メソッドの詳細
-
eventDispatched
public void eventDispatched(AWTEvent event) AWTイベントをリスナー委譲に転送します。- 定義:
eventDispatched、インタフェースAWTEventListener- パラメータ:
event- AWTイベント
-
getEventMask
public long getEventMask()リスナーに関連付けられたイベント・マスクを返します。- 戻り値:
- リスナーに関連付けられたイベント・マスク
-