public class WindowActivated extends Event
Modifier and Type | Field and Description |
---|---|
private boolean |
activated
The window being activated.
|
private boolean |
withNativeWindow
Flag indicating if the opposite window is a OS window.
|
Constructor and Description |
---|
WindowActivated(TopLevelWindow<?> source,
boolean activated,
boolean withNativeWindow)
Create a new event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isActivated()
Check if the window is being activated (gained focus) or deactivated (lost focus).
|
TopLevelWindow<?> |
source()
Get the window source.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
boolean |
withNativeWindow()
Check if the opposite window for this event is another OS/native window.
|
consume, id, isConsumed, other
private boolean activated
private boolean withNativeWindow
public WindowActivated(TopLevelWindow<?> source, boolean activated, boolean withNativeWindow)
source
- The top-level window being activated.activated
- Flag indicating if the window is being activated (gained focus) or deactivated
(lost focus).withNativeWindow
- Flag indicating if the opposite window is a OS window.public TopLevelWindow<?> source()
public boolean isActivated()
activated
flag.public boolean withNativeWindow()
withNativeWindow
flag.public java.lang.String toString()
toString
in class java.lang.Object