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

public Class WindowStage

extends GlassStage
Class Inheritance
Imports
java.nio.ByteBuffer, java.util.HashMap, .LinkedList, .List, .Map, .Locale, .ResourceBundle, javafx.scene.input.KeyCombination, javafx.stage.Modality, .Stage, .StageStyle, com.sun.glass.events.WindowEvent, com.sun.glass.ui.*, .Window.Level, com.sun.javafx.PlatformUtil, com.sun.javafx.iio.common.PushbroomScaler, .ScalerFactory, com.sun.javafx.stage.HeaderButtonMetrics, .StagePeerListener, com.sun.javafx.tk.FocusCause, .TKScene, .TKStage, .TKStageListener, com.sun.prism.Image, .PixelFormat

Field Summary

Modifier and TypeField and Description
private static List<WindowStage>
private Window
protected Stage
private boolean
private boolean
private boolean
private boolean
private boolean
private static final Locale
private Modality
private GlassStage
protected Window
private static Map<Window, WindowStage>
private static final ResourceBundle
private boolean
private KeyCombination
private StageStyle
private boolean
private OverlayWarning
Inherited from com.sun.javafx.tk.quantum.GlassStage:
activeFSWindowstageListener

Constructor Summary

AccessConstructor and Description
public
WindowStage(Window peerWindow, final StageStyle stageStyle, Modality modality, TKStage owner)

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
private void
public void
public void
private void
public TKScene
createTKScene(boolean depthBuffer, boolean msaa)

Implements com.sun.javafx.tk.TKStage.createTKScene.

Creates a Scene peer that can be displayed in this Stage peer.

private static void
pack-priv void
pack-priv static Image
findBestImage(List<E> icons, int width, int height)

pack-priv static WindowStage
findWindowStage(Window platformWindow)

pack-priv void
fullscreenChanged(final boolean fs)

public float
public float
protected GlassStage
public float
public float
public final Window
public long
getRawHandle()

Implements com.sun.javafx.tk.TKStage.getRawHandle.

Return a handle to the native platform window id.

public final KeyCombination
pack-priv StageStyle
protected ViewScene
public boolean
grabFocus()

Implements com.sun.javafx.tk.TKStage.grabFocus.

Grabs focus on this window.

pack-priv final void
public final WindowStage
private void
pack-priv boolean
public boolean
private void
public void
public void
releaseInput()

Implements com.sun.javafx.tk.TKStage.releaseInput.

Native keyboard for text input is no longer necessary.

pack-priv static void
public void
public void
public void
requestInput(String text, int type, double width, double height, double Mxx, double Mxy, double Mxz, double Mxt, double Myx, double Myy, double Myz, double Myt, double Mzx, double Mzy, double Mzz, double Mzt)

Implements com.sun.javafx.tk.TKStage.requestInput.

Requests text input in form of native keyboard for text component contained by this Window.

protected void
public void
public void
setBounds(float x, float y, boolean xSet, boolean ySet, float w, float h, float cw, float ch, float xGravity, float yGravity, float renderScaleX, float renderScaleY)

Implements com.sun.javafx.tk.TKStage.setBounds.

Sets the window bounds to the specified values.

public void
setEnabled(boolean enabled)

Implements com.sun.javafx.tk.TKStage.setEnabled.

Whether mouse/keyboard events should be sent to this window.

public void
public void
public void
pack-priv final void
pack-priv final void
public void
public void
setMaximumSize(int maxWidth, int maxHeight)

Implements com.sun.javafx.tk.TKStage.setMaximumSize.

public void
setMinimumSize(int minWidth, int minHeight)

Implements com.sun.javafx.tk.TKStage.setMinimumSize.

public void
protected void
pack-priv void
public void
public void
public void
public void
setScene(TKScene
The peer of the scene to be displayed
scene
)

Overrides com.sun.javafx.tk.quantum.GlassStage.setScene.

Implements com.sun.javafx.tk.TKStage.setScene.

Set the scene to be displayed in this stage

public void
public void
setTKStageListener(TKStageListener listener)

Overrides com.sun.javafx.tk.quantum.GlassStage.setTKStageListener.

Implements com.sun.javafx.tk.TKStage.setTKStageListener.

Listener for this stage peer to pass updates and events back to the stage

public void
setVisible(final boolean visible)

Overrides com.sun.javafx.tk.quantum.GlassStage.setVisible.

Implements com.sun.javafx.tk.TKStage.setVisible.

Set if the stage is visible on screen

