Top Fields Constructors Methods
com.sun.javafx.tk.quantum

pack-priv Class GlassWindowEventHandler

extends EventHandler
implements PrivilegedAction<Void>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Imports
com.sun.glass.events.WindowEvent, com.sun.glass.ui.Application, .Screen, .Window, .Window.Level, com.sun.javafx.tk.FocusCause, java.security.AccessControlContext, .AccessController, .PrivilegedAction

Field Summary

Modifier and TypeField and Description
private final WindowStage
private int
private Window

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
handleLevelEvent(int level)

Overrides com.sun.glass.ui.Window.EventHandler.handleLevelEvent.

Notifies the listener that the window level has changed.

public void
handleScreenChangedEvent(Window window, long time, Screen oldScreen, Screen newScreen)

Overrides com.sun.glass.ui.Window.EventHandler.handleScreenChangedEvent.

Notifies a listener that the screen object for this Window instance has been updated.

public void
handleWindowEvent(final Window window, final long time, final int type)

Overrides com.sun.glass.ui.Window.EventHandler.handleWindowEvent.

public Void
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.

Field Detail

stageback to summary
private final WindowStage stage
typeback to summary
private int type
windowback to summary
private Window window

Constructor Detail

GlassWindowEventHandlerback to summary
public GlassWindowEventHandler(WindowStage stage)

Method Detail

handleLevelEventback to summary
public void handleLevelEvent(int level)

Overrides com.sun.glass.ui.Window.EventHandler.handleLevelEvent.

Doc from com.sun.glass.ui.Window.EventHandler.handleLevelEvent.

Notifies the listener that the window level has changed. The Level should be one of com.sun.glass.ui.Window.Level#NORMAL, com.sun.glass.ui.Window.Level#FLOATING, com.sun.glass.ui.Window.Level#TOPMOST.

Parameters
level:int

Level from com.sun.glass.ui.Window.Level class

Annotations
@SuppressWarnings:removal
@Override
handleScreenChangedEventback to summary
public void handleScreenChangedEvent(Window window, long time, Screen oldScreen, Screen newScreen)

Overrides com.sun.glass.ui.Window.EventHandler.handleScreenChangedEvent.

Doc from com.sun.glass.ui.Window.EventHandler.handleScreenChangedEvent.

Notifies a listener that the screen object for this Window instance has been updated. Note that while the old and new screen objects may be different, they can still represent the same physical screen. This can happen if e.g. only a certain parameter of the screen has been updated such as its scale factor. On some platforms when a window is moved to another physical screen an app can receive this event twice. One representing the physical screen change, and another - the display's parameters change. Note that sending two events instead of just one is platform-specific. The event handler can use the 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.

Annotations
@SuppressWarnings:removal
@Override
handleWindowEventback to summary
public void handleWindowEvent(final Window window, final long time, final int type)

Overrides com.sun.glass.ui.Window.EventHandler.handleWindowEvent.

Annotations
@SuppressWarnings:removal
@Override
runback to summary
public Void run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Void

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.

Annotations
@Override