Top Description Inners Fields Constructors Methods
javafx.stage

public abstract Class PopupWindow

extends Window
Class Inheritance
Known Direct Subclasses
javafx.stage.Popup
Imports
com.sun.javafx.scene.TreeShowingProperty, .SceneHelper, com.sun.javafx.util.Utils, com.sun.javafx.event.DirectEvent, .EventHandlerManager, .EventRedirector, .EventUtil, java.util.ArrayList, .List, javafx.beans.InvalidationListener, .Observable, javafx.beans.property.BooleanProperty, .BooleanPropertyBase, .ObjectProperty, .ReadOnlyDoubleProperty, .ReadOnlyDoubleWrapper, .SimpleBooleanProperty, .SimpleObjectProperty, .ObjectPropertyBase, .ReadOnlyObjectProperty, .ReadOnlyObjectWrapper, javafx.beans.value.ChangeListener, .WeakChangeListener, javafx.collections.ObservableList, javafx.event.Event, .EventHandler, .EventTarget, .EventType, javafx.geometry.BoundingBox, .Bounds, .Rectangle2D, javafx.scene.Group, .Node, .Parent, .Scene, com.sun.javafx.perf.PerformanceTracker, com.sun.javafx.stage.FocusUngrabEvent, .PopupWindowPeerListener, .WindowCloseRequestHandler, .WindowEventDispatcher, .PopupWindowHelper, .WindowHelper, com.sun.javafx.tk.Toolkit, javafx.scene.input.KeyCombination, .KeyEvent, .InputMethodEvent, .MouseEvent, .ScrollEvent, javafx.scene.layout.Background, .Pane

PopupWindow is the parent for a variety of different types of popup based windows including Popup and javafx.scene.control.Tooltip and javafx.scene.control.ContextMenu.

A PopupWindow is a secondary window which has no window decorations or title bar. It doesn't show up in the OS as a top-level window. It is typically used for tool tip like notification, drop down boxes, menus, and so forth.

The PopupWindow cannot be shown without an owner. PopupWindows require that an owner window exist in order to be shown. However, it is possible to create a PopupWindow ahead of time and simply set the owner (or change the owner) before first being made visible. Attempting to change the owner while the PopupWindow is visible will result in an IllegalStateException.

The PopupWindow encapsulates much of the behavior and functionality common to popups, such as the ability to close when the "esc" key is pressed, or the ability to hide all child popup windows whenever this window is hidden. These abilities can be enabled or disabled via properties.

Since
JavaFX 2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
PopupWindow.AnchorLocation

Anchor location constants for popup anchor point selection.

pack-priv static class

Field Summary

Modifier and TypeField and Description
private final ObjectProperty<PopupWindow.AnchorLocation>
anchorLocation

Specifies the popup anchor point which is used in popup positioning.

private final ReadOnlyDoubleWrapper
anchorX

Specifies the x coordinate of the popup anchor point on the screen.

private final ReadOnlyDoubleWrapper
anchorY

Specifies the y coordinate of the popup anchor point on the screen.

private BooleanProperty
autoFix

This convenience variable indicates whether, when the popup is shown, it should automatically correct its position such that it doesn't end up positioned off the screen.

private boolean
private BooleanProperty
autoHide

Specifies whether Popups should auto hide.

private boolean
private Bounds
private Bounds
private ChangeListener<Boolean>
changeListener

JDK-8088846: When a parent node or parent window we are associated with is not visible anymore, possibly because the scene was not valid anymore, we should hide.

private final List<PopupWindow>
children

A private list of all child popups.

private BooleanProperty
consumeAutoHidingEvents

Specifies whether the event, which caused the Popup to hide, should be consumed.

private BooleanProperty
hideOnEscape

Specifies whether the PopupWindow should be hidden when an unhandled escape key is pressed while the popup has focus.

private ObjectProperty<EventHandler<Event>>
onAutoHide

Called after autoHide is run.

private ChangeListener<Boolean>
private ReadOnlyObjectWrapper<Node>
ownerNode

The node which is the owner of this popup.

private ReadOnlyObjectWrapper<Window>
ownerWindow

The window which is the parent of this popup.

private final InvalidationListener
popupWindowUpdater

Keeps track of the bounds of the content, and adjust the position and size of the popup window accordingly.

private Window
private TreeShowingProperty
private WeakChangeListener<Boolean>
Inherited from javafx.stage.Window:
hasBeenVisible

Constructor Summary

AccessConstructor and Description

Method Summary

