Class PopupControl
- All Implemented Interfaces:
-
Styleable,EventTarget,Skinnable
- Direct Known Subclasses:
-
ContextMenu,Tooltip
public class PopupControl extends PopupWindow implements Skinnable, Styleable
- Since:
- JavaFX 2.0
Property Summary
| Type | Property | Description |
|---|---|---|
final StringProperty |
id |
The id of this PopupControl. |
final DoubleProperty |
maxHeight |
Property for overriding the control's computed maximum height. |
final DoubleProperty |
maxWidth |
Property for overriding the control's computed maximum width. |
final DoubleProperty |
minHeight |
Property for overriding the control's computed minimum height. |
final DoubleProperty |
minWidth |
Property for overriding the control's computed minimum width. |
final DoubleProperty |
prefHeight |
Property for overriding the control's computed preferred height. |
final DoubleProperty |
prefWidth |
Property for overriding the control's computed preferred width. |
final ObjectProperty<Skin<?>> |
skin |
Skin is responsible for rendering this PopupControl. |
final StringProperty |
style |
A string representation of the CSS style associated with this specific PopupControl. |
Properties declared in class javafx.stage.PopupWindow
anchorLocation, anchorX, anchorY, autoFix, autoHide, consumeAutoHidingEvents, hideOnEscape, onAutoHide, ownerNode, ownerWindow
Properties declared in class javafx.stage.Window
eventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y
Nested Class Summary
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
PopupControl.CSSBridge |
The link between the popup window and the scenegraph. |
Nested classes/interfaces declared in class javafx.stage.PopupWindow
PopupWindow.AnchorLocation
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
protected PopupControl.CSSBridge |
bridge |
We need a special root node, except we can't replace the special root node already in the PopupControl. |
static final double |
USE_COMPUTED_SIZE |
Sentinel 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 double |
USE_PREF_SIZE |
Sentinel 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. |
Constructor Summary
| Constructor | Description |
|---|---|
PopupControl() |
Creates a new empty PopupControl. |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
protected Skin<?> |
createDefaultSkin() |
Create a new instance of the default skin for this control. |
static List<CssMetaData<? extends Styleable, |
getClassCssMetaData() |
Gets the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. |
List<CssMetaData<? extends Styleable, |
getCssMetaData() |
The CssMetaData of this Styleable. |
final String |
getId() |
The id of this PopupControl. |
final double |
getMaxHeight() |
Property for overriding the control's computed maximum height. |
final double |
getMaxWidth() |
Property for overriding the control's computed maximum width. |
final double |
getMinHeight() |
Property for overriding the control's computed minimum height. |
final double |
getMinWidth() |
Property for overriding the control's computed minimum width. |
final double |
getPrefHeight() |
Property for overriding the control's computed preferred height. |
final double |
getPrefWidth() |
Property for overriding the control's computed preferred width. |
final ObservableSet<PseudoClass> |
getPseudoClassStates() |
Return the pseudo-class state of this Styleable. |
final Skin<?> |
getSkin() |
Gets the value of the skin property. |
final String |
getStyle() |
Gets the value of the style property. |
Styleable |
getStyleableParent() |
Return the parent of this Styleable, or null if there is no parent. |
final ObservableList<String> |
getStyleClass() |
Returns the list of String identifiers that make up the styleClass for this PopupControl. |
String |
getTypeSelector() |
The type of this Styleable that is to be used in selector matching. |
final StringProperty |
idProperty() |
The id of this PopupControl. |
final double |
maxHeight |
Called during layout to determine the maximum height for this node. |
final DoubleProperty |
maxHeightProperty() |
Property for overriding the control's computed maximum height. |
final double |
maxWidth |
Called during layout to determine the maximum width for this node. |
final DoubleProperty |
maxWidthProperty() |
Property for overriding the control's computed maximum width. |
final double |
minHeight |
Called during layout to determine the minimum height for this node. |
final DoubleProperty |
minHeightProperty() |
Property for overriding the control's computed minimum height. |
final double |
minWidth |
Called during layout to determine the minimum width for this node. |
final DoubleProperty |
minWidthProperty() |
Property for overriding the control's computed minimum width. |
final double |
prefHeight |
Called during layout to determine the preferred height for this node. |
final DoubleProperty |
prefHeightProperty() |
Property for overriding the control's computed preferred height. |
final double |
prefWidth |
Called during layout to determine the preferred width for this node. |
final DoubleProperty |
prefWidthProperty() |
Property for overriding the control's computed preferred width. |
final void |
pseudoClassStateChanged |
Used to specify that a pseudo-class of this node has changed. |
final void |
setId |
Sets the id of this PopupControl. |
final void |
setMaxHeight |
Property for overriding the control's computed maximum height. |
void |
setMaxSize |
Convenience method for overriding the control's computed maximum width and height. |
final void |
setMaxWidth |
Property for overriding the control's computed maximum width. |
final void |
setMinHeight |
Property for overriding the control's computed minimum height. |
void |
setMinSize |
Convenience method for overriding the control's computed minimum width and height. |
final void |
setMinWidth |
Property for overriding the control's computed minimum width. |
final void |
setPrefHeight |
Property for overriding the control's computed preferred height. |
void |
setPrefSize |
Convenience method for overriding the control's computed preferred width and height. |
final void |
setPrefWidth |
Property for overriding the control's computed preferred width. |
final void |
setSkin |
Sets the value of the skin property. |
final void |
setStyle |
Sets the value of the style property. |
final ObjectProperty<Skin<?>> |
skinProperty() |
Skin is responsible for rendering this PopupControl. |
final StringProperty |
styleProperty() |
A string representation of the CSS style associated with this specific PopupControl. |
Methods declared in class javafx.stage.PopupWindow
anchorLocationProperty, anchorXProperty, anchorYProperty, autoFixProperty, autoHideProperty, consumeAutoHidingEventsProperty, getAnchorLocation, getAnchorX, getAnchorY, getConsumeAutoHidingEvents, getOnAutoHide, getOwnerNode, getOwnerWindow, hide, hideOnEscapeProperty, isAutoFix, isAutoHide, isHideOnEscape, onAutoHideProperty, ownerNodeProperty, ownerWindowProperty, setAnchorLocation, setAnchorX, setAnchorY, setAutoFix, setAutoHide, setConsumeAutoHidingEvents, setHideOnEscape, setOnAutoHide, setScene, show, show, show
Methods declared in class javafx.stage.Window
addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, forceIntegerRenderScaleProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getOutputScaleX, getOutputScaleY, getProperties, getRenderScaleX, getRenderScaleY, getScene, getUserData, getWidth, getWindows, getX, getY, hasProperties, heightProperty, isFocused, isForceIntegerRenderScale, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, outputScaleXProperty, outputScaleYProperty, removeEventFilter, removeEventHandler, renderScaleXProperty, renderScaleYProperty, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setForceIntegerRenderScale, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setRenderScaleX, setRenderScaleY, setUserData, setWidth, setX, setY, show, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface javafx.css.Styleable
getStyleableNode
Property Details
id
public final StringProperty idProperty
PopupControl. 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
public final StringProperty styleProperty
PopupControl. 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. A value of null is implicitly converted to an empty String.
- Default value:
null- See Also:
skin
public final ObjectProperty<Skin<?>> skinProperty
PopupControl. From the perspective of the PopupControl, the Skin is a black box. It listens and responds to changes in state in a PopupControl. There is a one-to-one relationship between a PopupControl and its Skin. Every Skin maintains a back reference to the PopupControl.
A skin may be null.
- Specified by:
-
skinPropertyin interfaceSkinnable - Returns:
- the skin property for this Skinnable
- See Also:
minWidth
public final DoubleProperty minWidthProperty
Defaults to the USE_COMPUTED_SIZE flag, which means that getMinWidth(forHeight) will return the control's internally computed minimum width.
Setting this value to the USE_PREF_SIZE flag will cause getMinWidth(forHeight) to return the control's preferred width, enabling applications to easily restrict the resizability of the control.
minHeight
public final DoubleProperty minHeightProperty
Defaults to the USE_COMPUTED_SIZE flag, which means that getMinHeight(forWidth) will return the control's internally computed minimum height.
Setting this value to the USE_PREF_SIZE flag will cause getMinHeight(forWidth) to return the control's preferred height, enabling applications to easily restrict the resizability of the control.
prefWidth
public final DoubleProperty prefWidthProperty
Defaults to the USE_COMPUTED_SIZE flag, which means that getPrefWidth(forHeight) will return the control's internally computed preferred width.
prefHeight
public final DoubleProperty prefHeightProperty
Defaults to the USE_COMPUTED_SIZE flag, which means that getPrefHeight(forWidth) will return the control's internally computed preferred width.
maxWidth
public final DoubleProperty maxWidthProperty
Defaults to the USE_COMPUTED_SIZE flag, which means that getMaxWidth(forHeight) will return the control's internally computed maximum width.
Setting this value to the USE_PREF_SIZE flag will cause getMaxWidth(forHeight) to return the control's preferred width, enabling applications to easily restrict the resizability of the control.
maxHeight
public final DoubleProperty maxHeightProperty
Defaults to the USE_COMPUTED_SIZE flag, which means that getMaxHeight(forWidth) will return the control's internally computed maximum height.
Setting this value to the USE_PREF_SIZE flag will cause getMaxHeight(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_SIZE
- See Also:
USE_COMPUTED_SIZE
public static final double USE_COMPUTED_SIZE
- See Also:
bridge
protected PopupControl.CSSBridge bridge
- Since:
- JavaFX 2.1
Constructor Details
PopupControl
public PopupControl()
PopupControl.Method Details
idProperty
public final StringProperty idProperty()
PopupControl. 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 id property
- See Also:
setId
public final void setId(String value)
PopupControl. 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
public final String getId()
PopupControl. 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).- Specified by:
-
getIdin interfaceStyleable - Default value:
null- Returns:
- the id assigned to this
PopupControlusing thesetIdmethod ornull, if no id has been assigned.
getStyleClass
public final ObservableList<String> getStyleClass()
- Specified by:
-
getStyleClassin interfaceStyleable - Returns:
- a list of String identifiers which can be used to logically group Nodes, specifically for an external style engine
- See Also:
setStyle
public final void setStyle(String value)
style property.- Property description:
- A string representation of the CSS style associated with this specific
PopupControl. 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.A value of
nullis implicitly converted to an emptyString. - Default value:
null- Parameters:
-
value- the value for thestyleproperty - See Also:
getStyle
public final String getStyle()
style property.- Specified by:
-
getStylein interfaceStyleable - Property description:
- A string representation of the CSS style associated with this specific
PopupControl. 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.A value of
nullis implicitly converted to an emptyString. - Default value:
null- Returns:
- the value of the
styleproperty - See Also:
styleProperty
public final StringProperty styleProperty()
PopupControl. 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. A value of null is implicitly converted to an empty String.
- Default value:
null- Returns:
- the
styleproperty - See Also:
skinProperty
public final ObjectProperty<Skin<?>> skinProperty()
PopupControl. From the perspective of the PopupControl, the Skin is a black box. It listens and responds to changes in state in a PopupControl. There is a one-to-one relationship between a PopupControl and its Skin. Every Skin maintains a back reference to the PopupControl.
A skin may be null.
- Specified by:
-
skinPropertyin interfaceSkinnable - Returns:
- the
skinproperty - See Also:
setSkin
public final void setSkin(Skin<?> value)
skin property.- 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
public final Skin<?> getSkin()
skin property.- 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)
Defaults to the USE_COMPUTED_SIZE flag, which means that getMinWidth(forHeight) will return the control's internally computed minimum width.
Setting this value to the USE_PREF_SIZE flag will cause getMinWidth(forHeight) to return the control's preferred width, enabling applications to easily restrict the resizability of the control.
- Parameters:
-
value- the minimum width
getMinWidth
public final double getMinWidth()
Defaults to the USE_COMPUTED_SIZE flag, which means that getMinWidth(forHeight) will return the control's internally computed minimum width.
Setting this value to the USE_PREF_SIZE flag will cause getMinWidth(forHeight) to return the control's preferred width, enabling applications to easily restrict the resizability of the control.
- Returns:
- the minimum width
minWidthProperty
public final DoubleProperty minWidthProperty()
Defaults to the USE_COMPUTED_SIZE flag, which means that getMinWidth(forHeight) will return the control's internally computed minimum width.
Setting this value to the USE_PREF_SIZE flag will cause getMinWidth(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)
Defaults to the USE_COMPUTED_SIZE flag, which means that getMinHeight(forWidth) will return the control's internally computed minimum height.
Setting this value to the USE_PREF_SIZE flag will cause getMinHeight(forWidth) to return the control's preferred height, enabling applications to easily restrict the resizability of the control.
- Parameters:
-
value- the minimum height
getMinHeight
public final double getMinHeight()
Defaults to the USE_COMPUTED_SIZE flag, which means that getMinHeight(forWidth) will return the control's internally computed minimum height.
Setting this value to the USE_PREF_SIZE flag will cause getMinHeight(forWidth) to return the control's preferred height, enabling applications to easily restrict the resizability of the control.
- Returns:
- the minimum height
minHeightProperty
public final DoubleProperty minHeightProperty()
Defaults to the USE_COMPUTED_SIZE flag, which means that getMinHeight(forWidth) will return the control's internally computed minimum height.
Setting this value to the USE_PREF_SIZE flag will cause getMinHeight(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)
- Parameters:
-
minWidth- the override value for minimum width -
minHeight- the override value for minimum height - See Also:
setPrefWidth
public final void setPrefWidth(double value)
Defaults to the USE_COMPUTED_SIZE flag, which means that getPrefWidth(forHeight) will return the control's internally computed preferred width.
- Parameters:
-
value- the preferred width
getPrefWidth
public final double getPrefWidth()
Defaults to the USE_COMPUTED_SIZE flag, which means that getPrefWidth(forHeight) will return the control's internally computed preferred width.
- Returns:
- the preferred width
prefWidthProperty
public final DoubleProperty prefWidthProperty()
Defaults to the USE_COMPUTED_SIZE flag, which means that getPrefWidth(forHeight) will return the control's internally computed preferred width.
- Returns:
- the
prefWidthproperty - See Also:
setPrefHeight
public final void setPrefHeight(double value)
Defaults to the USE_COMPUTED_SIZE flag, which means that getPrefHeight(forWidth) will return the control's internally computed preferred width.
- Parameters:
-
value- the preferred height
getPrefHeight
public final double getPrefHeight()
Defaults to the USE_COMPUTED_SIZE flag, which means that getPrefHeight(forWidth) will return the control's internally computed preferred width.
- Returns:
- the preferred height
prefHeightProperty
public final DoubleProperty prefHeightProperty()
Defaults to the USE_COMPUTED_SIZE flag, which means that getPrefHeight(forWidth) will return the control's internally computed preferred width.
- Returns:
- the
prefHeightproperty - See Also:
setPrefSize
public void setPrefSize(double prefWidth, double prefHeight)
- Parameters:
-
prefWidth- the override value for preferred width -
prefHeight- the override value for preferred height - See Also:
setMaxWidth
public final void setMaxWidth(double value)
Defaults to the USE_COMPUTED_SIZE flag, which means that getMaxWidth(forHeight) will return the control's internally computed maximum width.
Setting this value to the USE_PREF_SIZE flag will cause getMaxWidth(forHeight) to return the control's preferred width, enabling applications to easily restrict the resizability of the control.
- Parameters:
-
value- the maximum width
getMaxWidth
public final double getMaxWidth()
Defaults to the USE_COMPUTED_SIZE flag, which means that getMaxWidth(forHeight) will return the control's internally computed maximum width.
Setting this value to the USE_PREF_SIZE flag will cause getMaxWidth(forHeight) to return the control's preferred width, enabling applications to easily restrict the resizability of the control.
- Returns:
- the maximum width
maxWidthProperty
public final DoubleProperty maxWidthProperty()
Defaults to the USE_COMPUTED_SIZE flag, which means that getMaxWidth(forHeight) will return the control's internally computed maximum width.
Setting this value to the USE_PREF_SIZE flag will cause getMaxWidth(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)
Defaults to the USE_COMPUTED_SIZE flag, which means that getMaxHeight(forWidth) will return the control's internally computed maximum height.
Setting this value to the USE_PREF_SIZE flag will cause getMaxHeight(forWidth) to return the control's preferred height, enabling applications to easily restrict the resizability of the control.
- Parameters:
-
value- the maximum height
getMaxHeight
public final double getMaxHeight()
Defaults to the USE_COMPUTED_SIZE flag, which means that getMaxHeight(forWidth) will return the control's internally computed maximum height.
Setting this value to the USE_PREF_SIZE flag will cause getMaxHeight(forWidth) to return the control's preferred height, enabling applications to easily restrict the resizability of the control.
- Returns:
- the maximum height
maxHeightProperty
public final DoubleProperty maxHeightProperty()
Defaults to the USE_COMPUTED_SIZE flag, which means that getMaxHeight(forWidth) will return the control's internally computed maximum height.
Setting this value to the USE_PREF_SIZE flag will cause getMaxHeight(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)
- Parameters:
-
maxWidth- the override value for maximum width -
maxHeight- the override value for maximum height - See Also:
minWidth
public final double minWidth(double height)
minWidth(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)
minHeight(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)
prefWidth(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)
prefHeight(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)
maxWidth(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)
maxHeight(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
protected Skin<?> createDefaultSkin()
-fx-skin or set explicitly in a sub-class with setSkin(...).- 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
getClassCssMetaData
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
CssMetaData associated with this class, which may include the CssMetaData of its superclasses.- Returns:
- the
CssMetaData - Since:
- JavaFX 8.0
getCssMetaData
public List<CssMetaData<? extends Styleable,?>> getCssMetaData()
- Specified by:
-
getCssMetaDatain interfaceStyleable - Returns:
- the CssMetaData
- Since:
- JavaFX 8.0
pseudoClassStateChanged
public final void pseudoClassStateChanged(PseudoClass pseudoClass, boolean active)
- Parameters:
-
pseudoClass- the pseudo class -
active- the active state - Since:
- JavaFX 8.0
- See Also:
getTypeSelector
public String getTypeSelector()
Styleable that is to be used in selector matching. This is analogous to an "element" in HTML. (CSS Type Selector).- Specified by:
-
getTypeSelectorin interfaceStyleable - Returns:
- "PopupControl"
- Since:
- JavaFX 8.0
getStyleableParent
public Styleable getStyleableParent()
ownerNode or, if the ownerNode is not set, the root of the ownerWindow's scene. If the popup has not been shown, both ownerNode and ownerWindow will be null and null will be returned. Note that the PopupWindow's scene root is not returned because there is no way to guarantee that the PopupWindow's scene root would properly return the ownerNode or ownerWindow.- Specified by:
-
getStyleableParentin interfaceStyleable - Returns:
-
PopupWindow.getOwnerNode(),PopupWindow.getOwnerWindow(), or null. - Since:
- JavaFX 8.0
getPseudoClassStates
public final ObservableSet<PseudoClass> getPseudoClassStates()
- Specified by:
-
getPseudoClassStatesin interfaceStyleable - Returns:
- the pseudo-class state
- Since:
- JavaFX 8.0
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.