APIdia Launch Partner
Top Fields Constructors Methods
com.sun.javafx.tk.quantum

pack-priv Class GlassWindowEventHandler

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

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
private void
forceRepaint()

Used to trigger a repaint after a window leaves an iconified state.

public Void
get()

Implements java.util.function.Supplier.get.

Gets a result.

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.

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

forceRepaintback to summary
private void forceRepaint()

Used to trigger a repaint after a window leaves an iconified state.

getback to summary
public Void get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Annotations
@Override
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.

Annotations
@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
@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
@Override