Class StatusBar


  • public class StatusBar
    extends java.lang.Object
    Global manager for showing messages to users through the status bar
    • Constructor Summary

      Constructors 
      Constructor Description
      StatusBar()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void info​(java.lang.String message)
      Shows a white message in the status bar.
      static void info​(java.lang.String message, boolean animated)
      Shows a white message in the status bar.
      static void success​(java.lang.String message)
      Shows a green message in the status bar.
      static void success​(java.lang.String message, boolean animated)
      Shows a green message in the status bar.
      static void warn​(java.lang.String message)
      Shows an orange message in the status bar.
      static void warn​(java.lang.String message, boolean animated)
      Shows an orange message in the status bar.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StatusBar

        public StatusBar()
    • Method Detail

      • success

        public static void success​(java.lang.String message)
        Shows a green message in the status bar. Should only be used for positive events that users would like to see.
        Parameters:
        message - The message you'd like to show the user.
      • success

        public static void success​(java.lang.String message,
                                   boolean animated)
        Shows a green message in the status bar. Should only be used for positive events that users would like to see.
        Parameters:
        message - The message you'd like to show the user.
        animated - If true, the old message will fade out and fade in the new message, otherwise it will instantly update.
      • info

        public static void info​(java.lang.String message)
        Shows a white message in the status bar. Best for general information, and other messages that aren't vital.
        Parameters:
        message - The message you'd like to show the user.
      • info

        public static void info​(java.lang.String message,
                                boolean animated)
        Shows a white message in the status bar. Best for general information, and other messages that aren't vital.
        Parameters:
        message - The message you'd like to show the user.
        animated - If true, the old message will fade out and fade in the new message, otherwise it will instantly update.
      • warn

        public static void warn​(java.lang.String message)
        Shows an orange message in the status bar. Should only be used when the user needs to see it and should contain actionable advice.
        Parameters:
        message - The message you'd like to show the user.
      • warn

        public static void warn​(java.lang.String message,
                                boolean animated)
        Shows an orange message in the status bar. Should only be used when the user needs to see it and should contain actionable advice.
        Parameters:
        message - The message you'd like to show the user.
        animated - If true, the old message will fade out and fade in the new message, otherwise it will instantly update.