Package dk.gtz.graphedit.logging
Class Toast
java.lang.Object
dk.gtz.graphedit.logging.Toast
Graphedit toast utility. Use this to create notification "toasts" / popups for the user.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidShow an "error" styled toast.static voidShow an "info" styled toast.static voidinitialize(javafx.scene.layout.StackPane toasterPane) Set theStackPaneof which to place toast notification popupsstatic voidShow an "success" styled toast.static voidShow a "trace" styled toast.static voidShow an "warning" styled toast.
-
Method Details
-
initialize
public static void initialize(javafx.scene.layout.StackPane toasterPane) Set theStackPaneof which to place toast notification popups- Parameters:
toasterPane- the parent pane to show all future popups
-
info
Show an "info" styled toast.- Parameters:
msg- The message to display
-
success
Show an "success" styled toast.- Parameters:
msg- The message to display
-
warn
Show an "warning" styled toast.- Parameters:
msg- The message to display
-
error
Show an "error" styled toast.- Parameters:
msg- The message to display
-
trace
Show a "trace" styled toast.- Parameters:
msg- The message to display
-