- All Implemented Interfaces:
- Styleable,- EventTarget,- Skinnable
- Direct Known Subclasses:
- ContextMenu,- Tooltip
public class PopupControl extends PopupWindow implements Skinnable, Styleable
- Since:
- JavaFX 2.0
- 
Property SummaryProperties Type Property Description StringPropertyidThe id of thisPopupControl.DoublePropertymaxHeightProperty for overriding the control's computed maximum height.DoublePropertymaxWidthProperty for overriding the control's computed maximum width.DoublePropertyminHeightProperty for overriding the control's computed minimum height.DoublePropertyminWidthProperty for overriding the control's computed minimum width.DoublePropertyprefHeightProperty for overriding the control's computed preferred height.DoublePropertyprefWidthProperty for overriding the control's computed preferred width.ObjectProperty<Skin<?>>skinSkin is responsible for rendering thisPopupControl.StringPropertystyleProperties inherited from class javafx.stage.PopupWindowanchorLocation, anchorX, anchorY, autoFix, autoHide, consumeAutoHidingEvents, hideOnEscape, onAutoHide, ownerNode, ownerWindowProperties inherited from class javafx.stage.WindoweventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classPopupControl.CSSBridgeThe link between the popup window and the scenegraph.Nested classes/interfaces inherited from class javafx.stage.PopupWindowPopupWindow.AnchorLocation
- 
Field SummaryFields Modifier and Type Field Description protected PopupControl.CSSBridgebridgeWe need a special root node, except we can't replace the special root node already in the PopupControl.static doubleUSE_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().static doubleUSE_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.
- 
Constructor SummaryConstructors Constructor Description PopupControl()Create a new empty PopupControl.
- 
Method SummaryModifier and Type Method Description protected Skin<?>createDefaultSkin()Create a new instance of the default skin for this control.static List<CssMetaData<? extends Styleable,?>>getClassCssMetaData()List<CssMetaData<? extends Styleable,?>>getCssMetaData()The CssMetaData of this Styleable.StringgetId()The id of thisPopupControl.doublegetMaxHeight()Property for overriding the control's computed maximum height.doublegetMaxWidth()Property for overriding the control's computed maximum width.doublegetMinHeight()Property for overriding the control's computed minimum height.doublegetMinWidth()Property for overriding the control's computed minimum width.doublegetPrefHeight()Property for overriding the control's computed preferred height.doublegetPrefWidth()Property for overriding the control's computed preferred width.ObservableSet<PseudoClass>getPseudoClassStates()Return the pseudo-class state of this Styleable.Skin<?>getSkin()Gets the value of the property skin.StringgetStyle()A string representation of the CSS style associated with this specificPopupControl.NodegetStyleableNode()Returns the Node that represents this Styleable object.StyleablegetStyleableParent()Return the parent of this Styleable, or null if there is no parent.ObservableList<String>getStyleClass()Returns the list of String identifiers that make up the styleClass for this PopupControl.StringgetTypeSelector()The type of thisStyleablethat is to be used in selector matching.StringPropertyidProperty()The id of thisPopupControl.doublemaxHeight(double width)Called during layout to determine the maximum height for this node.DoublePropertymaxHeightProperty()Property for overriding the control's computed maximum height.doublemaxWidth(double height)Called during layout to determine the maximum width for this node.DoublePropertymaxWidthProperty()Property for overriding the control's computed maximum width.doubleminHeight(double width)Called during layout to determine the minimum height for this node.DoublePropertyminHeightProperty()Property for overriding the control's computed minimum height.doubleminWidth(double height)Called during layout to determine the minimum width for this node.DoublePropertyminWidthProperty()Property for overriding the control's computed minimum width.doubleprefHeight(double width)Called during layout to determine the preferred height for this node.DoublePropertyprefHeightProperty()Property for overriding the control's computed preferred height.doubleprefWidth(double height)Called during layout to determine the preferred width for this node.DoublePropertyprefWidthProperty()Property for overriding the control's computed preferred width.voidpseudoClassStateChanged(PseudoClass pseudoClass, boolean active)voidsetId(String value)Sets the id of thisPopupControl.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.voidsetMaxWidth(double value)Property for overriding the control's computed maximum width.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.voidsetMinWidth(double value)Property for overriding the control's computed minimum width.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.voidsetPrefWidth(double value)Property for overriding the control's computed preferred width.voidsetSkin(Skin<?> value)Sets the value of the property skin.voidsetStyle(String value)A string representation of the CSS style associated with this specificPopupControl.ObjectProperty<Skin<?>>skinProperty()Skin is responsible for rendering thisPopupControl.StringPropertystyleProperty()Methods inherited from class javafx.stage.PopupWindowanchorLocationProperty, 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, showMethods inherited from class javafx.stage.WindowaddEventFilter, 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
- 
Property Details- 
idThe 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:
- getId(),- setId(String)
 
