Class SimplePopups
java.lang.Object
one.jpro.platform.routing.popup.simplepopup.SimplePopups
Utility class for creating simple popups in a JPro application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic javafx.scene.control.ButtonCreates a button for closing the popup.static javafx.scene.NodecreateText(String text) Creates a text node for displaying in the popup.static SimplePopupCreates an informational popup with a specified title and text content.
-
Constructor Details
-
SimplePopups
public SimplePopups()
-
-
Method Details
-
infoPopup
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 popupinfoText- the text content of the popup- Returns:
- a
SimplePopupobject configured with the title, text content, and a close button
-
createText
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
Nodecontaining 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
Buttonconfigured to close the popup when clicked
-