Class Toast

java.lang.Object
dk.gtz.graphedit.logging.Toast

public final class Toast extends Object
Graphedit toast utility. Use this to create notification "toasts" / popups for the user.
  • Method Details

    • initialize

      public static void initialize(javafx.scene.layout.StackPane toasterPane)
      Set the StackPane of which to place toast notification popups
      Parameters:
      toasterPane - the parent pane to show all future popups
    • info

      public static void info(String msg)
      Show an "info" styled toast.
      Parameters:
      msg - The message to display
    • success

      public static void success(String msg)
      Show an "success" styled toast.
      Parameters:
      msg - The message to display
    • warn

      public static void warn(String msg)
      Show an "warning" styled toast.
      Parameters:
      msg - The message to display
    • error

      public static void error(String msg)
      Show an "error" styled toast.
      Parameters:
      msg - The message to display
    • trace

      public static void trace(String msg)
      Show a "trace" styled toast.
      Parameters:
      msg - The message to display