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 void
Show an "error" styled toast.static void
Show an "info" styled toast.static void
initialize
(javafx.scene.layout.StackPane toasterPane) Set theStackPane
of which to place toast notification popupsstatic void
Show an "success" styled toast.static void
Show a "trace" styled toast.static void
Show an "warning" styled toast.
-
Method Details
-
initialize
public static void initialize(javafx.scene.layout.StackPane toasterPane) Set theStackPane
of 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
-