- 
style- See Also:
- getStyle(),- setStyle(String)
 
- 
skinSkin 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 interface- Skinnable
- See Also:
- getSkin(),- setSkin(Skin)
 
- 
minWidthProperty 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.- See Also:
- getMinWidth(),- setMinWidth(double)
 
- 
minHeightProperty 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.- See Also:
- getMinHeight(),- setMinHeight(double)
 
- 
prefWidthProperty 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.- See Also:
- getPrefWidth(),- setPrefWidth(double)
 
- 
prefHeightProperty 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.- See Also:
- getPrefHeight(),- setPrefHeight(double)
 
- 
maxWidthProperty 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.- See Also:
- getMaxWidth(),- setMaxWidth(double)
 
- 
maxHeightProperty 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.- See Also:
- getMaxHeight(),- setMaxHeight(double)
 
 
- 
- 
Field Details- 
USE_PREF_SIZEpublic 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:
- Constant Field Values
 
- 
USE_COMPUTED_SIZEpublic 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:
- Constant Field Values
 
- 
bridgeWe 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 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- 
PopupControlpublic PopupControl()Create a new empty PopupControl.
 
- 
- 
Method Details- 
idPropertyThe 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:
- getId(),- setId(String)
 
- 
setIdSets 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 this- PopupControlusing the- setIdmethod or- null, if no id has been assigned.
 
- 
getIdThe 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).
- 
getStyleClassReturns the list of String identifiers that make up the styleClass for this PopupControl.- Specified by:
- getStyleClassin interface- Styleable
- Returns:
- a list of String identifiers which can be used to logically group Nodes, specifically for an external style engine
- See Also:
- CSS3 class selectors
 
- 
setStyleA 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 this- PopupControl.- nullis implicitly converted to an empty String.
 
- 
getStyleA 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- See Also:
- getStyle(),- setStyle(String)
 
- 
skinPropertySkin 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 interface- Skinnable
- See Also:
- getSkin(),- setSkin(Skin)
 
- 
setSkinSets the value of the property skin.- Specified by:
- setSkinin interface- Skinnable
- 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 skin value for this control
 
- 
getSkinGets the value of the property skin.- Specified by:
- getSkinin interface- Skinnable
- 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 skin for this control
 
- 
setMinWidthpublic 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.- Parameters:
- value- the minimum width
 
- 
getMinWidthpublic 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.- Returns:
- the minimum width
 
- 
minWidthPropertyProperty 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.- See Also:
- getMinWidth(),- setMinWidth(double)
 
- 
setMinHeightpublic 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.- Parameters:
- value- the minimum height
 
- 
getMinHeightpublic 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.- Returns:
- the minimum height
 
- 
minHeightPropertyProperty 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.- See Also:
- getMinHeight(),- setMinHeight(double)
 
- 
setMinSizepublic 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 width
- minHeight- the override value for minimum height
- See Also:
- setMinWidth(double),- setMinHeight(double)
 
- 
setPrefWidthpublic 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.- Parameters:
- value- the preferred width
 