pack-priv void
public void
public void
public void
ungrabFocus()

Implements com.sun.javafx.tk.TKStage.ungrabFocus.

Manually ungrabs focus grabbed on this window previously.

Inherited from com.sun.javafx.tk.quantum.GlassStage:
getScenerequestClosingAllWindowssetImportantwindowsSetEnabled

Field Detail

activeWindowsback to summary
private static List<WindowStage> activeWindows
deadWindowback to summary
private Window deadWindow
fxStageback to summary
protected Stage fxStage
isAlwaysOnTopback to summary
private boolean isAlwaysOnTop
isClosePostponedback to summary
private boolean isClosePostponed
isInFullScreenback to summary
private boolean isInFullScreen
isPopupStageback to summary
private boolean isPopupStage
isPrimaryStageback to summary
private boolean isPrimaryStage
LOCALEback to summary
private static final Locale LOCALE
modalityback to summary
private Modality modality
ownerback to summary
private GlassStage owner
platformWindowback to summary
protected Window platformWindow
platformWindowsback to summary
private static Map<Window, WindowStage> platformWindows
RESOURCESback to summary
private static final ResourceBundle RESOURCES
rtlback to summary
private boolean rtl
savedFullScreenExitKeyback to summary
private KeyCombination savedFullScreenExitKey
styleback to summary
private StageStyle style
transparentback to summary
private boolean transparent
warningback to summary
private OverlayWarning warning

Constructor Detail

WindowStageback to summary
public WindowStage(Window peerWindow, final StageStyle stageStyle, Modality modality, TKStage owner)

Method Detail

addActiveWindowback to summary
pack-priv static void addActiveWindow(WindowStage window)
applyFullScreenback to summary
private void applyFullScreen()
closeback to summary
public void close()

Overrides com.sun.javafx.tk.quantum.GlassStage.close.

Implements com.sun.javafx.tk.TKStage.close.

Annotations
@Override
closePostponedback to summary
public void closePostponed()

Overrides default com.sun.javafx.tk.TKStage.closePostponed.

Annotations
@Override
computeAndSetBackgroundback to summary
private void computeAndSetBackground(List<Stop> stops)
createTKSceneback to summary
public TKScene createTKScene(boolean depthBuffer, boolean msaa)

Implements com.sun.javafx.tk.TKStage.createTKScene.

Doc from com.sun.javafx.tk.TKStage.createTKScene.

Creates a Scene peer that can be displayed in this Stage peer.

Annotations
@Override
disposeScenePainterback to summary
private static void disposeScenePainter(ViewScene oldScene)
exitFullScreenback to summary
pack-priv void exitFullScreen()
findBestImageback to summary
pack-priv static Image findBestImage(List<E> icons, int width, int height)
findWindowStageback to summary
pack-priv static WindowStage findWindowStage(Window platformWindow)
fullscreenChangedback to summary
pack-priv void fullscreenChanged(final boolean fs)
getOutputScaleXback to summary
public float getOutputScaleX()

Implements com.sun.javafx.tk.TKStage.getOutputScaleX.

Annotations
@Override
getOutputScaleYback to summary
public float getOutputScaleY()

Implements com.sun.javafx.tk.TKStage.getOutputScaleY.

Annotations
@Override
getOwnerback to summary
protected GlassStage getOwner()
getPlatformScaleXback to summary
public float getPlatformScaleX()

Implements com.sun.javafx.tk.TKStage.getPlatformScaleX.

Annotations
@Override
getPlatformScaleYback to summary
public float getPlatformScaleY()

Implements com.sun.javafx.tk.TKStage.getPlatformScaleY.

Annotations
@Override
getPlatformWindowback to summary
public final Window getPlatformWindow()
getRawHandleback to summary
public long getRawHandle()

Implements com.sun.javafx.tk.TKStage.getRawHandle.

Doc from com.sun.javafx.tk.TKStage.getRawHandle.

Return a handle to the native platform window id.

Annotations
@Override
getSavedFullScreenExitKeyback to summary
public final KeyCombination getSavedFullScreenExitKey()
getStyleback to summary
pack-priv StageStyle getStyle()
getViewSceneback to summary
protected ViewScene getViewScene()
grabFocusback to summary
public boolean grabFocus()

Implements com.sun.javafx.tk.TKStage.grabFocus.

Doc from com.sun.javafx.tk.TKStage.grabFocus.

