java.lang.Object
io.github.jbastgen.stemma.app.ui.widget.Pop

public final class Pop extends Object
Auto-hiding popover anchored below a node.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 sideways
      dy - moves it down
      onHidden - runs when it closed; may be null
    • 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.