- 
getPrefWidthpublic 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.- Returns:
- the preferred width
 
- 
prefWidthPropertyProperty 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.- See Also:
- getPrefWidth(),- setPrefWidth(double)
 
- 
setPrefHeightpublic 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.- Parameters:
- value- the preferred height
 
- 
getPrefHeightpublic 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.- Returns:
- the preferred height
 
- 
prefHeightPropertyProperty 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.- See Also:
- getPrefHeight(),- setPrefHeight(double)
 
- 
setPrefSizepublic 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 width
- prefHeight- the override value for preferred height
- See Also:
- setPrefWidth(double),- setPrefHeight(double)
 
- 
setMaxWidthpublic 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.- Parameters:
- value- the maximum width
 
- 
getMaxWidthpublic 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.- Returns:
- the maximum width
 
- 
maxWidthPropertyProperty 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.- See Also:
- getMaxWidth(),- setMaxWidth(double)
 
- 
setMaxHeightpublic 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.- Parameters:
- value- the maximum height
 
- 
getMaxHeightpublic 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.- Returns:
- the maximum height
 
- 
maxHeightPropertyProperty 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.- See Also:
- getMaxHeight(),- setMaxHeight(double)
 
- 
setMaxSizepublic 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 width
- maxHeight- the override value for maximum height
- See Also:
- setMaxWidth(double),- setMaxHeight(double)
 
- 
minWidthpublic 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:
- setMinWidth(double)
 
- 
minHeightpublic 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:
- setMinHeight(double)
 
- 
prefWidthpublic 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:
- setPrefWidth(double)
 
- 
prefHeightpublic 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:
- setPrefHeight(double)
 
- 
maxWidthpublic 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:
- setMaxWidth(double)
 
- 
maxHeightpublic 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:
- setMaxHeight(double)
 
- 
createDefaultSkinCreate 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
 
- 
getClassCssMetaData- Returns:
- The CssMetaData associated with this class, which may include the CssMetaData of its superclasses.
- Since:
- JavaFX 8.0
 
- 
getCssMetaDataThe CssMetaData of this Styleable. This may be returned as an unmodifiable list.- Specified by:
- getCssMetaDatain interface- Styleable
- Returns:
- the CssMetaData
- Since:
- JavaFX 8.0
 
- 
pseudoClassStateChanged- Parameters:
- pseudoClass- the pseudo class
- active- the active state
- Since:
- JavaFX 8.0
- See Also:
- Node.pseudoClassStateChanged(javafx.css.PseudoClass, boolean)
 
- 
getTypeSelectorThe type of thisStyleablethat is to be used in selector matching. This is analogous to an "element" in HTML. (CSS Type Selector).- Specified by:
- getTypeSelectorin interface- Styleable
- Returns:
- "PopupControl"
- Since:
- JavaFX 8.0
 
- 
getStyleableParentReturn the parent of this Styleable, or null if there is no parent. A PopupControl's styles are based on the popup "owner" which is theownerNodeor, if the ownerNode is not set, the root of theownerWindow'sscene. If the popup has not been shown, both ownerNode and ownerWindow will be null andnullwill 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 interface- Styleable
- Returns:
- PopupWindow.getOwnerNode(),- PopupWindow.getOwnerWindow(), or null.
- Since:
- JavaFX 8.0
 
- 
getPseudoClassStatesReturn the pseudo-class state of this Styleable. CSS assumes this set is read-only.- Specified by:
- getPseudoClassStatesin interface- Styleable
- Returns:
- the pseudo-class state
- Since:
- JavaFX 8.0
 
- 
getStyleableNodeReturns the Node that represents this Styleable object. This method should be overridden in cases where the Styleable is not itself a Node, so that it may optionally return the relevant root node representation of itself. By default this method returns null, which can mean that either the Styleable itself is a Node, or if that is not the case, that the Styleable does not have a node representation available at the time of request.- Specified by:
- getStyleableNodein interface- Styleable
- Returns:
- the Node that represents this Styleable object
 
 
-