Class Popover

java.lang.Object
javafx.stage.Window
javafx.stage.PopupWindow
javafx.scene.control.PopupControl
atlantafx.base.controls.Popover
All Implemented Interfaces:
javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable

public class Popover extends javafx.scene.control.PopupControl
A control that is intended to provide detailed information about an owning node in a popup window. The popup window has a lightweight appearance (no default window decorations) and an arrow pointing at the owner. Due to the nature of popup windows the Popover will move around with the parent window when the user drags it.

The Popover can be detached from the owning node by dragging it away from the owner. It stops displaying an arrow and starts displaying a title and a close icon.

Example


 var textFlow = new TextFlow(new Text("Some content"));
 textFlow.setPrefWidth(300);

 var popover = new Popover(textFlow);
 popover.setTitle("Title");

 var ownerLink = new Hyperlink("Show popover");
 ownerLink.setOnAction(e -> popover.show(ownerLink));