class GlassWindowEventHandler extends Window.EventHandler implements java.security.PrivilegedAction<java.lang.Void>
Modifier and Type | Field and Description |
---|---|
private WindowStage |
stage |
private int |
type |
private Window |
window |
Constructor and Description |
---|
GlassWindowEventHandler(WindowStage stage) |
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) |
java.lang.Void |
run() |
private final WindowStage stage
private Window window
private int type
public GlassWindowEventHandler(WindowStage stage)
public java.lang.Void run()
run
in interface java.security.PrivilegedAction<java.lang.Void>
public void handleLevelEvent(int level)
Window.EventHandler
Window.Level.NORMAL
, Window.Level.FLOATING
,
Window.Level.TOPMOST
.handleLevelEvent
in class Window.EventHandler
level
- Level from Window.Level
classpublic void handleWindowEvent(Window window, long time, int type)
handleWindowEvent
in class Window.EventHandler
public void handleScreenChangedEvent(Window window, long time, Screen oldScreen, Screen newScreen)
Window.EventHandler
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.handleScreenChangedEvent
in class Window.EventHandler
Window.getScreen()