Modifier and TypeMethod and Description
public final ObjectProperty<PopupWindow.AnchorLocation>
public final ReadOnlyDoubleProperty
public final ReadOnlyDoubleProperty
pack-priv void
applyStylesheetFromOwner(Window
the owner Window
owner
)

Applies the stylesheet from the scene of the root owner Window to the Scene associated with that window.

public final BooleanProperty
public final BooleanProperty
private void
bindOwnerFocusedProperty(final Window ownerWindowValue)

public final BooleanProperty
pack-priv WindowEventDispatcher
pack-priv void
private void
private void
private Bounds
public final PopupWindow.AnchorLocation
public final double
public final double
public final boolean
pack-priv ObservableList<Node>
private Bounds
public final EventHandler<Event>
public final Node
public final Window
private static Window
getRootWindow(Window
the Window for which to get the root window
win
)

Gets the root (non PopupWindow) Window for the provided window.

pack-priv Window
private void
handleAutofixActivation(final boolean visible, final boolean autofix)

private void
handleAutohideActivation(final boolean visible, final boolean autohide)

public void
hide()

Overrides javafx.stage.Window.hide.

Hide this Popup and all its children

public final BooleanProperty
public final boolean
public final boolean
public final boolean
pack-priv void
notifyLocationChanged(final double
the new window x position
newX
,
final double
the new window y position
newY
)

Overrides javafx.stage.Window.notifyLocationChanged.

Notification from the windowing system that the window's position has changed.

public final ObjectProperty<EventHandler<Event>>
public final ReadOnlyObjectProperty<Node>
public final ReadOnlyObjectProperty<Window>
public final void
public final void
setAnchorX(final double value)

public final void
setAnchorY(final double value)

public final void
setAutoFix(boolean value)

public final void
setAutoHide(boolean value)

public final void
public final void
setHideOnEscape(boolean value)

public final void
protected final void
setScene(Scene
the scene to be rendered on this window
scene
)

Overrides javafx.stage.Window.setScene.

Note to subclasses: the scene used by PopupWindow is very specifically managed by PopupWindow.

pack-priv void
setXInternal(final double value)

Overrides javafx.stage.Window.setXInternal.

pack-priv void
setYInternal(final double value)

Overrides javafx.stage.Window.setYInternal.

public void
show(Window
The owner of the popup. This must not be null.
owner
)

Show the popup.

public void
show(Node
The owner Node of the popup. It must not be null and must be associated with a Window.
ownerNode
,
double
the x position of the popup anchor in screen coordinates
anchorX
,
double
the y position of the popup anchor in screen coordinates
anchorY
)

Shows the popup at the specified location on the screen.

public void
show(Window
The owner of the popup. This must not be null.
ownerWindow
,
double
the x position of the popup anchor in screen coordinates
anchorX
,
double
the y position of the popup anchor in screen coordinates
anchorY
)

Shows the popup at the specified location on the screen.

private void
showImpl(final Window owner)

private void
startMonitorOwnerEvents(final Window ownerWindowValue)

private void
stopMonitorOwnerEvents(final Window ownerWindowValue)

private void
unbindOwnerFocusedProperty(final Window ownerWindowValue)

private Bounds
union(final Bounds bounds1, final Bounds bounds2)

private void
updateWindow(final double newAnchorX, final double newAnchorY)

private void
private double
windowToAnchorX(final double windowX)

private double
windowToAnchorY(final double windowY)

private static boolean
wouldCreateCycle(Window parent, final Window child)

Inherited from javafx.stage.Window:
addEventFilteraddEventHandlerapplyBoundsbuildEventDispatchChaincenterOnScreendecreaseFocusGrabCountereventDispatcherPropertyfireEventfocusedPropertyforceIntegerRenderScalePropertygetEventDispatchergetHeightgetInternalEventDispatchergetOnCloseRequestgetOnHiddengetOnHidinggetOnShowinggetOnShowngetOpacitygetOutputScaleXgetOutputScaleYgetPeergetPeerListenergetPropertiesgetRenderScaleXgetRenderScaleYgetScenegetUserDatagetWidthgetWindowsgetXgetYhasPropertiesheightPropertyincreaseFocusGrabCounterisFocusedisForceIntegerRenderScaleisShowingisSizeToSceneAllowednotifySizeChangedonCloseRequestPropertyonHiddenPropertyonHidingPropertyonShowingPropertyonShownPropertyopacityPropertyoutputScaleXPropertyoutputScaleYPropertyremoveEventFilterremoveEventHandlerrenderScaleXPropertyrenderScaleYPropertyrequestFocusscenePropertysetEventDispatchersetEventHandlersetFocusedsetForceIntegerRenderScalesetHeightsetOnCloseRequestsetOnHiddensetOnHidingsetOnShowingsetOnShownsetOpacitysetPeersetPeerListenersetRenderScaleXsetRenderScaleYsetUserDatasetWidthsetXsetYshowshowingPropertysizeToSceneupdateRenderScaleswidthPropertyxPropertyyProperty

