Class InfoMessage

java.lang.Object
qupath.lib.gui.actions.InfoMessage

public class InfoMessage extends Object
An informative message that should be shown to the user.
  • Property Details

  • Method Details

    • info

      public static InfoMessage info(ObservableValue<String> text)
      Create an information message.
      Parameters:
      text -
      Returns:
    • info

      public static InfoMessage info(String text)
      Create an information message with static text.
      Parameters:
      text -
      Returns:
    • info

      public static InfoMessage info(ObservableValue<String> text, ObservableNumberValue count)
      Create an information message with a count.
      Parameters:
      text -
      count -
      Returns:
    • info

      public static InfoMessage info(String text, int count)
      Create an information message with static text and a count.
      Parameters:
      text -
      count -
      Returns:
    • info

      public static InfoMessage info(ObservableNumberValue count)
      Create a information message to show a count of messages.
      Parameters:
      count -
      Returns:
    • warning

      public static InfoMessage warning(ObservableValue<String> text)
      Create a warning message.
      Parameters:
      text -
      Returns:
    • warning

      public static InfoMessage warning(String text)
      Create a warning message with static text.
      Parameters:
      text -
      Returns:
    • warning

      public static InfoMessage warning(ObservableValue<String> text, ObservableNumberValue count)
      Create a warning message with a count.
      Parameters:
      text -
      count -
      Returns:
    • warning

      public static InfoMessage warning(ObservableNumberValue count)
      Create a warning message to show a count of warnings.
      Parameters:
      count -
      Returns:
    • warning

      public static InfoMessage warning(String text, int count)
      Create a warning message with static text and a count.
      Parameters:
      text -
      count -
      Returns:
    • error

      public static InfoMessage error(ObservableValue<String> text)
      Create an error message.
      Parameters:
      text -
      Returns:
    • error

      public static InfoMessage error(String text)
      Create an error message with static text.
      Parameters:
      text -
      Returns:
    • error

      public static InfoMessage error(ObservableValue<String> text, ObservableNumberValue count)
      Create an error message with a count.
      Parameters:
      text -
      count -
      Returns:
    • error

      public static InfoMessage error(String text, int count)
      Create an error message with static text and a count.
      Parameters:
      text -
      count -
      Returns:
    • error

      public static InfoMessage error(ObservableNumberValue count)
      Create a error message to show a count of errors.
      Parameters:
      count -
      Returns:
    • textProperty

      public ReadOnlyStringProperty textProperty()
      Read only property containing the message text.
      See Also:
    • getText

      public String getText()
      Text of the message.
      Returns:
    • countProperty

      public ReadOnlyObjectProperty<Number> countProperty()
      Read only property containing any count associated with the text (may be null).
      See Also:
    • getCount

      public int getCount()
      Counts associated with the message, or -1 if the count is null.
      Returns:
    • getMessageType

      public InfoMessage.MessageType getMessageType()
      Type of the message.
      Returns: