Class PopupControl
- All Implemented Interfaces:
HasHeightProperty,HasSceneProperty,HasWidthProperty,Styleable,EventTarget,Skinnable
- Direct Known Subclasses:
ContextMenu,Tooltip
- Since:
- JavaFX 2.0
-
Property Summary
PropertiesTypePropertyDescriptionfinal StringPropertyThe id of thisPopupControl.final DoublePropertyProperty for overriding the control's computed maximum height.final DoublePropertyProperty for overriding the control's computed maximum width.final DoublePropertyProperty for overriding the control's computed minimum height.final DoublePropertyProperty for overriding the control's computed minimum width.final DoublePropertyProperty for overriding the control's computed preferred height.final DoublePropertyProperty for overriding the control's computed preferred width.final ObjectProperty<Skin<?>>Skin is responsible for rendering thisPopupControl.final StringPropertyProperties inherited from class javafx.stage.PopupWindow
anchorLocation, anchorX, anchorY, autoHide, consumeAutoHidingEvents, ownerNode, ownerWindowProperties inherited from class javafx.stage.Window
eventDispatcher, focused, height, onCloseRequest, scene, showing, width, x, y -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThe link between the popup window and the scenegraph.Nested classes/interfaces inherited from class javafx.stage.PopupWindow
PopupWindow.AnchorLocation -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PopupControl.CSSBridgeWe need a special root node, except we can't replace the special root node already in the PopupControl.static final doubleSentinel value which can be passed to a control's setMinWidth(), setMinHeight(), setPrefWidth(), setPrefHeight(), setMaxWidth(), setMaxHeight() methods to reset the control's size constraint back to it's intrinsic size returned by computeMinWidth(), computeMinHeight(), computePrefWidth(), computePrefHeight(), computeMaxWidth(), or computeMaxHeight().static final doubleSentinel value which can be passed to a control's setMinWidth(), setMinHeight(), setMaxWidth() or setMaxHeight() methods to indicate that the preferred dimension should be used for that max and/or min constraint.Fields inherited from class javafx.stage.Window
impl_peer, peerListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Skin<?>Create a new instance of the default skin for this control.final StringgetId()The id of thisPopupControl.final doubleProperty for overriding the control's computed maximum height.final doubleProperty for overriding the control's computed maximum width.final doubleProperty for overriding the control's computed minimum height.final doubleProperty for overriding the control's computed minimum width.final doubleProperty for overriding the control's computed preferred height.final doubleProperty for overriding the control's computed preferred width.final Skin<?>getSkin()Gets the value of theskinproperty.final StringgetStyle()A string representation of the CSS style associated with this specificPopupControl.final ObservableList<String>Returns the list of String identifiers that make up the styleClass for this PopupControl.final StringPropertyThe id of thisPopupControl.final doublemaxHeight(double width) Called during layout to determine the maximum height for this node.final DoublePropertyProperty for overriding the control's computed maximum height.final doublemaxWidth(double height) Called during layout to determine the maximum width for this node.final DoublePropertyProperty for overriding the control's computed maximum width.final doubleminHeight(double width) Called during layout to determine the minimum height for this node.final DoublePropertyProperty for overriding the control's computed minimum height.final doubleminWidth(double height) Called during layout to determine the minimum width for this node.final DoublePropertyProperty for overriding the control's computed minimum width.final doubleprefHeight(double width) Called during layout to determine the preferred height for this node.final DoublePropertyProperty for overriding the control's computed preferred height.final doubleprefWidth(double height) Called during layout to determine the preferred width for this node.final DoublePropertyProperty for overriding the control's computed preferred width.final voidSets the id of thisPopupControl.final voidsetMaxHeight(double value) Property for overriding the control's computed maximum height.voidsetMaxSize(double maxWidth, double maxHeight) Convenience method for overriding the control's computed maximum width and height.final voidsetMaxWidth(double value) Property for overriding the control's computed maximum width.final voidsetMinHeight(double value) Property for overriding the control's computed minimum height.voidsetMinSize(double minWidth, double minHeight) Convenience method for overriding the control's computed minimum width and height.final voidsetMinWidth(double value) Property for overriding the control's computed minimum width.final voidsetPrefHeight(double value) Property for overriding the control's computed preferred height.voidsetPrefSize(double prefWidth, double prefHeight) Convenience method for overriding the control's computed preferred width and height.final voidsetPrefWidth(double value) Property for overriding the control's computed preferred width.final voidSets the value of theskinproperty.final voidA string representation of the CSS style associated with this specificPopupControl.voidShows the popup at the specified location on the screen.voidShow the popup.voidShows the popup at the specified location on the screen.final ObjectProperty<Skin<?>>Skin is responsible for rendering thisPopupControl.final StringPropertyMethods inherited from class javafx.stage.PopupWindow
anchorLocationProperty, anchorXProperty, anchorYProperty, autoHideProperty, consumeAutoHidingEventsProperty, getAnchorLocation, getAnchorX, getAnchorY, getConsumeAutoHidingEvents, getOwnerNode, getOwnerWindow, hide, isAutoHide, ownerNodeProperty, ownerWindowProperty, setAnchorLocation, setAnchorX, setAnchorY, setAutoHide, setConsumeAutoHidingEvents, setSceneMethods inherited from class javafx.stage.Window
addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, createPeer, eventDispatcherProperty, fireEvent, focusedProperty, getEventDispatcher, getOnCloseRequest, getX, getY, heightProperty, impl_getPeer, isFocused, isShowing, notifySizeChanged, onCloseRequestProperty, removeEventFilter, removeEventHandler, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setHeight, setOnCloseRequest, setWidth, setX, setY, show, showingProperty, sizeToScene, widthProperty, xProperty, yPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasHeightProperty
getHeight, setHeightMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasSceneProperty
getSceneMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasWidthProperty
getWidth, setWidth
-
Property Details
-
id
The id of thisPopupControl. This simple string identifier is useful for finding a specific Node within the scene graph. While the id of a Node should be unique within the scene graph, this uniqueness is not enforced. This is analogous to the "id" attribute on an HTML element (CSS ID Specification).- Default value:
- null
- See Also:
-
style
- See Also:
-
skin
Skin is responsible for rendering thisPopupControl. From the perspective of thePopupControl, theSkinis a black box. It listens and responds to changes in state in aPopupControl.There is a one-to-one relationship between a
PopupControland itsSkin. EverySkinmaintains a back reference to thePopupControl.A skin may be null.
- Specified by:
skinPropertyin interfaceSkinnable- See Also:
-
minWidth
Property for overriding the control's computed minimum width. This should only be set if the control's internally computed minimum width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMinWidth(forHeight)will return the control's internally computed minimum width.Setting this value to the
USE_PREF_SIZEflag will causegetMinWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control. -
minHeight
Property for overriding the control's computed minimum height. This should only be set if the control's internally computed minimum height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMinHeight(forWidth)will return the control's internally computed minimum height.Setting this value to the
USE_PREF_SIZEflag will causegetMinHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control. -
prefWidth
Property for overriding the control's computed preferred width. This should only be set if the control's internally computed preferred width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetPrefWidth(forHeight)will return the control's internally computed preferred width. -
prefHeight
Property for overriding the control's computed preferred height. This should only be set if the control's internally computed preferred height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetPrefHeight(forWidth)will return the control's internally computed preferred width. -
maxWidth
Property for overriding the control's computed maximum width. This should only be set if the control's internally computed maximum width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMaxWidth(forHeight)will return the control's internally computed maximum width.Setting this value to the
USE_PREF_SIZEflag will causegetMaxWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control. -
maxHeight
Property for overriding the control's computed maximum height. This should only be set if the control's internally computed maximum height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMaxHeight(forWidth)will return the control's internally computed maximum height.Setting this value to the
USE_PREF_SIZEflag will causegetMaxHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control.
-
-
Field Details
-
USE_PREF_SIZE
public static final double USE_PREF_SIZESentinel value which can be passed to a control's setMinWidth(), setMinHeight(), setMaxWidth() or setMaxHeight() methods to indicate that the preferred dimension should be used for that max and/or min constraint.- See Also:
-
USE_COMPUTED_SIZE
public static final double USE_COMPUTED_SIZESentinel value which can be passed to a control's setMinWidth(), setMinHeight(), setPrefWidth(), setPrefHeight(), setMaxWidth(), setMaxHeight() methods to reset the control's size constraint back to it's intrinsic size returned by computeMinWidth(), computeMinHeight(), computePrefWidth(), computePrefHeight(), computeMaxWidth(), or computeMaxHeight().- See Also:
-
bridge
We need a special root node, except we can't replace the special root node already in the PopupControl. So we'll set our own special almost-root node that is a child of the root. This special root node is responsible for mapping the id, styleClass, and style defined on the PopupControl such that CSS will read the values from the PopupControl, and then apply CSS state to that special node. The node will then be able to pass impl_cssSet calls along, such that any subclass of PopupControl will be able to use the Styleable properties and we'll be able to style it from CSS, in such a way that it participates and applies to the skin, exactly the way that normal Skin's work for normal Controls.- Since:
- JavaFX 2.1
-
-
Constructor Details
-
PopupControl
public PopupControl()Create a new empty PopupControl.
-
-
Method Details
-
idProperty
The id of thisPopupControl. This simple string identifier is useful for finding a specific Node within the scene graph. While the id of a Node should be unique within the scene graph, this uniqueness is not enforced. This is analogous to the "id" attribute on an HTML element (CSS ID Specification).- Default value:
- null
- Returns:
- the
idproperty - See Also:
-
setId
Sets the id of thisPopupControl. This simple string identifier is useful for finding a specific Node within the scene graph. While the id of a Node should be unique within the scene graph, this uniqueness is not enforced. This is analogous to the "id" attribute on an HTML element (CSS ID Specification).- Default value:
- null
- Parameters:
value- the id assigned to thisPopupControlusing thesetIdmethod ornull, if no id has been assigned.
-
getId
The id of thisPopupControl. This simple string identifier is useful for finding a specific Node within the scene graph. While the id of a Node should be unique within the scene graph, this uniqueness is not enforced. This is analogous to the "id" attribute on an HTML element (CSS ID Specification). -
getStyleClass
Returns the list of String identifiers that make up the styleClass for this PopupControl.- Specified by:
getStyleClassin interfaceStyleable- See Also:
-
setStyle
A string representation of the CSS style associated with this specificPopupControl. This is analogous to the "style" attribute of an HTML element. Note that, like the HTML style attribute, this variable contains style properties and values and not the selector portion of a style rule.- Default value:
- empty string
- Parameters:
value- The inline CSS style to use for thisPopupControl.nullis implicitly converted to an empty String.
-
getStyle
A string representation of the CSS style associated with this specificPopupControl. This is analogous to the "style" attribute of an HTML element. Note that, like the HTML style attribute, this variable contains style properties and values and not the selector portion of a style rule. -
styleProperty
- Returns:
- the
styleproperty - See Also:
-
skinProperty
Skin is responsible for rendering thisPopupControl. From the perspective of thePopupControl, theSkinis a black box. It listens and responds to changes in state in aPopupControl.There is a one-to-one relationship between a
PopupControland itsSkin. EverySkinmaintains a back reference to thePopupControl.A skin may be null.
- Specified by:
skinPropertyin interfaceSkinnable- Returns:
- the
skinproperty - See Also:
-
setSkin
Sets the value of theskinproperty.- Specified by:
setSkinin interfaceSkinnable- Property description:
- Skin is responsible for rendering this
PopupControl. From the perspective of thePopupControl, theSkinis a black box. It listens and responds to changes in state in aPopupControl.There is a one-to-one relationship between a
PopupControland itsSkin. EverySkinmaintains a back reference to thePopupControl.A skin may be null.
- Parameters:
value- the value for theskinproperty- See Also:
-
getSkin
Gets the value of theskinproperty.- Specified by:
getSkinin interfaceSkinnable- Property description:
- Skin is responsible for rendering this
PopupControl. From the perspective of thePopupControl, theSkinis a black box. It listens and responds to changes in state in aPopupControl.There is a one-to-one relationship between a
PopupControland itsSkin. EverySkinmaintains a back reference to thePopupControl.A skin may be null.
- Returns:
- the value of the
skinproperty - See Also:
-
setMinWidth
public final void setMinWidth(double value) Property for overriding the control's computed minimum width. This should only be set if the control's internally computed minimum width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMinWidth(forHeight)will return the control's internally computed minimum width.Setting this value to the
USE_PREF_SIZEflag will causegetMinWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control. -
getMinWidth
public final double getMinWidth()Property for overriding the control's computed minimum width. This should only be set if the control's internally computed minimum width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMinWidth(forHeight)will return the control's internally computed minimum width.Setting this value to the
USE_PREF_SIZEflag will causegetMinWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control. -
minWidthProperty
Property for overriding the control's computed minimum width. This should only be set if the control's internally computed minimum width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMinWidth(forHeight)will return the control's internally computed minimum width.Setting this value to the
USE_PREF_SIZEflag will causegetMinWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control.- Returns:
- the
minWidthproperty - See Also:
-
setMinHeight
public final void setMinHeight(double value) Property for overriding the control's computed minimum height. This should only be set if the control's internally computed minimum height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMinHeight(forWidth)will return the control's internally computed minimum height.Setting this value to the
USE_PREF_SIZEflag will causegetMinHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control. -
getMinHeight
public final double getMinHeight()Property for overriding the control's computed minimum height. This should only be set if the control's internally computed minimum height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMinHeight(forWidth)will return the control's internally computed minimum height.Setting this value to the
USE_PREF_SIZEflag will causegetMinHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control. -
minHeightProperty
Property for overriding the control's computed minimum height. This should only be set if the control's internally computed minimum height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMinHeight(forWidth)will return the control's internally computed minimum height.Setting this value to the
USE_PREF_SIZEflag will causegetMinHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control.- Returns:
- the
minHeightproperty - See Also:
-
setMinSize
public void setMinSize(double minWidth, double minHeight) Convenience method for overriding the control's computed minimum width and height. This should only be called if the control's internally computed minimum size doesn't meet the application's layout needs.- Parameters:
minWidth- the override value for minimum widthminHeight- the override value for minimum height- See Also:
-
setPrefWidth
public final void setPrefWidth(double value) Property for overriding the control's computed preferred width. This should only be set if the control's internally computed preferred width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetPrefWidth(forHeight)will return the control's internally computed preferred width. -
getPrefWidth
public final double getPrefWidth()Property for overriding the control's computed preferred width. This should only be set if the control's internally computed preferred width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetPrefWidth(forHeight)will return the control's internally computed preferred width. -
prefWidthProperty
Property for overriding the control's computed preferred width. This should only be set if the control's internally computed preferred width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetPrefWidth(forHeight)will return the control's internally computed preferred width.- Returns:
- the
prefWidthproperty - See Also:
-
setPrefHeight
public final void setPrefHeight(double value) Property for overriding the control's computed preferred height. This should only be set if the control's internally computed preferred height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetPrefHeight(forWidth)will return the control's internally computed preferred width. -
getPrefHeight
public final double getPrefHeight()Property for overriding the control's computed preferred height. This should only be set if the control's internally computed preferred height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetPrefHeight(forWidth)will return the control's internally computed preferred width. -
prefHeightProperty
Property for overriding the control's computed preferred height. This should only be set if the control's internally computed preferred height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetPrefHeight(forWidth)will return the control's internally computed preferred width.- Returns:
- the
prefHeightproperty - See Also:
-
setPrefSize
public void setPrefSize(double prefWidth, double prefHeight) Convenience method for overriding the control's computed preferred width and height. This should only be called if the control's internally computed preferred size doesn't meet the application's layout needs.- Parameters:
prefWidth- the override value for preferred widthprefHeight- the override value for preferred height- See Also:
-
setMaxWidth
public final void setMaxWidth(double value) Property for overriding the control's computed maximum width. This should only be set if the control's internally computed maximum width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMaxWidth(forHeight)will return the control's internally computed maximum width.Setting this value to the
USE_PREF_SIZEflag will causegetMaxWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control. -
getMaxWidth
public final double getMaxWidth()Property for overriding the control's computed maximum width. This should only be set if the control's internally computed maximum width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMaxWidth(forHeight)will return the control's internally computed maximum width.Setting this value to the
USE_PREF_SIZEflag will causegetMaxWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control. -
maxWidthProperty
Property for overriding the control's computed maximum width. This should only be set if the control's internally computed maximum width doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMaxWidth(forHeight)will return the control's internally computed maximum width.Setting this value to the
USE_PREF_SIZEflag will causegetMaxWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control.- Returns:
- the
maxWidthproperty - See Also:
-
setMaxHeight
public final void setMaxHeight(double value) Property for overriding the control's computed maximum height. This should only be set if the control's internally computed maximum height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMaxHeight(forWidth)will return the control's internally computed maximum height.Setting this value to the
USE_PREF_SIZEflag will causegetMaxHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control. -
getMaxHeight
public final double getMaxHeight()Property for overriding the control's computed maximum height. This should only be set if the control's internally computed maximum height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMaxHeight(forWidth)will return the control's internally computed maximum height.Setting this value to the
USE_PREF_SIZEflag will causegetMaxHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control. -
maxHeightProperty
Property for overriding the control's computed maximum height. This should only be set if the control's internally computed maximum height doesn't meet the application's layout needs.Defaults to the
USE_COMPUTED_SIZEflag, which means thatgetMaxHeight(forWidth)will return the control's internally computed maximum height.Setting this value to the
USE_PREF_SIZEflag will causegetMaxHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control.- Returns:
- the
maxHeightproperty - See Also:
-
setMaxSize
public void setMaxSize(double maxWidth, double maxHeight) Convenience method for overriding the control's computed maximum width and height. This should only be called if the control's internally computed maximum size doesn't meet the application's layout needs.- Parameters:
maxWidth- the override value for maximum widthmaxHeight- the override value for maximum height- See Also:
-
minWidth
public final double minWidth(double height) Called during layout to determine the minimum width for this node. Returns the value fromminWidth(forHeight)unless the application overrode the minimum width by setting the minWidth property.- Parameters:
height- the height- Returns:
- the minimum width that this node should be resized to during layout
- See Also:
-
minHeight
public final double minHeight(double width) Called during layout to determine the minimum height for this node. Returns the value fromminHeight(forWidth)unless the application overrode the minimum height by setting the minHeight property.- Parameters:
width- The width- Returns:
- the minimum height that this node should be resized to during layout
- See Also:
-
prefWidth
public final double prefWidth(double height) Called during layout to determine the preferred width for this node. Returns the value fromprefWidth(forHeight)unless the application overrode the preferred width by setting the prefWidth property.- Parameters:
height- the height- Returns:
- the preferred width that this node should be resized to during layout
- See Also:
-
prefHeight
public final double prefHeight(double width) Called during layout to determine the preferred height for this node. Returns the value fromprefHeight(forWidth)unless the application overrode the preferred height by setting the prefHeight property.- Parameters:
width- the width- Returns:
- the preferred height that this node should be resized to during layout
- See Also:
-
maxWidth
public final double maxWidth(double height) Called during layout to determine the maximum width for this node. Returns the value frommaxWidth(forHeight)unless the application overrode the maximum width by setting the maxWidth property.- Parameters:
height- the height- Returns:
- the maximum width that this node should be resized to during layout
- See Also:
-
maxHeight
public final double maxHeight(double width) Called during layout to determine the maximum height for this node. Returns the value frommaxHeight(forWidth)unless the application overrode the maximum height by setting the maxHeight property.- Parameters:
width- the width- Returns:
- the maximum height that this node should be resized to during layout
- See Also:
-
createDefaultSkin
Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS-fx-skinor set explicitly in a sub-class withsetSkin(...).- Returns:
- new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.
- Since:
- JavaFX 8.0
-
show
Description copied from class:PopupWindowShow the popup.- Overrides:
showin classPopupWindow- Parameters:
owner- The owner of the popup. This must not be null.
-
show
Description copied from class:PopupWindowShows the popup at the specified location on the screen. The popup window is positioned in such way that its anchor point () is displayed at the specifiedanchorXandanchorYcoordinates.- Overrides:
showin classPopupWindow- Parameters:
ownerWindow- The owner of the popup. This must not be null.anchorX- the x position of the popup anchor in screen coordinatesanchorY- the y position of the popup anchor in screen coordinates
-
show
Description copied from class:PopupWindowShows the popup at the specified location on the screen. The popup window is positioned in such way that its anchor point () is displayed at the specifiedanchorXandanchorYcoordinates.The popup is associated with the specified owner node. The
Windowwhich contains the owner node at the time of the call becomes an owner window of the displayed popup.Note that when
PopupWindow.autoHideProperty()is set to true, mouse press on the owner Node will not hide the PopupWindow.- Overrides:
showin classPopupWindow- Parameters:
ownerNode- The owner Node of the popup. It must not be null and must be associated with a Window.anchorX- the x position of the popup anchor in screen coordinatesanchorY- the y position of the popup anchor in screen coordinates
-