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.
|
WindowActivated(TopLevelWindow<?> source,
boolean activated,
TopLevelWindow<?> other)
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).
|
void |
print(PrintHelper printer)
Print all class-specific fields.
|
TopLevelWindow<?> |
source()
Get the window source.
|
boolean |
withNativeWindow()
Check if the opposite window for this event is another OS/native window.
|
consume, id, isConsumed, other, toString
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 WindowActivated(TopLevelWindow<?> source, boolean activated, TopLevelWindow<?> other)
source
- The top-level window being activated.activated
- Flag indicating if the window is being activated (gained focus) or deactivated
(lost focus).other
- When (de)activating a window, this is the FWD counterpart window, or
null
if the other is a native window.public TopLevelWindow<?> source()
public boolean isActivated()
activated
flag.public boolean withNativeWindow()
withNativeWindow
flag.public void print(PrintHelper printer)