public class PopOver
extends javafx.scene.control.PopupControl
PopOver popOver = new PopOver(); popOver.getRoot().getStylesheets().add(...);
| Type | Property and Description |
|---|---|
javafx.beans.property.BooleanProperty |
animated
Stores the "animated" flag.
|
javafx.beans.property.DoubleProperty |
arrowIndent
Controls the distance between the arrow and the corners of the pop over.
|
javafx.beans.property.ObjectProperty<PopOver.ArrowLocation> |
arrowLocation
Stores the preferred arrow location.
|
javafx.beans.property.DoubleProperty |
arrowSize
Controls the size of the arrow.
|
javafx.beans.property.BooleanProperty |
closeButtonEnabled
Determines whether or not the header's close button should be available.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
contentNode
Returns the content shown by the pop over.
|
javafx.beans.property.DoubleProperty |
cornerRadius
Returns the corner radius property for the pop over.
|
javafx.beans.property.BooleanProperty |
detachable
Determines if the pop over is detachable at all.
|
javafx.beans.property.BooleanProperty |
detached
Determines whether the pop over is detached from the owning node or not.
|
javafx.beans.property.ObjectProperty<javafx.util.Duration> |
fadeInDuration
Stores the fade-in duration.
|
javafx.beans.property.ObjectProperty<javafx.util.Duration> |
fadeOutDuration
Stores the fade-out duration.
|
javafx.beans.property.BooleanProperty |
headerAlwaysVisible
Determines whether or not the
PopOver header should remain visible, even while attached. |
javafx.beans.property.StringProperty |
title
Stores the title to display in the PopOver's header.
|
id, maxHeight, maxWidth, minHeight, minWidth, prefHeight, prefWidth, skin, style| Modifier and Type | Class and Description |
|---|---|
static class |
PopOver.ArrowLocation
All possible arrow locations.
|
| Constructor and Description |
|---|
PopOver()
Creates a pop over with a label as the content node.
|
PopOver(javafx.scene.Node content)
Creates a pop over with the given node as the content node.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.BooleanProperty |
animatedProperty()
Stores the "animated" flag.
|
javafx.beans.property.DoubleProperty |
arrowIndentProperty()
Controls the distance between the arrow and the corners of the pop over.
|
javafx.beans.property.ObjectProperty<PopOver.ArrowLocation> |
arrowLocationProperty()
Stores the preferred arrow location.
|
javafx.beans.property.DoubleProperty |
arrowSizeProperty()
Controls the size of the arrow.
|
javafx.beans.property.BooleanProperty |
closeButtonEnabledProperty()
Determines whether or not the header's close button should be available.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
contentNodeProperty()
Returns the content shown by the pop over.
|
javafx.beans.property.DoubleProperty |
cornerRadiusProperty()
Returns the corner radius property for the pop over.
|
protected javafx.scene.control.Skin<?> |
createDefaultSkin() |
void |
detach()
Detaches the pop over from the owning node.
|
javafx.beans.property.BooleanProperty |
detachableProperty()
Determines if the pop over is detachable at all.
|
javafx.beans.property.BooleanProperty |
detachedProperty()
Determines whether the pop over is detached from the owning node or not.
|
javafx.beans.property.ObjectProperty<javafx.util.Duration> |
fadeInDurationProperty()
Stores the fade-in duration.
|
javafx.beans.property.ObjectProperty<javafx.util.Duration> |
fadeOutDurationProperty()
Stores the fade-out duration.
|
double |
getArrowIndent()
Returns the value of the arrow indent property.
|
PopOver.ArrowLocation |
getArrowLocation()
Returns the value of the arrow location property.
|
double |
getArrowSize()
Returns the value of the arrow size property.
|
javafx.scene.Node |
getContentNode()
Returns the value of the content property
|
double |
getCornerRadius()
Returns the value of the corner radius property.
|
javafx.util.Duration |
getFadeInDuration()
Returns the value of the fade-in duration property.
|
javafx.util.Duration |
getFadeOutDuration()
Returns the value of the fade-out duration property.
|
javafx.scene.layout.StackPane |
getRoot()
The root pane stores the content node of the popover.
|
java.lang.String |
getTitle()
Returns the value of the title property.
|
javafx.beans.property.BooleanProperty |
headerAlwaysVisibleProperty()
Determines whether or not the
PopOver header should remain visible, even while attached. |
void |
hide()
Hides the pop over by quickly changing its opacity to 0.
|
void |
hide(javafx.util.Duration fadeOutDuration)
Hides the pop over by quickly changing its opacity to 0.
|
boolean |
isAnimated()
Returns the value of the "animated" property.
|
boolean |
isCloseButtonEnabled()
Returns the value of the closeButtonEnabled property.
|
boolean |
isDetachable()
Returns the value of the detachable property.
|
boolean |
isDetached()
Returns the value of the detached property.
|
boolean |
isHeaderAlwaysVisible()
Returns the value of the detachable property.
|
void |
setAnimated(boolean animated)
Sets the value of the "animated" property.
|
void |
setArrowIndent(double size)
Sets the value of the arrow indent property.
|
void |
setArrowLocation(PopOver.ArrowLocation location)
Sets the value of the arrow location property.
|
void |
setArrowSize(double size)
Sets the value of the arrow size property.
|
void |
setCloseButtonEnabled(boolean enabled)
Sets the value of the closeButtonEnabled property.
|
void |
setContentNode(javafx.scene.Node content)
Sets the value of the content property.
|
void |
setCornerRadius(double radius)
Sets the value of the corner radius property.
|
void |
setDetachable(boolean detachable)
Sets the value of the detachable property.
|
void |
setDetached(boolean detached)
Sets the value of the detached property.
|
void |
setFadeInDuration(javafx.util.Duration duration)
Sets the value of the fade-in duration property.
|
void |
setFadeOutDuration(javafx.util.Duration duration)
Sets the value of the fade-out duration property.
|
void |
setHeaderAlwaysVisible(boolean visible)
Sets the value of the headerAlwaysVisible property.
|
void |
setTitle(java.lang.String title)
Sets the value of the title property.
|
void |
show(javafx.scene.Node owner)
Shows the pop over in a position relative to the edges of the given owner
node.
|
void |
show(javafx.scene.Node owner,
double offset)
Shows the pop over in a position relative to the edges of the given owner
node.
|
void |
show(javafx.scene.Node owner,
double x,
double y)
Makes the pop over visible at the give location and associates it with
the given owner node.
|
void |
show(javafx.scene.Node owner,
double x,
double y,
javafx.util.Duration fadeInDuration)
Makes the pop over visible at the give location and associates it with
the given owner node.
|
void |
show(javafx.stage.Window owner) |
void |
show(javafx.stage.Window ownerWindow,
double anchorX,
double anchorY) |
javafx.beans.property.StringProperty |
titleProperty()
Stores the title to display in the PopOver's header.
|
getClassCssMetaData, getCssMetaData, getId, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getPseudoClassStates, getSkin, getStyle, getStyleableParent, getStyleClass, getTypeSelector, idProperty, impl_styleableGetNode, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, pseudoClassStateChanged, setId, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPrefHeight, setPrefSize, setPrefWidth, setSkin, setStyle, skinProperty, stylePropertyanchorLocationProperty, anchorXProperty, anchorYProperty, autoFixProperty, autoHideProperty, consumeAutoHidingEventsProperty, getAnchorLocation, getAnchorX, getAnchorY, getConsumeAutoHidingEvents, getContent, getOnAutoHide, getOwnerNode, getOwnerWindow, hideOnEscapeProperty, impl_visibleChanged, impl_visibleChanging, isAutoFix, isAutoHide, isHideOnEscape, onAutoHideProperty, ownerNodeProperty, ownerWindowProperty, setAnchorLocation, setAnchorX, setAnchorY, setAutoFix, setAutoHide, setConsumeAutoHidingEvents, setHideOnEscape, setOnAutoHide, setSceneaddEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getProperties, getScene, getUserData, getWidth, getX, getY, hasProperties, heightProperty, impl_getMXWindowType, impl_getPeer, impl_getWindows, isFocused, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, removeEventFilter, removeEventHandler, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setFocused, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setUserData, setWidth, setX, setY, show, showingProperty, sizeToScene, widthProperty, xProperty, yPropertypublic final javafx.beans.property.ObjectProperty<javafx.scene.Node> contentNodeProperty
getContentNode(),
setContentNode(Node)public final javafx.beans.property.BooleanProperty headerAlwaysVisibleProperty
PopOver header should remain visible, even while attached.public final javafx.beans.property.BooleanProperty closeButtonEnabledProperty
public final javafx.beans.property.BooleanProperty detachableProperty
isDetachable(),
setDetachable(boolean)public final javafx.beans.property.BooleanProperty detachedProperty
isDetached(),
setDetached(boolean)public final javafx.beans.property.DoubleProperty arrowSizeProperty
getArrowSize(),
setArrowSize(double)public final javafx.beans.property.DoubleProperty arrowIndentProperty
getArrowIndent(),
setArrowIndent(double)public final javafx.beans.property.DoubleProperty cornerRadiusProperty
getCornerRadius(),
setCornerRadius(double)public final javafx.beans.property.StringProperty titleProperty
getTitle(),
setTitle(String)public final javafx.beans.property.ObjectProperty<PopOver.ArrowLocation> arrowLocationProperty
public final javafx.beans.property.ObjectProperty<javafx.util.Duration> fadeInDurationProperty
getFadeInDuration(),
setFadeInDuration(Duration)public final javafx.beans.property.ObjectProperty<javafx.util.Duration> fadeOutDurationProperty
getFadeOutDuration(),
setFadeOutDuration(Duration)public final javafx.beans.property.BooleanProperty animatedProperty
isAnimated(),
setAnimated(boolean)public PopOver()
public PopOver(javafx.scene.Node content)
content - The content shown by the pop overprotected javafx.scene.control.Skin<?> createDefaultSkin()
createDefaultSkin in class javafx.scene.control.PopupControlpublic final javafx.scene.layout.StackPane getRoot()
PopOver popOver = new PopOver(); popOver.getRoot().getStylesheets().add(...);
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> contentNodeProperty()
getContentNode(),
setContentNode(Node)public final javafx.scene.Node getContentNode()
contentNodeProperty()public final void setContentNode(javafx.scene.Node content)
content - the new content node valuecontentNodeProperty()public final void show(javafx.scene.Node owner)
owner - the owner of the pop overpublic final void show(javafx.scene.Node owner,
double offset)
owner - the owner of the pop overoffset - 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)public final void show(javafx.stage.Window owner)
show in class javafx.stage.PopupWindowpublic final void show(javafx.stage.Window ownerWindow,
double anchorX,
double anchorY)
show in class javafx.stage.PopupWindowpublic final void show(javafx.scene.Node owner,
double x,
double y)
show in class javafx.stage.PopupWindowowner - the owning nodex - the x coordinate for the pop over arrow tipy - the y coordinate for the pop over arrow tippublic final void show(javafx.scene.Node owner,
double x,
double y,
javafx.util.Duration fadeInDuration)
owner - the owning nodex - the x coordinate for the pop over arrow tipy - the y coordinate for the pop over arrow tipfadeInDuration - the time it takes for the pop over to be fully visible. This duration takes precedence over the fade-in property without setting.public final void hide()
hide in class javafx.stage.PopupWindowhide(Duration)public final void hide(javafx.util.Duration fadeOutDuration)
fadeOutDuration - the duration of the fade transition that is being used to
change the opacity of the pop overpublic final void detach()
public final javafx.beans.property.BooleanProperty headerAlwaysVisibleProperty()
PopOver header should remain visible, even while attached.public final void setHeaderAlwaysVisible(boolean visible)
visible - if true, then the header is visible even while attachedheaderAlwaysVisibleProperty()public final boolean isHeaderAlwaysVisible()
headerAlwaysVisibleProperty()public final javafx.beans.property.BooleanProperty closeButtonEnabledProperty()
public final void setCloseButtonEnabled(boolean enabled)
enabled - if false, the pop over will not be closeable by the header's close buttoncloseButtonEnabledProperty()public final boolean isCloseButtonEnabled()
closeButtonEnabledProperty()public final javafx.beans.property.BooleanProperty detachableProperty()
isDetachable(),
setDetachable(boolean)public final void setDetachable(boolean detachable)
detachable - if true then the user can detach / tear off the pop overdetachableProperty()public final boolean isDetachable()
detachableProperty()public final javafx.beans.property.BooleanProperty detachedProperty()
isDetached(),
setDetached(boolean)public final void setDetached(boolean detached)
detached - if true the pop over will change its apperance to "detached"
modedetachedProperty()public final boolean isDetached()
detachedProperty()public final javafx.beans.property.DoubleProperty arrowSizeProperty()
getArrowSize(),
setArrowSize(double)public final double getArrowSize()
arrowSizeProperty()public final void setArrowSize(double size)
size - the new value of the arrow size propertyarrowSizeProperty()public final javafx.beans.property.DoubleProperty arrowIndentProperty()
getArrowIndent(),
setArrowIndent(double)public final double getArrowIndent()
arrowIndentProperty()public final void setArrowIndent(double size)
size - the arrow indent valuearrowIndentProperty()public final javafx.beans.property.DoubleProperty cornerRadiusProperty()
getCornerRadius(),
setCornerRadius(double)public final double getCornerRadius()
cornerRadiusProperty()public final void setCornerRadius(double radius)
radius - the corner radiuscornerRadiusProperty()public final javafx.beans.property.StringProperty titleProperty()
getTitle(),
setTitle(String)public final java.lang.String getTitle()
titleProperty()public final void setTitle(java.lang.String title)
title - the title to use when detachedtitleProperty()public final javafx.beans.property.ObjectProperty<PopOver.ArrowLocation> arrowLocationProperty()
public final void setArrowLocation(PopOver.ArrowLocation location)
location - the requested locationarrowLocationProperty()public final PopOver.ArrowLocation getArrowLocation()
arrowLocationProperty()public final javafx.beans.property.ObjectProperty<javafx.util.Duration> fadeInDurationProperty()
getFadeInDuration(),
setFadeInDuration(Duration)public final javafx.beans.property.ObjectProperty<javafx.util.Duration> fadeOutDurationProperty()
getFadeOutDuration(),
setFadeOutDuration(Duration)public final javafx.util.Duration getFadeInDuration()
fadeInDurationProperty()public final void setFadeInDuration(javafx.util.Duration duration)
duration - the requested fade-in durationfadeInDurationProperty()public final javafx.util.Duration getFadeOutDuration()
fadeOutDurationProperty()public final void setFadeOutDuration(javafx.util.Duration duration)
duration - the requested fade-out durationfadeOutDurationProperty()public final javafx.beans.property.BooleanProperty animatedProperty()
isAnimated(),
setAnimated(boolean)public final boolean isAnimated()
animatedProperty()public final void setAnimated(boolean animated)
animated - if true the PopOver will be shown and hidden with a short fade animationanimatedProperty()