Field Detail

anchorLocationback to summary
private final ObjectProperty<PopupWindow.AnchorLocation> anchorLocation

Specifies the popup anchor point which is used in popup positioning. The point can be set to a corner of the popup window or a corner of its content. In this context the content corners are derived from the popup root node's layout bounds.

In general changing of the anchor location won't change the current window position. Instead of that, the anchorX and anchorY values are recalculated to correspond to the new anchor point.

Since
JavaFX 8.0
anchorXback to summary
private final ReadOnlyDoubleWrapper anchorX

Specifies the x coordinate of the popup anchor point on the screen. If the anchorLocation is set to WINDOW_TOP_LEFT or WINDOW_BOTTOM_LEFT the x and anchorX values will be identical.

Since
JavaFX 8.0
anchorYback to summary
private final ReadOnlyDoubleWrapper anchorY

Specifies the y coordinate of the popup anchor point on the screen. If the anchorLocation is set to WINDOW_TOP_LEFT or WINDOW_TOP_RIGHT the y and anchorY values will be identical.

Since
JavaFX 8.0
autoFixback to summary
private BooleanProperty autoFix

This convenience variable indicates whether, when the popup is shown, it should automatically correct its position such that it doesn't end up positioned off the screen.

Default Value
true
autofixActiveback to summary
private boolean autofixActive
autoHideback to summary
private BooleanProperty autoHide

Specifies whether Popups should auto hide. If a popup loses focus and autoHide is true, then the popup will be hidden automatically.

The only exception is when owner Node is specified using show(javafx.scene.Node, double, double). Focusing owner Node will not hide the PopupWindow.

Default Value
false
autohideActiveback to summary
private boolean autohideActive
cachedAnchorBoundsback to summary
private Bounds cachedAnchorBounds
cachedExtendedBoundsback to summary
private Bounds cachedExtendedBounds
changeListenerback to summary
private ChangeListener<Boolean> changeListener

JDK-8088846: When a parent node or parent window we are associated with is not visible anymore, possibly because the scene was not valid anymore, we should hide.

childrenback to summary
private final List<PopupWindow> children

A private list of all child popups.

consumeAutoHidingEventsback to summary
private BooleanProperty consumeAutoHidingEvents

Specifies whether the event, which caused the Popup to hide, should be consumed. Having the event consumed prevents it from triggering some additional UI response in the Popup's owner window.

Default Value
true
Since
JavaFX 2.2
hideOnEscapeback to summary
private BooleanProperty hideOnEscape

Specifies whether the PopupWindow should be hidden when an unhandled escape key is pressed while the popup has focus.

Default Value
true
onAutoHideback to summary
private ObjectProperty<EventHandler<Event>> onAutoHide

Called after autoHide is run.

ownerFocusedListenerback to summary
private ChangeListener<Boolean> ownerFocusedListener
ownerNodeback to summary
private ReadOnlyObjectWrapper<Node> ownerNode

The node which is the owner of this popup. All popups must have an owner window but are not required to be associated with an owner node. If an autohide Popup has an owner node, mouse press inside the owner node doesn't cause the Popup to hide.

ownerWindowback to summary
private ReadOnlyObjectWrapper<Window> ownerWindow

The window which is the parent of this popup. All popups must have an owner window.

popupWindowUpdaterback to summary
private final InvalidationListener popupWindowUpdater

Keeps track of the bounds of the content, and adjust the position and size of the popup window accordingly. This way as the popup content changes, the window will be changed to match.

rootWindowback to summary
private Window rootWindow
treeShowingPropertyback to summary
private TreeShowingProperty treeShowingProperty
weakOwnerNodeListenerback to summary
private WeakChangeListener<Boolean> weakOwnerNodeListener

Constructor Detail

Method Detail