Grabs focus on this window. All mouse clicks that occur in this window's client area or client-areas of any of its unfocusable owned windows are delivered as usual. Whenever a click occurs on another app's window (not related via the ownership relation with this one, or a focusable owned window), or on non-client area of any window (titlebar, etc.), or any third-party app's window, or native OS GUI (e.g. a taskbar), the grab is automatically reset, and the window that held the grab receives the FOCUS_UNGRAB event. Note that for this functionality to work correctly, the window must have a focus upon calling this method. All owned popup windows that should be operable during the grabbed focus state (e.g. nested popup menus) must be unfocusable (see setFocusable). Clicking a focusable owned window will reset the grab due to a focus transfer. The click that occurs in another window and causes resetting of the grab may or may not be delivered to that other window depending on the native OS behavior. If any of the application's windows already holds the grab, it is reset prior to grabbing the focus for this window. The method may be called multiple times for one window. Subsequent calls do not affect the grab status unless it is reset between the calls, in which case the focus is grabbed again. Note that grabbing the focus on an application window may prevent delivering certain events to other applications until the grab is reset. Therefore, if the application has finished showing popup windows based on a user action (e.g. clicking a menu item), and doesn't require the grab any more, it should call the ungrabFocus method. The FOCUS_UNGRAB event signals that the grab has been reset. A user event handler associated with a menu item must be invoked after resetting the grab. Otherwise, if a developer debugs the application and has installed a breakpoint in the event handler, the debugger may become unoperable due to events blocking for other applications on some platforms.

Annotations
@Override
handleFocusDisabledback to summary
pack-priv final void handleFocusDisabled()
initback to summary
public final WindowStage init(GlassSystemMenu sysmenu)
initPlatformWindowback to summary
private void initPlatformWindow()
isVisibleback to summary
pack-priv boolean isVisible()

Overrides com.sun.javafx.tk.quantum.GlassStage.isVisible.

Annotations
@Override
needsUpdateWindowback to summary
public boolean needsUpdateWindow()
notifyHeaderButtonMetricsChangedback to summary
private void notifyHeaderButtonMetricsChanged()
postponeCloseback to summary
public void postponeClose()

Overrides default com.sun.javafx.tk.TKStage.postponeClose.

Annotations
@Override
releaseInputback to summary
public void releaseInput()

Implements com.sun.javafx.tk.TKStage.releaseInput.

Doc from com.sun.javafx.tk.TKStage.releaseInput.

Native keyboard for text input is no longer necessary. Keyboard will be hidden and native text input component too.

Annotations
@Override
removeActiveWindowback to summary
pack-priv static void removeActiveWindow(WindowStage window)
requestFocusback to summary
public void requestFocus()

Overrides com.sun.javafx.tk.quantum.GlassStage.requestFocus.

Implements com.sun.javafx.tk.TKStage.requestFocus.

Annotations
@Override
requestFocusback to summary
public void requestFocus(FocusCause cause)

Overrides com.sun.javafx.tk.quantum.GlassStage.requestFocus.

Implements com.sun.javafx.tk.TKStage.requestFocus.

Annotations
@Override
requestInputback to summary
public void requestInput(String text, int type, double width, double height, double Mxx, double Mxy, double Mxz, double Mxt, double Myx, double Myy, double Myz, double Myt, double Mzx, double Mzy, double Mzz, double Mzt)

Implements com.sun.javafx.tk.TKStage.requestInput.

Doc from com.sun.javafx.tk.TKStage.requestInput.

Requests text input in form of native keyboard for text component contained by this Window. Native text input component is drawn on the place of JavaFX component to cover it completely and to provide native text editing techniques. Any change of text is immediately reflected in JavaFX text component.

Annotations
@Override
requestToFrontback to summary
protected void requestToFront()
setAlwaysOnTopback to summary
public void setAlwaysOnTop(boolean alwaysOnTop)

Implements com.sun.javafx.tk.TKStage.setAlwaysOnTop.

Annotations
@Override
setBoundsback to summary
public void setBounds(float x, float y, boolean xSet, boolean ySet, float w, float h, float cw, float ch, float xGravity, float yGravity, float renderScaleX, float renderScaleY)

Implements com.sun.javafx.tk.TKStage.setBounds.

Doc from com.sun.javafx.tk.TKStage.setBounds.

Sets the window bounds to the specified values. Gravity values specify how to correct window location if only its size changes (for example when stage decorations are added). User initiated resizing should be ignored and must not influence window location through this mechanism. The corresponding correction formulas are: x -= xGravity * deltaW y -= yGravity * deltaH

