Constructor and Description |
---|
EventHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleLevelEvent(int level)
Notifies the listener that the window level has changed.
|
void |
handleScreenChangedEvent(Window window,
long time,
Screen oldScreen,
Screen newScreen)
Notifies a listener that the screen object for this Window instance
has been updated.
|
void |
handleWindowEvent(Window window,
long time,
int type) |
public void handleWindowEvent(Window window, long time, int type)
public void handleScreenChangedEvent(Window window, long time, Screen oldScreen, Screen newScreen)
Screen.getNativeScreen()
method
to determine if this is the same physical screen or not. If the
native system always creates new native screen instances, there's no
way for the app to distinguish between a real move to another screen
or jsut a parameters update event. Since this is a somewhat rare
event, an app is advised to always process it the same way.Window.getScreen()
public void handleLevelEvent(int level)
Window.Level.NORMAL
, Window.Level.FLOATING
,
Window.Level.TOPMOST
.level
- Level from Window.Level
classCopyright © 2020. All rights reserved.