anchorLocationPropertyback to summary
public final ObjectProperty<PopupWindow.AnchorLocation> anchorLocationProperty()
anchorXPropertyback to summary
public final ReadOnlyDoubleProperty anchorXProperty()
anchorYPropertyback to summary
public final ReadOnlyDoubleProperty anchorYProperty()
applyStylesheetFromOwnerback to summary
pack-priv void applyStylesheetFromOwner(Window owner)

Applies the stylesheet from the scene of the root owner Window to the Scene associated with that window.

Parameters
owner:Window

the owner Window

autoFixPropertyback to summary
public final BooleanProperty autoFixProperty()
autoHidePropertyback to summary
public final BooleanProperty autoHideProperty()
bindOwnerFocusedPropertyback to summary
private void bindOwnerFocusedProperty(final Window ownerWindowValue)
consumeAutoHidingEventsPropertyback to summary
public final BooleanProperty consumeAutoHidingEventsProperty()
createInternalEventDispatcherback to summary
pack-priv WindowEventDispatcher createInternalEventDispatcher()

Overrides javafx.stage.Window.createInternalEventDispatcher.

Annotations
@Override
doAutoHideback to summary
pack-priv void doAutoHide()
doVisibleChangedback to summary
private void doVisibleChanged(boolean visible)

Hides javafx.stage.Window.doVisibleChanged.

doVisibleChangingback to summary
private void doVisibleChanging(boolean visible)

Hides javafx.stage.Window.doVisibleChanging.

getAnchorBoundsback to summary
private Bounds getAnchorBounds()
getAnchorLocationback to summary
public final PopupWindow.AnchorLocation getAnchorLocation()
getAnchorXback to summary
public final double getAnchorX()
getAnchorYback to summary
public final double getAnchorY()
getConsumeAutoHidingEventsback to summary
public final boolean getConsumeAutoHidingEvents()
getContentback to summary
pack-priv ObservableList<Node> getContent()
getExtendedBoundsback to summary
private Bounds getExtendedBounds()
getOnAutoHideback to summary
public final EventHandler<Event> getOnAutoHide()
getOwnerNodeback to summary
public final Node getOwnerNode()
getOwnerWindowback to summary
public final Window getOwnerWindow()
getRootWindowback to summary
private static Window getRootWindow(Window win)

Gets the root (non PopupWindow) Window for the provided window.

Parameters
win:Window

the Window for which to get the root window

getWindowOwnerback to summary
pack-priv Window getWindowOwner()

Overrides javafx.stage.Window.getWindowOwner.

Annotations
@Override
handleAutofixActivationback to summary
private void handleAutofixActivation(final boolean visible, final boolean autofix)
handleAutohideActivationback to summary
private void handleAutohideActivation(final boolean visible, final boolean autohide)
hideback to summary
public void hide()

Overrides javafx.stage.Window.hide.

Hide this Popup and all its children

Annotations
@Override
hideOnEscapePropertyback to summary
public final BooleanProperty hideOnEscapeProperty()
isAutoFixback to summary
public final boolean isAutoFix()
isAutoHideback to summary
public final boolean isAutoHide()
isHideOnEscapeback to summary
public final boolean isHideOnEscape()
notifyLocationChangedback to summary
pack-priv void notifyLocationChanged(final double newX, final double newY)

Overrides javafx.stage.Window.notifyLocationChanged.

Doc from javafx.stage.Window.notifyLocationChanged.

Notification from the windowing system that the window's position has changed.

Parameters
newX:double

the new window x position

newY:double

the new window y position

Annotations
@Override
onAutoHidePropertyback to summary
public final ObjectProperty<EventHandler<Event>> onAutoHideProperty()
ownerNodePropertyback to summary
public final ReadOnlyObjectProperty<Node> ownerNodeProperty()
ownerWindowPropertyback to summary
public final ReadOnlyObjectProperty<Window> ownerWindowProperty()
setAnchorLocationback to summary
public final void setAnchorLocation(final PopupWindow.AnchorLocation value)
setAnchorXback to summary
public final void setAnchorX(final double value)
setAnchorYback to summary
public final void setAnchorY(final double value)
setAutoFixback to summary
public final void setAutoFix(boolean value)
setAutoHideback to summary
public final void setAutoHide(boolean value)
setConsumeAutoHidingEventsback to summary
public final void setConsumeAutoHidingEvents(boolean value)
setHideOnEscapeback to summary
public final void setHideOnEscape(boolean value)
setOnAutoHideback to summary
public final void setOnAutoHide(EventHandler<Event> value)
setSceneback to summary
protected final void setScene(Scene scene)

Overrides javafx.stage.Window.setScene.

