| Modifier and Type | Field and Description |
|---|---|
| public static final KeyCodeCombination |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public default void | |
| public TKScene | Returns: scenePeer The peer of the scene to be displayedCreates a Scene peer that can be displayed in this Stage peer. |
| public float | |
| public float | |
| public float | |
| public float | |
| public long | Returns: platform window id, or 0L if there is none.Return a handle to the native platform window id. |
| public boolean | |
| public default void | |
| public void | |
| public void | |
| 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)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)Sets the window bounds to the specified values. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setTKStageListener(TKStageListener
The listener provided by the stage listener)Listener for this stage peer to pass updates and events back to the stage |
| public void | |
| public void | |
| public void | |
| public void |
| defaultFullScreenExitKeycombo | back to summary |
|---|---|
| public static final KeyCodeCombination defaultFullScreenExitKeycombo | |
| close | back to summary |
|---|---|
| public void close() | |
| closePostponed | back to summary |
|---|---|
| public default void closePostponed() | |
| createTKScene | back to summary |
|---|---|
| public TKScene createTKScene(boolean depthBuffer, boolean msaa) Creates a Scene peer that can be displayed in this Stage peer.
| |
| getOutputScaleX | back to summary |
|---|---|
| public float getOutputScaleX() | |
| getOutputScaleY | back to summary |
|---|---|
| public float getOutputScaleY() | |
| getPlatformScaleX | back to summary |
|---|---|
| public float getPlatformScaleX() | |
| getPlatformScaleY | back to summary |
|---|---|
| public float getPlatformScaleY() | |
| getRawHandle | back to summary |
|---|---|
| public long getRawHandle() Return a handle to the native platform window id.
| |
| grabFocus | back to summary |
|---|---|
| public boolean 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
| |
| postponeClose | back to summary |
|---|---|
| public default void postponeClose() | |
| releaseInput | back to summary |
|---|---|
| public void releaseInput() Native keyboard for text input is no longer necessary. Keyboard will be hidden and native text input component too. | |
| requestFocus | back to summary |
|---|---|
| public void requestFocus() | |
| requestFocus | back to summary |
|---|---|
| public void requestFocus(FocusCause cause) | |
| requestInput | back 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) 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.
| |
| setAlwaysOnTop | back to summary |
|---|---|
| public void setAlwaysOnTop(boolean alwaysOnTop) | |
| setBounds | back 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) 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:
| |
| setEnabled | back to summary |
|---|---|
| public void setEnabled(boolean enabled) Whether mouse/keyboard events should be sent to this window. | |
| setFullScreen | back to summary |
|---|---|
| public void setFullScreen(boolean fullScreen) | |
| setIconified | back to summary |
|---|---|
| public void setIconified(boolean iconified) | |
| setIcons | back to summary |
|---|---|
| public void setIcons(List<E> icons) | |
| setImportant | back to summary |
|---|---|
| public void setImportant(boolean important) | |
| setMaximized | back to summary |
|---|---|
| public void setMaximized(boolean maximized) | |
| setMaximumSize | back to summary |
|---|---|
| public void setMaximumSize(int maxWidth, int maxHeight) | |
| setMinimumSize | back to summary |
|---|---|
| public void setMinimumSize(int minWidth, int minHeight) | |
| setOpacity | back to summary |
|---|---|
| public void setOpacity(float opacity) | |
| setPrefHeaderButtonHeight | back to summary |
|---|---|
| public void setPrefHeaderButtonHeight(double height) | |
| setResizable | back to summary |
|---|---|
| public void setResizable(boolean resizable) | |
| setRTL | back to summary |
|---|---|
| public void setRTL(boolean b) | |
| setScene | back to summary |
|---|---|
| public void setScene(TKScene scene) Set the scene to be displayed in this stage
| |
| setTitle | back to summary |
|---|---|
| public void setTitle(String title) | |
| setTKStageListener | back to summary |
|---|---|
| public void setTKStageListener(TKStageListener listener) Listener for this stage peer to pass updates and events back to the stage
| |
| setVisible | back to summary |
|---|---|
| public void setVisible(boolean visible) Set if the stage is visible on screen
| |
| toBack | back to summary |
|---|---|
| public void toBack() | |
| toFront | back to summary |
|---|---|
| public void toFront() | |
| ungrabFocus | back to summary |
|---|---|
| public void 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.
| |