The Popover can be detached from the owning node by dragging it away from the owner.
Example
var textFlow = new TextFlow(new Text("Some content"));
textFlow.setPrefWidth(300);
var popover = new Popover(textFlow);
var ownerLink = new Hyperlink("Show popover");
ownerLink.setOnAction(e -> popover.show(ownerLink));
| Modifier and Type | Class and Description |
|---|---|
| public static enum | PopOver.
Locations where the arrow of the popover can be placed. |
| public static class | PopOver.
A specialized popover to let the user select a date or a date range. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final SimpleBooleanProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private static final double | |
| private static final double | |
| private static final double | |
| private static final Duration | |
| private static final String | |
| private final BooleanProperty | |
| private final BooleanProperty | |
| private static final PseudoClass | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final PopOver. | |
| private double | |
| private double |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final BooleanProperty | |
| public final DoubleProperty | Returns: the arrow indent propertyControls the distance between the arrow and the corners of the popover. |
| public final ObjectProperty | |
| public final DoubleProperty | |
| private double | |
| private double | |
| public final ObjectProperty | |
| public final DoubleProperty | Returns: the corner radius property (default is 6)Returns the corner radius property for the popover. |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final void | |
| public final BooleanProperty | |
| public final BooleanProperty | Returns: the detached propertyDetermines whether the popover is detached from the owning node or not. |
| public final ObjectProperty | |
| public final ObjectProperty | |
| public final double | |
| public final PopOver. | Returns: the preferred arrow locationReturns the value of the arrow location property. |
| public final double | |
| public final Node | |
| public final double | |
| public final Duration | |
| public final Duration | Returns: the fade-out durationReturns the value of the fade-out duration property. |
| public final StackPane | |
| public final void | hide()
Overrides javafx. Hides the popover by quickly changing its opacity to 0. |
| public final void | |
| public final boolean | Returns: true if the PopOver will be shown and hidden with a short fade animationReturns the value of the "animated" property. |
| public final boolean | Returns: true if the user is allowed to detach / tear off the popoverReturns the value of the detachable property. |
| public final boolean | Returns: true if the popover is currently detached.Returns the value of the detached property. |
| public final void | setAnimated(boolean
if true, the PopOver will be shown and hidden with a short fade animation animated)Sets the value of the "animated" property. |
| public final void | |
| public final void | setArrowLocation(PopOver.
the requested location locationSets the value of the arrow location property. |
| public final void | setArrowSize(double
the new value of the arrow size property size)Sets the value of the arrow size property. |
| public final void | |
| public final void | |
| public final void | setDetachable(boolean
if true, then the user can detach / tear off the popover detachable)Sets the value of the detachable property. |
| public final void | setDetached(boolean
if true, the popover will change its appearance to "detached" mode detached)Sets the value of the detached property. |
| public final void | setFadeInDuration(Duration
the requested fade-in duration duration)Sets the value of the fade-in duration property. |
| public final void | setFadeOutDuration(Duration
the requested fade-out duration duration)Sets the value of the fade-out duration property. |
| public final void | |
| public final void | show(Node
the owner of the popover owner, double if negative specifies the distance to the owner node, or when
positive specifies the number of pixels that the arrow will
overlap with the owner node (positive values are recommended) offset)Shows the popover in a position relative to the edges of the given owner node. |
| public final void | show(Node
the owning node owner, double the x coordinate for the popover arrow tip x, double the y coordinate for the popover arrow tip y)Overrides javafx. Makes the popover visible at the give location and associates it with the given owner node. |
| public final void | show(Node
the owning node owner, double the x coordinate for the popover arrow tip x, double the y coordinate for the popover arrow tip y, Duration the time it takes for the popover to be fully visible. This duration takes precedence over the fade-in property without setting. fadeInDuration)Makes the popover visible at the give location and associates it with the given owner node. |
| private void |