Note to subclasses: the scene used by PopupWindow is very specifically managed by PopupWindow. This method is overridden to throw UnsupportedOperationException. You cannot specify your own scene.

Parameters
scene:Scene

the scene to be rendered on this window

Annotations
@Override
setXInternalback to summary
pack-priv void setXInternal(final double value)

Overrides javafx.stage.Window.setXInternal.

Annotations
@Override
setYInternalback to summary
pack-priv void setYInternal(final double value)

Overrides javafx.stage.Window.setYInternal.

Annotations
@Override
showback to summary
public void show(Window owner)

Show the popup.

Parameters
owner:Window

The owner of the popup. This must not be null.

Exceptions
NullPointerException:
if owner is null
IllegalArgumentException:
if the specified owner window would create cycle in the window hierarchy
showback to summary
public void show(Node ownerNode, double anchorX, double anchorY)

Shows the popup at the specified location on the screen. The popup window is positioned in such way that its anchor point (anchorLocation) is displayed at the specified anchorX and anchorY coordinates.

The popup is associated with the specified owner node. The Window which contains the owner node at the time of the call becomes an owner window of the displayed popup.

Note that when autoHide is set to true, mouse press on the owner Node will not hide the PopupWindow.

Parameters
ownerNode:Node

The owner Node of the popup. It must not be null and must be associated with a Window.

anchorX:double

the x position of the popup anchor in screen coordinates

anchorY:double

the y position of the popup anchor in screen coordinates

Exceptions
NullPointerException:
if ownerNode is null
IllegalArgumentException:
if the specified owner node is not associated with a Window or when the window would create cycle in the window hierarchy
showback to summary
public void show(Window ownerWindow, double anchorX, double anchorY)

Shows the popup at the specified location on the screen. The popup window is positioned in such way that its anchor point (anchorLocation) is displayed at the specified anchorX and anchorY coordinates.

Parameters
ownerWindow:Window

The owner of the popup. This must not be null.

anchorX:double

the x position of the popup anchor in screen coordinates

anchorY:double

the y position of the popup anchor in screen coordinates

Exceptions
NullPointerException:
if ownerWindow is null
IllegalArgumentException:
if the specified owner window would create cycle in the window hierarchy
showImplback to summary
private void showImpl(final Window owner)
startMonitorOwnerEventsback to summary
private void startMonitorOwnerEvents(final Window ownerWindowValue)
stopMonitorOwnerEventsback to summary
private void stopMonitorOwnerEvents(final Window ownerWindowValue)
unbindOwnerFocusedPropertyback to summary
private void unbindOwnerFocusedProperty(final Window ownerWindowValue)
unionback to summary
private Bounds union(final Bounds bounds1, final Bounds bounds2)
updateWindowback to summary
private void updateWindow(final double newAnchorX, final double newAnchorY)
validateOwnerWindowback to summary
private void validateOwnerWindow(final Window owner)
windowToAnchorXback to summary
private double windowToAnchorX(final double windowX)
windowToAnchorYback to summary
private double windowToAnchorY(final double windowY)
wouldCreateCycleback to summary
private static boolean wouldCreateCycle(Window parent, final Window child)
javafx.stage back to summary

public final Enum PopupWindow.AnchorLocation

extends Enum<PopupWindow.AnchorLocation>
Class Inheritance

Anchor location constants for popup anchor point selection.
Since
JavaFX 8.0

Field Summary

Modifier and TypeField and Description
public static final PopupWindow.AnchorLocation
CONTENT_BOTTOM_LEFT

Represents bottom left content corner.

public static final PopupWindow.AnchorLocation
CONTENT_BOTTOM_RIGHT

Represents bottom right content corner.

public static final PopupWindow.AnchorLocation
CONTENT_TOP_LEFT

Represents top left content corner.

public static final PopupWindow.AnchorLocation
CONTENT_TOP_RIGHT

Represents top right content corner.

private final boolean
public static final PopupWindow.AnchorLocation
WINDOW_BOTTOM_LEFT

Represents bottom left window corner.

public static final PopupWindow.AnchorLocation
WINDOW_BOTTOM_RIGHT

Represents bottom right window corner.

public static final PopupWindow.AnchorLocation
WINDOW_TOP_LEFT

Represents top left window corner.

public static final PopupWindow.AnchorLocation
WINDOW_TOP_RIGHT

Represents top right window corner.

private final double
private final double

Constructor Summary

AccessConstructor and Description
private
AnchorLocation(final double xCoef, final double yCoef, final boolean contentLocation)

