Class PopupControl
- All Implemented Interfaces:
Styleable, EventTarget, Skinnable
- Direct Known Subclasses:
ContextMenu, Tooltip
- Since:
- JavaFX 2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThe link between the popup window and the scenegraph.Nested classes/interfaces declared in class PopupWindow
PopupWindow.AnchorLocationModifier and TypeClassDescriptionstatic enumAnchor location constants for popup anchor point selection. -
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 StringPropertyA string representation of the CSS style associated with this specificPopupControl.Properties declared in class PopupWindow
anchorLocation, anchorX, anchorY, autoFix, autoHide, consumeAutoHidingEvents, hideOnEscape, onAutoHide, ownerNode, ownerWindowTypePropertyDescriptionSpecifies the popup anchor point which is used in popup positioning.final ReadOnlyDoublePropertySpecifies the x coordinate of the popup anchor point on the screen.final ReadOnlyDoublePropertySpecifies the y coordinate of the popup anchor point on the screen.final BooleanPropertyThis convenience variable indicates whether, when the popup is shown, it should automatically correct its position such that it doesn't end up positioned off the screen.final BooleanPropertySpecifies whether Popups should auto hide.final BooleanPropertySpecifies whether the event, which caused the Popup to hide, should be consumed.final BooleanPropertySpecifies whether the PopupWindow should be hidden when an unhandled escape key is pressed while the popup has focus.final ObjectProperty<EventHandler<Event>> Called after autoHide is run.final ReadOnlyObjectProperty<Node> The node which is the owner of this popup.final ReadOnlyObjectProperty<Window> The window which is the parent of this popup.Properties declared in class Window
eventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, yTypePropertyDescriptionfinal ObjectProperty<EventDispatcher> Specifies the event dispatcher for this node.final ReadOnlyBooleanPropertyWhether or not thisWindowhas the keyboard or input focus.final BooleanPropertyBoolean property that controls whether only integer render scales are set by default by the system when there is a change in the associated output scale.final ReadOnlyDoublePropertyThe height of thisWindow.final ObjectProperty<EventHandler<WindowEvent>> Called when there is an external request to close thisWindow.final ObjectProperty<EventHandler<WindowEvent>> Called just after the Window has been hidden.final ObjectProperty<EventHandler<WindowEvent>> Called just prior to the Window being hidden.final ObjectProperty<EventHandler<WindowEvent>> Called just prior to the Window being shown.final ObjectProperty<EventHandler<WindowEvent>> Called just after the Window is shown.final DoublePropertyDefines the opacity of theWindowas a value between 0.0 and 1.0.final ReadOnlyDoublePropertyThe scale that theWindowwill apply to horizontal scene coordinates in all stages of rendering and compositing the output to the screen or other destination device.final ReadOnlyDoublePropertyThe scale that theWindowwill apply to vertical scene coordinates in all stages of rendering and compositing the output to the screen or other destination device.final DoublePropertyThe horizontal scale that theWindowwill use when rendering itsSceneto the rendering buffer.final DoublePropertyThe vertical scale that theWindowwill use when rendering itsSceneto the rendering buffer.final ReadOnlyObjectProperty<Scene> TheSceneto be rendered on thisWindow.final ReadOnlyBooleanPropertyWhether or not thisWindowis showing (that is, open on the user's system).final ReadOnlyDoublePropertyThe width of thisWindow.final ReadOnlyDoublePropertyThe horizontal location of thisWindowon the screen.final ReadOnlyDoublePropertyThe vertical location of thisWindowon the screen. -
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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Skin<?> Create a new instance of the default skin for this control.static List<CssMetaData<? extends Styleable, ?>> Gets theCssMetaDataassociated with this class, which may include theCssMetaDataof its superclasses.List<CssMetaData<? extends Styleable, ?>> The CssMetaData of this Styleable.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 ObservableSet<PseudoClass> Return the pseudo-class state of this Styleable.final Skin<?> getSkin()Gets the value of theskinproperty.final StringgetStyle()Gets the value of thestyleproperty.Return the parent of this Styleable, or null if there is no parent.final ObservableList<String> Returns the list of String identifiers that make up the styleClass for this PopupControl.The type of thisStyleablethat is to be used in selector matching.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 voidpseudoClassStateChanged(PseudoClass pseudoClass, boolean active) Used to specify that a pseudo-class of this node has changed.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 voidSets the value of thestyleproperty.final ObjectProperty<Skin<?>> Skin is responsible for rendering thisPopupControl.final StringPropertyA string representation of the CSS style associated with this specificPopupControl.Methods declared in class 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, showModifier and TypeMethodDescriptionSpecifies the popup anchor point which is used in popup positioning.final ReadOnlyDoublePropertySpecifies the x coordinate of the popup anchor point on the screen.final ReadOnlyDoublePropertySpecifies the y coordinate of the popup anchor point on the screen.final BooleanPropertyThis convenience variable indicates whether, when the popup is shown, it should automatically correct its position such that it doesn't end up positioned off the screen.final BooleanPropertySpecifies whether Popups should auto hide.final BooleanPropertySpecifies whether the event, which caused the Popup to hide, should be consumed.Gets the value of theanchorLocationproperty.final doubleGets the value of theanchorXproperty.final doubleGets the value of theanchorYproperty.final booleanGets the value of theconsumeAutoHidingEventsproperty.final EventHandler<Event> Gets the value of theonAutoHideproperty.final NodeGets the value of theownerNodeproperty.final WindowGets the value of theownerWindowproperty.voidhide()Hide this Popup and all its childrenfinal BooleanPropertySpecifies whether the PopupWindow should be hidden when an unhandled escape key is pressed while the popup has focus.final booleanGets the value of theautoFixproperty.final booleanGets the value of theautoHideproperty.final booleanGets the value of thehideOnEscapeproperty.final ObjectProperty<EventHandler<Event>> Called after autoHide is run.final ReadOnlyObjectProperty<Node> The node which is the owner of this popup.final ReadOnlyObjectProperty<Window> The window which is the parent of this popup.final voidSets the value of theanchorLocationproperty.final voidsetAnchorX(double value) Sets the value of theanchorXproperty.final voidsetAnchorY(double value) Sets the value of theanchorYproperty.final voidsetAutoFix(boolean value) Sets the value of theautoFixproperty.final voidsetAutoHide(boolean value) Sets the value of theautoHideproperty.final voidsetConsumeAutoHidingEvents(boolean value) Sets the value of theconsumeAutoHidingEventsproperty.final voidsetHideOnEscape(boolean value) Sets the value of thehideOnEscapeproperty.final voidsetOnAutoHide(EventHandler<Event> value) Sets the value of theonAutoHideproperty.protected final voidNote to subclasses: the scene used by PopupWindow is very specifically managed by PopupWindow.voidShows the popup at the specified location on the screen.voidShow the popup.voidShows the popup at the specified location on the screen.Methods declared in class 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, yPropertyModifier and TypeMethodDescriptionfinal <T extends Event>
voidaddEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter for this target.final <T extends Event>
voidaddEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler for this target.Construct an event dispatch chain for this target.voidSets x and y properties on this Window so that it is centered on the current screen.final ObjectProperty<EventDispatcher> Specifies the event dispatcher for this node.final voidFires the specified event.final ReadOnlyBooleanPropertyWhether or not thisWindowhas the keyboard or input focus.final BooleanPropertyBoolean property that controls whether only integer render scales are set by default by the system when there is a change in the associated output scale.final EventDispatcherGets the value of theeventDispatcherproperty.final doubleGets the value of theheightproperty.final EventHandler<WindowEvent> Gets the value of theonCloseRequestproperty.final EventHandler<WindowEvent> Gets the value of theonHiddenproperty.final EventHandler<WindowEvent> Gets the value of theonHidingproperty.final EventHandler<WindowEvent> Gets the value of theonShowingproperty.final EventHandler<WindowEvent> Gets the value of theonShownproperty.final doubleGets the value of theopacityproperty.final doubleGets the value of theoutputScaleXproperty.final doubleGets the value of theoutputScaleYproperty.final ObservableMap<Object, Object> Returns an observable map of properties on this node for use primarily by application developers.final doubleGets the value of therenderScaleXproperty.final doubleGets the value of therenderScaleYproperty.final ScenegetScene()Gets the value of thesceneproperty.Returns a previously set Object property, or null if no such property has been set using theWindow.setUserData(java.lang.Object)method.final doublegetWidth()Gets the value of thewidthproperty.static ObservableList<Window> Returns a list containing a reference to the currently showing JavaFX windows.final doublegetX()Gets the value of thexproperty.final doublegetY()Gets the value of theyproperty.booleanTests if Window has properties.final ReadOnlyDoublePropertyThe height of thisWindow.final booleanGets the value of thefocusedproperty.final booleanGets the value of theforceIntegerRenderScaleproperty.final booleanGets the value of theshowingproperty.final ObjectProperty<EventHandler<WindowEvent>> Called when there is an external request to close thisWindow.final ObjectProperty<EventHandler<WindowEvent>> Called just after the Window has been hidden.final ObjectProperty<EventHandler<WindowEvent>> Called just prior to the Window being hidden.final ObjectProperty<EventHandler<WindowEvent>> Called just prior to the Window being shown.final ObjectProperty<EventHandler<WindowEvent>> Called just after the Window is shown.final DoublePropertyDefines the opacity of theWindowas a value between 0.0 and 1.0.final ReadOnlyDoublePropertyThe scale that theWindowwill apply to horizontal scene coordinates in all stages of rendering and compositing the output to the screen or other destination device.final ReadOnlyDoublePropertyThe scale that theWindowwill apply to vertical scene coordinates in all stages of rendering and compositing the output to the screen or other destination device.final <T extends Event>
voidremoveEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this target.final <T extends Event>
voidremoveEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this target.final DoublePropertyThe horizontal scale that theWindowwill use when rendering itsSceneto the rendering buffer.final DoublePropertyThe vertical scale that theWindowwill use when rendering itsSceneto the rendering buffer.final voidRequests that thisWindowget the input focus.final ReadOnlyObjectProperty<Scene> TheSceneto be rendered on thisWindow.final voidSets the value of theeventDispatcherproperty.protected final <T extends Event>
voidsetEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type.final voidsetForceIntegerRenderScale(boolean forced) Sets the value of theforceIntegerRenderScaleproperty.final voidsetHeight(double value) Sets the value of theheightproperty.final voidsetOnCloseRequest(EventHandler<WindowEvent> value) Sets the value of theonCloseRequestproperty.final voidsetOnHidden(EventHandler<WindowEvent> value) Sets the value of theonHiddenproperty.final voidsetOnHiding(EventHandler<WindowEvent> value) Sets the value of theonHidingproperty.final voidsetOnShowing(EventHandler<WindowEvent> value) Sets the value of theonShowingproperty.final voidsetOnShown(EventHandler<WindowEvent> value) Sets the value of theonShownproperty.final voidsetOpacity(double value) Sets the value of theopacityproperty.final voidsetRenderScaleX(double scale) Sets the value of therenderScaleXproperty.final voidsetRenderScaleY(double scale) Sets the value of therenderScaleYproperty.voidsetUserData(Object value) Convenience method for setting a single Object property that can be retrieved at a later date.final voidsetWidth(double value) Sets the value of thewidthproperty.final voidsetX(double value) Sets the value of thexproperty.final voidsetY(double value) Sets the value of theyproperty.protected voidshow()Attempts to show this Window by setting visibility to truefinal ReadOnlyBooleanPropertyWhether or not thisWindowis showing (that is, open on the user's system).voidSet the width and height of this Window to match the size of the content of this Window's Scene.final ReadOnlyDoublePropertyThe width of thisWindow.final ReadOnlyDoublePropertyThe horizontal location of thisWindowon the screen.final ReadOnlyDoublePropertyThe vertical location of thisWindowon the screen.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface Styleable
getStyleableNodeModifier and TypeMethodDescriptiondefault NodeReturns the Node that represents this Styleable object.
-
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
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.A value of
nullis implicitly converted to an emptyString.- Default value:
null- 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- Returns:
- the skin property for this Skinnable
- 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 thatminWidth(forHeight)will return the control's internally computed minimum width.Setting this value to the
USE_PREF_SIZEflag will causeminWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control.- See Also:
-
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 thatminHeight(forWidth)will return the control's internally computed minimum height.Setting this value to the
USE_PREF_SIZEflag will causeminHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control.- See Also:
-
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 thatprefWidth(forHeight)will return the control's internally computed preferred width.- See Also:
-
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 thatprefHeight(forWidth)will return the control's internally computed preferred width.- See Also:
-
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 thatmaxWidth(forHeight)will return the control's internally computed maximum width.Setting this value to the
USE_PREF_SIZEflag will causemaxWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control.- See Also:
-
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 thatmaxHeight(forWidth)will return the control's internally computed maximum height.Setting this value to the
USE_PREF_SIZEflag will causemaxHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control.- See Also:
-
-
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 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()Creates a new emptyPopupControl.
-
-
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 id property
- 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- Returns:
- a list of String identifiers which can be used to logically group Nodes, specifically for an external style engine
- See Also:
-
setStyle
Sets the value of thestyleproperty.- 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
Gets the value of thestyleproperty.- 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
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.A value of
nullis implicitly converted to an emptyString.- Default value:
null- 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 thatminWidth(forHeight)will return the control's internally computed minimum width.Setting this value to the
USE_PREF_SIZEflag will causeminWidth(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()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 thatminWidth(forHeight)will return the control's internally computed minimum width.Setting this value to the
USE_PREF_SIZEflag will causeminWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control.- Returns:
- the minimum width
-
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 thatminWidth(forHeight)will return the control's internally computed minimum width.Setting this value to the
USE_PREF_SIZEflag will causeminWidth(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 thatminHeight(forWidth)will return the control's internally computed minimum height.Setting this value to the
USE_PREF_SIZEflag will causeminHeight(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()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 thatminHeight(forWidth)will return the control's internally computed minimum height.Setting this value to the
USE_PREF_SIZEflag will causeminHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control.- Returns:
- the minimum height
-
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 thatminHeight(forWidth)will return the control's internally computed minimum height.Setting this value to the
USE_PREF_SIZEflag will causeminHeight(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 thatprefWidth(forHeight)will return the control's internally computed preferred width.- Parameters:
value- the 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 thatprefWidth(forHeight)will return the control's internally computed preferred width.- Returns:
- the 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 thatprefWidth(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 thatprefHeight(forWidth)will return the control's internally computed preferred width.- Parameters:
value- the preferred height
-
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 thatprefHeight(forWidth)will return the control's internally computed preferred width.- Returns:
- the preferred height
-
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 thatprefHeight(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 thatmaxWidth(forHeight)will return the control's internally computed maximum width.Setting this value to the
USE_PREF_SIZEflag will causemaxWidth(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()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 thatmaxWidth(forHeight)will return the control's internally computed maximum width.Setting this value to the
USE_PREF_SIZEflag will causemaxWidth(forHeight)to return the control's preferred width, enabling applications to easily restrict the resizability of the control.- Returns:
- the maximum width
-
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 thatmaxWidth(forHeight)will return the control's internally computed maximum width.Setting this value to the
USE_PREF_SIZEflag will causemaxWidth(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 thatmaxHeight(forWidth)will return the control's internally computed maximum height.Setting this value to the
USE_PREF_SIZEflag will causemaxHeight(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()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 thatmaxHeight(forWidth)will return the control's internally computed maximum height.Setting this value to the
USE_PREF_SIZEflag will causemaxHeight(forWidth)to return the control's preferred height, enabling applications to easily restrict the resizability of the control.- Returns:
- the maximum height
-
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 thatmaxHeight(forWidth)will return the control's internally computed maximum height.Setting this value to the
USE_PREF_SIZEflag will causemaxHeight(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
-
getClassCssMetaData
Gets theCssMetaDataassociated with this class, which may include theCssMetaDataof its superclasses.- Returns:
- the
CssMetaData - Since:
- JavaFX 8.0
-
getCssMetaData
The CssMetaData of this Styleable. This may be returned as an unmodifiable list.- Specified by:
getCssMetaDatain interfaceStyleable- Returns:
- the CssMetaData
- Since:
- JavaFX 8.0
-
pseudoClassStateChanged
Used to specify that a pseudo-class of this node has changed.- Parameters:
pseudoClass- the pseudo classactive- the active state- Since:
- JavaFX 8.0
- See Also:
-
getTypeSelector
The type of thisStyleablethat 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
Return 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 interfaceStyleable- Returns:
PopupWindow.getOwnerNode(),PopupWindow.getOwnerWindow(), or null.- Since:
- JavaFX 8.0
-
getPseudoClassStates
Return the pseudo-class state of this Styleable. CSS assumes this set is read-only.- Specified by:
getPseudoClassStatesin interfaceStyleable- Returns:
- the pseudo-class state
- Since:
- JavaFX 8.0
-