public class WindowEvent extends Event
修飾子と型 | フィールドと説明 |
---|---|
static EventType<WindowEvent> |
ANY
すべてのウィンドウ・イベント・タイプの共通のスーパータイプ。
|
static EventType<WindowEvent> |
WINDOW_CLOSE_REQUEST
このイベントは、そのウィンドウを閉じる外部リクエストがある場合にウィンドウに配信されます。
|
static EventType<WindowEvent> |
WINDOW_HIDDEN
このイベントは、ウィンドウが非表示になった直後にそのウィンドウで発生します。
|
static EventType<WindowEvent> |
WINDOW_HIDING
このイベントは、ウィンドウが非表示になる直前にそのウィンドウで発生します。
|
static EventType<WindowEvent> |
WINDOW_SHOWING
このイベントは、ウィンドウが表示される直前にそのウィンドウで発生します。
|
static EventType<WindowEvent> |
WINDOW_SHOWN
このイベントは、ウィンドウが表示された直後にそのウィンドウで発生します。
|
consumed, eventType, NULL_SOURCE_TARGET, target
source
コンストラクタと説明 |
---|
WindowEvent(Window source, EventType<? extends Event> eventType)
指定されたイベント・ソース、ターゲットおよびタイプを使用した新しい
Event を構築します。 |
修飾子と型 | メソッドと説明 |
---|---|
WindowEvent |
copyFor(Object newSource, EventTarget newTarget)
指定したイベント・ソースとターゲットを持つこのイベントのコピーを作成して返します。
|
WindowEvent |
copyFor(Object newSource, EventTarget newTarget, EventType<WindowEvent> type)
指定のフィールドが置換された特定のイベントのコピーを作成します。
|
EventType<WindowEvent> |
getEventType()
このイベントのイベント・タイプを取得します。
|
String |
toString()
この
WindowEvent オブジェクトの文字列表現を返します。 |
getSource
public static final EventType<WindowEvent> ANY
public static final EventType<WindowEvent> WINDOW_SHOWING
public static final EventType<WindowEvent> WINDOW_SHOWN
public static final EventType<WindowEvent> WINDOW_HIDING
public static final EventType<WindowEvent> WINDOW_HIDDEN
public static final EventType<WindowEvent> WINDOW_CLOSE_REQUEST
public String toString()
WindowEvent
オブジェクトの文字列表現を返します。toString
、クラス: EventObject
WindowEvent
オブジェクトの文字列表現。public WindowEvent copyFor(Object newSource, EventTarget newTarget)
Event
null
に設定されている場合は、NULL_SOURCE_TARGET
値によって置換されます。public WindowEvent copyFor(Object newSource, EventTarget newTarget, EventType<WindowEvent> type)
source
- コピーされたイベントの新しいソースtarget
- コピーされたイベントの新しいターゲットeventType
- 新しいイベント・タイプpublic EventType<WindowEvent> getEventType()
Event
Event
クラスの複数のオブジェクトは、異なるイベント・タイプを持つことができます。これらのイベント・タイプでは、発生するイベントの種類をさらに指定します。getEventType
、クラス: Event
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.