Method Summary

Modifier and TypeMethod and Description
pack-priv double
pack-priv double
pack-priv boolean
public static PopupWindow.AnchorLocation
public static PopupWindow.AnchorLocation[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CONTENT_BOTTOM_LEFTback to summary
public static final PopupWindow.AnchorLocation CONTENT_BOTTOM_LEFT

Represents bottom left content corner.

CONTENT_BOTTOM_RIGHTback to summary
public static final PopupWindow.AnchorLocation CONTENT_BOTTOM_RIGHT

Represents bottom right content corner.

CONTENT_TOP_LEFTback to summary
public static final PopupWindow.AnchorLocation CONTENT_TOP_LEFT

Represents top left content corner.

CONTENT_TOP_RIGHTback to summary
public static final PopupWindow.AnchorLocation CONTENT_TOP_RIGHT

Represents top right content corner.

contentLocationback to summary
private final boolean contentLocation
WINDOW_BOTTOM_LEFTback to summary
public static final PopupWindow.AnchorLocation WINDOW_BOTTOM_LEFT

Represents bottom left window corner.

WINDOW_BOTTOM_RIGHTback to summary
public static final PopupWindow.AnchorLocation WINDOW_BOTTOM_RIGHT

Represents bottom right window corner.

WINDOW_TOP_LEFTback to summary
public static final PopupWindow.AnchorLocation WINDOW_TOP_LEFT

Represents top left window corner.

WINDOW_TOP_RIGHTback to summary
public static final PopupWindow.AnchorLocation WINDOW_TOP_RIGHT

Represents top right window corner.

xCoefback to summary
private final double xCoef
yCoefback to summary
private final double yCoef

Constructor Detail

AnchorLocationback to summary
private AnchorLocation(final double xCoef, final double yCoef, final boolean contentLocation)

Method Detail

getXCoefback to summary
pack-priv double getXCoef()
getYCoefback to summary
pack-priv double getYCoef()
isContentLocationback to summary
pack-priv boolean isContentLocation()
valueOfback to summary
public static PopupWindow.AnchorLocation valueOf(String name)
valuesback to summary
public static PopupWindow.AnchorLocation[] values()
javafx.stage back to summary

pack-priv Class PopupWindow.PopupEventRedirector

extends EventRedirector
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final KeyCombination
private final PopupWindow

Constructor Summary

AccessConstructor and Description
public
PopupEventRedirector(final PopupWindow popupWindow)

Method Summary

Modifier and TypeMethod and Description
private void
handleAutoHidingEvents(final Object eventSource, final Event event)

private void
private void
private void
private void
handleKeyEvent(final KeyEvent event)

protected void
handleRedirectedEvent(final Object
the object from which the event has been redirected
eventSource
,
final Event
the event which has been redirected
event
)

Overrides com.sun.javafx.event.EventRedirector.handleRedirectedEvent.

Called when a redirected event is received by this instance.

private boolean
isOwnerNodeEvent(final Event event)

Inherited from com.sun.javafx.event.EventRedirector:
addEventDispatcherdispatchCapturingEventremoveEventDispatcher

Field Detail

ESCAPE_KEY_COMBINATIONback to summary
private static final KeyCombination ESCAPE_KEY_COMBINATION
popupWindowback to summary
private final PopupWindow popupWindow

Constructor Detail

PopupEventRedirectorback to summary
public PopupEventRedirector(final PopupWindow popupWindow)

Method Detail

handleAutoHidingEventsback to summary
private void handleAutoHidingEvents(final Object eventSource, final Event event)
handleEscapeKeyPressedEventback to summary
private void handleEscapeKeyPressedEvent(final Event event)
handleFocusUngrabEventback to summary
private void handleFocusUngrabEvent()
handleInputMethodEventback to summary
private void handleInputMethodEvent(final InputMethodEvent event)
handleKeyEventback to summary
private void handleKeyEvent(final KeyEvent event)
handleRedirectedEventback to summary
protected void handleRedirectedEvent(final Object eventSource, final Event event)

Overrides com.sun.javafx.event.EventRedirector.handleRedirectedEvent.

Doc from com.sun.javafx.event.EventRedirector.handleRedirectedEvent.

Called when a redirected event is received by this instance.

Parameters
eventSource:Object

the object from which the event has been redirected

event:Event

the event which has been redirected

Annotations
@Override
isOwnerNodeEventback to summary
private boolean isOwnerNodeEvent(final Event event)