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().

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.

Methods inherited from class java.lang.Object

Property Detail

id

The id of this PopupControl. This simple string identifier is useful for
finding a specific Node within the scene graph. While the id of a Node
should be unique within the scene graph, this uniqueness is not enforced.
This is analogous to the "id" attribute on an HTML element
(CSS ID Specification).

style

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.

Parsing this style might not be supported on some limited
platforms. It is recommended to use a standalone CSS file instead.

Field Detail

USE_PREF_SIZE

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.

USE_COMPUTED_SIZE

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().

bridge

We need a special root node, except we can't replace the special
root node already in the PopupControl. So we'll set our own
special almost-root node that is a child of the root.
This special root node is responsible for mapping the id, styleClass,
and style defined on the PopupControl such that CSS will read the
values from the PopupControl, and then apply CSS state to that
special node. The node will then be able to pass impl_cssSet calls
along, such that any subclass of PopupControl will be able to
use the Styleable properties and we'll be able to style it from
CSS, in such a way that it participates and applies to the skin,
exactly the way that normal Skin's work for normal Controls.

Constructor Detail

PopupControl

public PopupControl()

Create a new empty PopupControl.

Method Detail

idProperty

The id of this PopupControl. This simple string identifier is useful for
finding a specific Node within the scene graph. While the id of a Node
should be unique within the scene graph, this uniqueness is not enforced.
This is analogous to the "id" attribute on an HTML element
(CSS ID Specification).

setId

public final void setId(java.lang.String value)

Sets the id of this PopupControl. This simple string identifier is useful for
finding a specific Node within the scene graph. While the id of a Node
should be unique within the scene graph, this uniqueness is not enforced.
This is analogous to the "id" attribute on an HTML element
(CSS ID Specification).

Parameters:

value - the id assigned to this PopupControl using the setId
method or null, if no id has been assigned.

Default value:

null

getId

public final java.lang.String getId()

The id of this PopupControl. This simple string identifier is useful for
finding a specific Node within the scene graph. While the id of a Node
should be unique within the scene graph, this uniqueness is not enforced.
This is analogous to the "id" attribute on an HTML element
(CSS ID Specification).

Returns:

the id assigned to this PopupControl using the setId
method or null, if no id has been assigned.

getStyleClass

Returns the list of String identifiers that make up the styleClass
for this PopupControl.

setStyle

public final void setStyle(java.lang.String value)

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.

Parameters:

value - The inline CSS style to use for this PopupControl.
null is implicitly converted to an empty String.

Default value:

empty string

getStyle

public final java.lang.String getStyle()

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.

Returns:

The inline CSS style associated with this PopupControl.
If this PopupControl does not have an inline style,
an empty String is returned.

Default value:

empty string

styleProperty

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.

Parsing this style might not be supported on some limited
platforms. It is recommended to use a standalone CSS file instead.

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.

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.

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.

prefHeight

public final double prefHeight(double width)

Called during layout to determine the preferred height for this node.
Returns the value from prefHeight(forWidth) unless
the application overrode the preferred height by setting the prefHeight property.

Parameters:

width - the width

Returns:

the preferred height that this node should be resized to during layout