|
Spec-Zone .ru
спецификации, руководства, описания, API
|
private class FXCanvas.HostContainer
extends java.lang.Object
implements com.sun.javafx.embed.HostInterface
| Modifier and Type | Method and Description |
|---|---|
boolean |
grabFocus()
Grabs focus on this window.
|
void |
repaint() |
boolean |
requestFocus() |
void |
setCursor(com.sun.javafx.cursor.CursorFrame cursorFrame) |
void |
setEmbeddedScene(com.sun.javafx.embed.EmbeddedSceneInterface embeddedScene) |
void |
setEmbeddedStage(com.sun.javafx.embed.EmbeddedStageInterface embeddedStage) |
void |
setEnabled(boolean bln) |
void |
setPreferredSize(int width,
int height) |
boolean |
traverseFocusOut(boolean bln) |
void |
ungrabFocus()
Manually ungrabs focus grabbed on this window previously.
|
public void setEmbeddedStage(com.sun.javafx.embed.EmbeddedStageInterface embeddedStage)
setEmbeddedStage in interface com.sun.javafx.embed.HostInterfacepublic void setEmbeddedScene(com.sun.javafx.embed.EmbeddedSceneInterface embeddedScene)
setEmbeddedScene in interface com.sun.javafx.embed.HostInterfacepublic boolean requestFocus()
requestFocus in interface com.sun.javafx.embed.HostInterfacepublic boolean traverseFocusOut(boolean bln)
traverseFocusOut in interface com.sun.javafx.embed.HostInterfacepublic void repaint()
repaint in interface com.sun.javafx.embed.HostInterfacepublic void setPreferredSize(int width,
int height)
setPreferredSize in interface com.sun.javafx.embed.HostInterfacepublic void setEnabled(boolean bln)
setEnabled in interface com.sun.javafx.embed.HostInterfacepublic void setCursor(com.sun.javafx.cursor.CursorFrame cursorFrame)
setCursor in interface com.sun.javafx.embed.HostInterfacepublic boolean grabFocus()
com.sun.javafx.embed.HostInterface#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 HostInterface.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.grabFocus in interface com.sun.javafx.embed.HostInterfacetrue if the operation is successfulpublic void ungrabFocus()
com.sun.javafx.embed.HostInterfaceungrabFocus in interface com.sun.javafx.embed.HostInterfaceHostInterface.grabFocus()Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to .