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

pack-priv final Class EmbeddedStage

extends GlassStage
implements EmbeddedStageInterface
Class Inheritance
All Implemented Interfaces
com.sun.javafx.embed.EmbeddedStageInterface
Imports
java.util.List, com.sun.javafx.embed.AbstractEvents, .EmbeddedStageInterface, .HostInterface, com.sun.javafx.tk.TKScene, .Toolkit, javafx.application.Platform

Field Summary

Modifier and TypeField and Description
private HostInterface
Inherited from com.sun.javafx.tk.quantum.GlassStage:
activeFSWindowstageListener

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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.

public void
public float
public float
public float
public float
public long
getRawHandle()

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

Return a handle to the native platform window id.

public boolean
grabFocus()

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

Grabs focus on this window.

private void
private void
public void
releaseInput()

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

Native keyboard for text input is no longer necessary.

public void
public void
requestInput(String
text to be shown in the native text input component
text
,
int
type of text input component @see com.sun.javafx.scene.control.behavior.TextInputTypes
type
,
double
width of JavaFX text input component
width
,
double
height of JavaFX text input component
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.

public void
public void
setBounds(float
the new window horizontal position, ignored if xSet is set to false
x
,
float
the new window vertical position, ignored if ySet is set to false
y
,
boolean
indicates whether the x parameter is valid
xSet
,
boolean
indicates whether the y parameter is valid
ySet
,
float
the new window width, ignored if set to -1
w
,
float
the new window height, ignored if set to -1
h
,
float
the new window content width, ignored if set to -1
cw
,
float
the new window content height, ignored if set to -1
ch
,
float
the xGravity coefficient
xGravity
,
float
the yGravity coefficient
yGravity
,
float
new rendering scale, ignored if < 1
renderScaleX
,
float
new rendering scale, ignored if < 1
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
setFocused(final boolean focused, final int focusCause)

Implements com.sun.javafx.embed.EmbeddedStageInterface.setFocused.

public void
public void
public void
public 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
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
setSize(final int width, final int height)

Implements com.sun.javafx.embed.EmbeddedStageInterface.setSize.

public void
public void
setVisible(boolean
True if the stage should be visible
visible
)

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

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

Set if the stage is visible on screen

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:
closegetSceneisVisiblerequestClosingAllWindowsrequestFocussetImportantsetTKStageListenerwindowsSetEnabled

Field Detail

hostback to summary
private HostInterface host

Constructor Detail

EmbeddedStageback to summary
public EmbeddedStage(HostInterface host)

Method Detail

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.

Returns:TKScene

scenePeer The peer of the scene to be displayed

Annotations
@Override
focusUngrabback to summary
public void focusUngrab()

Implements com.sun.javafx.embed.EmbeddedStageInterface.focusUngrab.

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

Returns:long

platform window id, or 0L if there is none.

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

Returns:boolean

true if the operation is successful

Annotations
@Override
notifyStageListenerback to summary
private void notifyStageListener(final Runnable r)
notifyStageListenerLaterback to summary
private void notifyStageListenerLater(final Runnable r)
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
requestFocusback to summary
public void requestFocus()

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.

Parameters
text:String

text to be shown in the native text input component

type:int

type of text input component @see com.sun.javafx.scene.control.behavior.TextInputTypes

width:double

width of JavaFX text input component

height:double

height of JavaFX text input component

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

Parameters
x:float

the new window horizontal position, ignored if xSet is set to false

y:float

the new window vertical position, ignored if ySet is set to false

xSet:boolean

indicates whether the x parameter is valid

ySet:boolean

indicates whether the y parameter is valid

w:float

the new window width, ignored if set to -1

h:float

the new window height, ignored if set to -1

cw:float

the new window content width, ignored if set to -1

ch:float

the new window content height, ignored if set to -1

xGravity:float

the xGravity coefficient

yGravity:float

the yGravity coefficient

renderScaleX:float

new rendering scale, ignored if < 1

renderScaleY:float

new rendering scale, ignored if < 1

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
setFocusedback to summary
public void setFocused(final boolean focused, final int focusCause)

Implements com.sun.javafx.embed.EmbeddedStageInterface.setFocused.

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
setLocationback to summary
public void setLocation(final int x, final int y)

Implements com.sun.javafx.embed.EmbeddedStageInterface.setLocation.

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

Doc from 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
setSizeback to summary
public void setSize(final int width, final int height)

Implements com.sun.javafx.embed.EmbeddedStageInterface.setSize.

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

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

Annotations
@Override
setVisibleback to summary
public void setVisible(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

Parameters
visible:boolean

True if the stage should be visible

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