| Modifier and Type | Class and Description |
|---|---|
| protected class | PopupControl.
The link between the popup window and the scenegraph. |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| protected PopupControl. | bridge
We need a special root node, except we can't replace the special root node already in the PopupControl. |
| private String | currentSkinClassName
Keeps a reference to the name of the class currently acting as the skin. |
| private DoubleProperty | maxHeight
Property for overriding the control's computed maximum height. |
| private double | |
| private DoubleProperty | maxWidth
Property for overriding the control's computed maximum width. |
| private double | |
| private DoubleProperty | minHeight
Property for overriding the control's computed minimum height. |
| private double | |
| private DoubleProperty | minWidth
Property for overriding the control's computed minimum width. |
| private double | |
| private DoubleProperty | prefHeight
Property for overriding the control's computed preferred height. |
| private double | |
| private DoubleProperty | prefWidth
Property for overriding the control's computed preferred width. |
| private double | prefWidthCache
Cached prefWidth, prefHeight, minWidth, minHeight. |
| private final ObjectProperty | |
| private static final CssMetaData | |
| private StringProperty | skinClassName
A property that acts as a proxy between the skin property and css. |
| private boolean | |
| private static final List | |
| public 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(). |
| public 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. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Skin | Returns: new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.Create a new instance of the default skin for this control. |
| public static List | Returns: theCssMetaDataGets the |
| public List | |
| public final String | Returns: the id assigned to thisPopupControl using the setId
method or null, if no id has been assigned.Implements javafx. The id of this |
| public final double | Returns: the maximum heightProperty for overriding the control's computed maximum height. |
| public final double | Returns: the maximum widthProperty for overriding the control's computed maximum width. |
| public final double | Returns: the minimum heightProperty for overriding the control's computed minimum height. |
| public final double | Returns: the minimum widthProperty for overriding the control's computed minimum width. |
| public final double | Returns: the preferred heightProperty for overriding the control's computed preferred height. |
| public final double | Returns: the preferred widthProperty for overriding the control's computed preferred width. |
| public final ObservableSet | getPseudoClassStates()
Implements javafx. Return the pseudo-class state of this Styleable. |
| public final Skin | |
| private Node | Returns: The Skin's node, or null.Gets the Skin's node, or returns null if there is no Skin. |
| public final String | getStyle()
Implements javafx. A string representation of the CSS style associated with this
specific |
| public Node | getStyleableNode()
Overrides default javafx. Returns the Node that represents this Styleable object. |
| public Styleable | Returns: javafx., javafx.,
or null.Implements javafx. Return the parent of this Styleable, or null if there is no parent. |
| public final ObservableList | getStyleClass()
Implements javafx. Returns the list of String identifiers that make up the styleClass for this PopupControl. |
| public String | Returns: "PopupControl"Implements javafx. The type of this |
| public final StringProperty | |
| public final double | Returns: the maximum height that this node should be resized to during layoutthe width width)Called during layout to determine the maximum height for this node. |
| public final DoubleProperty | |
| public final double | Returns: the maximum width that this node should be resized to during layoutthe height height)Called during layout to determine the maximum width for this node. |
| public final DoubleProperty | |
| public final double | Returns: the minimum height that this node should be resized to during layoutThe width width)Called during layout to determine the minimum height for this node. |
| public final DoubleProperty | |
| public final double | Returns: the minimum width that this node should be resized to during layoutthe height height)Called during layout to determine the minimum width for this node. |
| public final DoubleProperty | |
| public final double | Returns: the preferred height that this node should be resized to during layoutthe width width)Called during layout to determine the preferred height for this node. |
| public final DoubleProperty | |
| public final double | Returns: the preferred width that this node should be resized to during layoutthe height height)Called during layout to determine the preferred width for this node. |
| public final DoubleProperty | |
| public final void | pseudoClassStateChanged(PseudoClass
the pseudo class pseudoClass, boolean the active state active)Used to specify that a pseudo-class of this node has changed. |
| private double | |
| private double | |
| private double | |
| private double | |
| private double | |
| private double | |
| private void | |
| public final void | |
| public final void | setMaxHeight(double
the maximum height value)Property for overriding the control's computed maximum height. |
| public void | setMaxSize(double
the override value for maximum width maxWidth, double the override value for maximum height maxHeight)Convenience method for overriding the control's computed maximum width and height. |
| public final void | setMaxWidth(double
the maximum width value)Property for overriding the control's computed maximum width. |
| public final void | setMinHeight(double
the minimum height value)Property for overriding the control's computed minimum height. |
| public void | setMinSize(double
the override value for minimum width minWidth, double the override value for minimum height minHeight)Convenience method for overriding the control's computed minimum width and height. |
| public final void | setMinWidth(double
the minimum width value)Property for overriding the control's computed minimum width. |
| public final void | setPrefHeight(double
the preferred height value)Property for overriding the control's computed preferred height. |
| public void | setPrefSize(double
the override value for preferred width prefWidth, double the override value for preferred height prefHeight)Convenience method for overriding the control's computed preferred width and height. |
| public final void | setPrefWidth(double
the preferred width value)Property for overriding the control's computed preferred width. |
| public final void | |
| public final void | |
| private StringProperty | |
| public final ObjectProperty | skinProperty()
Implements javafx. Skin is responsible for rendering this |
| public final StringProperty | Returns: thestyle propertyA string representation of the CSS style associated with this
specific |
| bridge | back to summary |
|---|---|
| protected PopupControl. 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.
| |
| currentSkinClassName | back to summary |
|---|---|
| private String currentSkinClassName Keeps a reference to the name of the class currently acting as the skin. | |
| maxHeight | back to summary |
|---|---|
| private DoubleProperty 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
Setting this value to the | |
| maxHeightCache | back to summary |
|---|---|
| private double maxHeightCache | |
| maxWidth | back to summary |
|---|---|
| private DoubleProperty 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
Setting this value to the | |
| maxWidthCache | back to summary |
|---|---|
| private double maxWidthCache | |
| minHeight | back to summary |
|---|---|
| private DoubleProperty 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
Setting this value to the | |
| minHeightCache | back to summary |
|---|---|
| private double minHeightCache | |
| minWidth | back to summary |
|---|---|
| private DoubleProperty 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
Setting this value to the | |
| minWidthCache | back to summary |
|---|---|
| private double minWidthCache | |
| prefHeight | back to summary |
|---|---|
| private DoubleProperty 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 | |
| prefHeightCache | back to summary |
|---|---|
| private double prefHeightCache | |
| prefWidth | back to summary |
|---|---|
| private DoubleProperty 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 | |
| prefWidthCache | back to summary |
|---|---|
| private double prefWidthCache Cached prefWidth, prefHeight, minWidth, minHeight. These results are repeatedly sought during the layout pass, and caching the results leads to a significant decrease in overhead. | |
| skin | back to summary |
|---|---|
| private final ObjectProperty<Skin<?>> skin | |
| SKIN | back to summary |
|---|---|
| private static final CssMetaData<PopupControl. | |
| skinClassName | back to summary |
|---|---|
| private StringProperty skinClassName A property that acts as a proxy between the skin property and css. | |
| skinSizeComputed | back to summary |
|---|---|
| private boolean skinSizeComputed | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| USE_COMPUTED_SIZE | back to summary |
|---|---|
| public 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(). | |
| USE_PREF_SIZE | back to summary |
|---|---|
| public 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. | |
| PopupControl | back to summary |
|---|---|
| public PopupControl() Creates a new empty | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin 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
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Gets the
| |
| getCssMetaData | back to summary |
|---|---|
| public List Implements javafx. Doc from javafx. The CssMetaData of this Styleable. This may be returned as an unmodifiable list.
| |
| getId | back to summary |
|---|---|
| public final String getId() Implements javafx. The id of this | |
| getMaxHeight | back to summary |
|---|---|
| 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
Setting this value to the
| |
| getMaxWidth | back to summary |
|---|---|
| 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
Setting this value to the
| |
| getMinHeight | back to summary |
|---|---|
| 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
Setting this value to the
| |
| getMinWidth | back to summary |
|---|---|
| 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
Setting this value to the
| |
| getPrefHeight | back to summary |
|---|---|
| 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
| |
| getPrefWidth | back to summary |
|---|---|
| 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
| |
| getPseudoClassStates | back to summary |
|---|---|
| public final ObservableSet Implements javafx. Doc from javafx. Return the pseudo-class state of this Styleable. CSS assumes this set is read-only.
| |
| getSkin | back to summary |
|---|---|
| public final Skin Implements javafx.
| |
| getSkinNode | back to summary |
|---|---|
| private Node getSkinNode() Gets the Skin's node, or returns null if there is no Skin. Convenience method for getting the node of the skin. This is null-safe, meaning if skin is null then it will return null instead of throwing a NullPointerException.
| |
| getStyle | back to summary |
|---|---|
| public final String getStyle() Implements javafx. Doc from javafx. A string representation of the CSS style associated with this
specific
| |
| getStyleableNode | back to summary |
|---|---|
| public Node getStyleableNode() Overrides default javafx. Doc from javafx. Returns 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.
| |
| getStyleableParent | back to summary |
|---|---|
| public Styleable getStyleableParent() Implements javafx. Doc from javafx. 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 the
| |
| getStyleClass | back to summary |
|---|---|
| public final ObservableList Implements javafx. Returns the list of String identifiers that make up the styleClass for this PopupControl.
| |
| getTypeSelector | back to summary |
|---|---|
| public String getTypeSelector() Implements javafx. Doc from javafx. The type of this | |
| idProperty | back to summary |
|---|---|
| public final StringProperty idProperty() The id of this
| |
| maxHeight | back to summary |
|---|---|
| public final double maxHeight(double width) Called during layout to determine the maximum height for this node.
Returns the value from
| |
| maxHeightProperty | back to summary |
|---|---|
| public final DoubleProperty maxHeightProperty() | |
| maxWidth | back to summary |
|---|---|
| public final double maxWidth(double height) Called during layout to determine the maximum width for this node.
Returns the value from
| |
| maxWidthProperty | back to summary |
|---|---|
| public final DoubleProperty maxWidthProperty() | |
| minHeight | back to summary |
|---|---|
| public final double minHeight(double width) Called during layout to determine the minimum height for this node.
Returns the value from
| |
| minHeightProperty | back to summary |
|---|---|
| public final DoubleProperty minHeightProperty() | |
| minWidth | back to summary |
|---|---|
| public final double minWidth(double height) Called during layout to determine the minimum width for this node.
Returns the value from
| |
| minWidthProperty | back to summary |
|---|---|
| public final DoubleProperty minWidthProperty() | |
| prefHeight | back to summary |
|---|---|
| public final double prefHeight(double width) Called during layout to determine the preferred height for this node.
Returns the value from
| |
| prefHeightProperty | back to summary |
|---|---|
| public final DoubleProperty prefHeightProperty() | |
| prefWidth | back to summary |
|---|---|
| public final double prefWidth(double height) Called during layout to determine the preferred width for this node.
Returns the value from
| |
| prefWidthProperty | back to summary |
|---|---|
| public final DoubleProperty prefWidthProperty() | |
| pseudoClassStateChanged | back to summary |
|---|---|
| public final void pseudoClassStateChanged(PseudoClass pseudoClass, boolean active) Used to specify that a pseudo-class of this node has changed.
| |
| recalculateMaxHeight | back to summary |
|---|---|
| private double recalculateMaxHeight(double width) | |
| recalculateMaxWidth | back to summary |
|---|---|
| private double recalculateMaxWidth(double height) | |
| recalculateMinHeight | back to summary |
|---|---|
| private double recalculateMinHeight(double width) | |
| recalculateMinWidth | back to summary |
|---|---|
| private double recalculateMinWidth(double height) | |
| recalculatePrefHeight | back to summary |
|---|---|
| private double recalculatePrefHeight(double width) | |
| recalculatePrefWidth | back to summary |
|---|---|
| private double recalculatePrefWidth(double height) | |
| recomputeSkinSize | back to summary |
|---|---|
| private void recomputeSkinSize() | |
| setId | back to summary |
|---|---|
| public final void setId(String value) Sets the id of this
| |
| setMaxHeight | back to summary |
|---|---|
| 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
Setting this value to the
| |
| setMaxSize | back to summary |
|---|---|
| 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.
| |
| setMaxWidth | back to summary |
|---|---|
| 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
Setting this value to the
| |
| setMinHeight | back to summary |
|---|---|
| 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
Setting this value to the
| |
| setMinSize | back to summary |
|---|---|
| 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.
| |
| setMinWidth | back to summary |
|---|---|
| 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
Setting this value to the
| |
| setPrefHeight | back to summary |
|---|---|
| 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
| |
| setPrefSize | back to summary |
|---|---|
| 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.
| |
| setPrefWidth | back to summary |
|---|---|
| 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
| |
| setSkin | back to summary |
|---|---|
| public final void setSkin(Skin<?> value) Implements javafx.
| |
| setStyle | back to summary |
|---|---|
| public final void setStyle(String value) | |
| skinClassNameProperty | back to summary |
|---|---|
| private StringProperty skinClassNameProperty() | |
| skinProperty | back to summary |
|---|---|
| public final ObjectProperty Implements javafx. Skin is responsible for rendering this
There is a one-to-one relationship between a
A skin may be
| |
| styleProperty | back to summary |
|---|---|
| public final StringProperty styleProperty() A string representation of the CSS style associated with this
specific A value of
| |
| Modifier and Type | Field and Description |
|---|---|
| private final PopupControl |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private List | |
| private void | |
| public List | getCssMetaData()
Overrides javafx. Implements javafx. This method should delegate to |
| public Styleable | Returns: the styleable parentOverrides javafx. Implements javafx. This method should be treated as final and should not be overridden by any subclasses of CSSBridge. |
| public void | requestLayout()
Overrides javafx. Requests a layout pass to be performed before the next scene is rendered. |
| popupControl | back to summary |
|---|---|
| private final PopupControl popupControl | |
| CSSBridge | back to summary |
|---|---|
| protected CSSBridge() Constructor for subclasses to call. | |
| doGetAllParentStylesheets | back to summary |
|---|---|
| private List | |
| doProcessCSS | back to summary |
|---|---|
| private void doProcessCSS() | |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Implements javafx. Doc from javafx. This method should delegate to
| |
| getStyleableParent | back to summary |
|---|---|
| public Styleable getStyleableParent() Overrides javafx. Implements javafx. This method should be treated as final and should not be overridden by any subclasses of CSSBridge. | |
| requestLayout | back to summary |
|---|---|
| public void requestLayout() Overrides javafx. Requests a layout pass to be performed before the next scene is rendered. This is batched up asynchronously to happen once per "pulse", or frame of animation. If this parent is either a layout root or unmanaged, then it will be added directly to the scene's dirty layout list, otherwise requestLayout will be invoked on its parent.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final PopupControl. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected List | |
| private static PopupControl. | |
| public static void | |
| protected void | |
| public static void | |
| pack-priv void |
| theInstance | back to summary |
|---|---|
| private static final PopupControl. | |
| CSSBridgeHelper | back to summary |
|---|---|
| pack-priv CSSBridgeHelper() | |
| getAllParentStylesheetsImpl | back to summary |
|---|---|
| protected List Overrides com.
| |
| getInstance | back to summary |
|---|---|
| private static PopupControl. | |
| initHelper | back to summary |
|---|---|
| public static void initHelper(PopupControl. | |
| processCSSImpl | back to summary |
|---|---|
| protected void processCSSImpl(Node node) Overrides com.
| |
| superProcessCSS | back to summary |
|---|---|
| public static void superProcessCSS(Node node) | |
| superProcessCSSImpl | back to summary |
|---|---|
| pack-priv void superProcessCSSImpl(Node node) Hides com. | |