java.lang.Object
one.jpro.platform.routing.popup.simplepopup.SimplePopups

public class SimplePopups extends Object
Utility class for creating simple popups in a JPro application.
  • Constructor Details

    • SimplePopups

      public SimplePopups()
  • Method Details

    • infoPopup

      public static SimplePopup infoPopup(String title, String infoText)
      Creates an informational popup with a specified title and text content. The popup includes a close button that, when clicked, will close the popup.
      Parameters:
      title - the title of the popup
      infoText - the text content of the popup
      Returns:
      a SimplePopup object configured with the title, text content, and a close button
    • createText

      public static javafx.scene.Node createText(String text)
      Creates a text node for displaying in the popup. The text is styled with a CSS class for consistent appearance.
      Parameters:
      text - the text to be displayed
      Returns:
      a Node containing the text, styled appropriately
    • createCloseButton

      public static javafx.scene.control.Button createCloseButton()
      Creates a button for closing the popup. The button is configured with an action to close the popup when clicked.
      Returns:
      a Button configured to close the popup when clicked