Class Pop
java.lang.Object
io.github.jbastgen.stemma.app.ui.widget.Pop
Auto-hiding popover anchored below a node.
-
Method Summary
Modifier and TypeMethodDescriptionstatic javafx.stage.Popupshow(javafx.scene.Node anchor, javafx.scene.layout.Region content, Theme theme, double dx, double dy, Runnable onHidden) Shows the content in a pop-over below the node, with the theme applied; it closes by itself when the user clicks elsewhere.static javafx.stage.PopupshowAt(javafx.scene.Node owner, javafx.scene.layout.Region content, Theme theme, double x, double y, Runnable onHidden) Shows the content with its top left corner at a point of the screen (the place of the mouse pointer), moved so that it stays on the screen: left of the point when there is no room on the right, above it when there is none below.
-
Method Details
-
show
public static javafx.stage.Popup show(javafx.scene.Node anchor, javafx.scene.layout.Region content, Theme theme, double dx, double dy, Runnable onHidden) Shows the content in a pop-over below the node, with the theme applied; it closes by itself when the user clicks elsewhere.- Parameters:
dx- moves it sidewaysdy- moves it downonHidden- runs when it closed; may benull
-
showAt
public static javafx.stage.Popup showAt(javafx.scene.Node owner, javafx.scene.layout.Region content, Theme theme, double x, double y, Runnable onHidden) Shows the content with its top left corner at a point of the screen (the place of the mouse pointer), moved so that it stays on the screen: left of the point when there is no room on the right, above it when there is none below.
-