Annotations
@Override
setEnabledback to summary
public void setEnabled(boolean enabled)

Implements com.sun.javafx.tk.TKStage.setEnabled.

Doc from com.sun.javafx.tk.TKStage.setEnabled.

Whether mouse/keyboard events should be sent to this window.

Annotations
@Override
setFullScreenback to summary
public void setFullScreen(boolean fullScreen)

Implements com.sun.javafx.tk.TKStage.setFullScreen.

Annotations
@Override
setIconifiedback to summary
public void setIconified(boolean iconified)

Implements com.sun.javafx.tk.TKStage.setIconified.

Annotations
@Override
setIconsback to summary
public void setIcons(List<E> icons)

Implements com.sun.javafx.tk.TKStage.setIcons.

Annotations
@Override
setIsPopupback to summary
pack-priv final void setIsPopup()
setIsPrimaryback to summary
pack-priv final void setIsPrimary()
setMaximizedback to summary
public void setMaximized(boolean maximized)

Implements com.sun.javafx.tk.TKStage.setMaximized.

Annotations
@Override
setMaximumSizeback to summary
public void setMaximumSize(int maxWidth, int maxHeight)

Implements com.sun.javafx.tk.TKStage.setMaximumSize.

Annotations
@Override
setMinimumSizeback to summary
public void setMinimumSize(int minWidth, int minHeight)

Implements com.sun.javafx.tk.TKStage.setMinimumSize.

Annotations
@Override
setOpacityback to summary
public void setOpacity(float opacity)

Implements com.sun.javafx.tk.TKStage.setOpacity.

Annotations
@Override
setPlatformEnabledback to summary
protected void setPlatformEnabled(boolean enabled)

Overrides com.sun.javafx.tk.quantum.GlassStage.setPlatformEnabled.

Annotations
@Override
setPlatformWindowClosedback to summary
pack-priv void setPlatformWindowClosed()
setPrefHeaderButtonHeightback to summary
public void setPrefHeaderButtonHeight(double height)

Overrides com.sun.javafx.tk.quantum.GlassStage.setPrefHeaderButtonHeight.

Implements com.sun.javafx.tk.TKStage.setPrefHeaderButtonHeight.

Annotations
@Override
setResizableback to summary
public void setResizable(boolean resizable)

Implements com.sun.javafx.tk.TKStage.setResizable.

Annotations
@Override
setRTLback to summary
public void setRTL(boolean b)

Implements com.sun.javafx.tk.TKStage.setRTL.

Annotations
@Override
setSceneback to summary
public void setScene(TKScene scene)

Overrides com.sun.javafx.tk.quantum.GlassStage.setScene.

Implements com.sun.javafx.tk.TKStage.setScene.

Set the scene to be displayed in this stage

Parameters
scene:TKScene

The peer of the scene to be displayed

Annotations
@Override
setTitleback to summary
public void setTitle(String title)

Implements com.sun.javafx.tk.TKStage.setTitle.

Annotations
@Override
setTKStageListenerback to summary
public void setTKStageListener(TKStageListener listener)

Overrides com.sun.javafx.tk.quantum.GlassStage.setTKStageListener.

Implements com.sun.javafx.tk.TKStage.setTKStageListener.

Doc from com.sun.javafx.tk.quantum.GlassStage.setTKStageListener.

Listener for this stage peer to pass updates and events back to the stage

Annotations
@Override
setVisibleback to summary
public void setVisible(final boolean visible)

Overrides com.sun.javafx.tk.quantum.GlassStage.setVisible.

Implements com.sun.javafx.tk.TKStage.setVisible.

Doc from com.sun.javafx.tk.quantum.GlassStage.setVisible.

Set if the stage is visible on screen

Annotations
@Override
setWarningback to summary
pack-priv void setWarning(OverlayWarning newWarning)
toBackback to summary
public void toBack()

Implements com.sun.javafx.tk.TKStage.toBack.

Annotations
@Override
toFrontback to summary
public void toFront()

Implements com.sun.javafx.tk.TKStage.toFront.

Annotations
@Override
ungrabFocusback to summary
public void ungrabFocus()

Implements com.sun.javafx.tk.TKStage.ungrabFocus.

Doc from com.sun.javafx.tk.TKStage.ungrabFocus.

Manually ungrabs focus grabbed on this window previously. This method resets the grab, and forces sending of the FOCUS_UNGRAB event. It should be used when popup windows (such as menus) should be dismissed manually, e.g. when a user clicks a menu item which usually causes the menus to hide.

Annotations
@Override