Package qupath.lib.gui.actions
Class InfoMessage
java.lang.Object
qupath.lib.gui.actions.InfoMessage
An informative message that should be shown to the user.
-
Property Summary
PropertiesTypePropertyDescriptionRead only property containing any count associated with the text (may be null).Read only property containing the message text. -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of message, which can be used for styling. -
Method Summary
Modifier and TypeMethodDescriptionRead only property containing any count associated with the text (may be null).static InfoMessageCreate an error message with static text.static InfoMessageCreate an error message with static text and a count.static InfoMessageerror(ObservableNumberValue count) Create a error message to show a count of errors.static InfoMessageerror(ObservableValue<String> text) Create an error message.static InfoMessageerror(ObservableValue<String> text, ObservableNumberValue count) Create an error message with a count.intgetCount()Counts associated with the message, or -1 if the count is null.Type of the message.getText()Text of the message.static InfoMessageCreate an information message with static text.static InfoMessageCreate an information message with static text and a count.static InfoMessageinfo(ObservableNumberValue count) Create a information message to show a count of messages.static InfoMessageinfo(ObservableValue<String> text) Create an information message.static InfoMessageinfo(ObservableValue<String> text, ObservableNumberValue count) Create an information message with a count.Read only property containing the message text.static InfoMessageCreate a warning message with static text.static InfoMessageCreate a warning message with static text and a count.static InfoMessagewarning(ObservableNumberValue count) Create a warning message to show a count of warnings.static InfoMessagewarning(ObservableValue<String> text) Create a warning message.static InfoMessagewarning(ObservableValue<String> text, ObservableNumberValue count) Create a warning message with a count.
-
Property Details
-
text
Read only property containing the message text.- See Also:
-
count
Read only property containing any count associated with the text (may be null).- See Also:
-
-
Method Details
-
info
Create an information message.- Parameters:
text-- Returns:
-
info
Create an information message with static text.- Parameters:
text-- Returns:
-
info
Create an information message with a count.- Parameters:
text-count-- Returns:
-
info
Create an information message with static text and a count.- Parameters:
text-count-- Returns:
-
info
Create a information message to show a count of messages.- Parameters:
count-- Returns:
-
warning
Create a warning message.- Parameters:
text-- Returns:
-
warning
Create a warning message with static text.- Parameters:
text-- Returns:
-
warning
Create a warning message with a count.- Parameters:
text-count-- Returns:
-
warning
Create a warning message to show a count of warnings.- Parameters:
count-- Returns:
-
warning
Create a warning message with static text and a count.- Parameters:
text-count-- Returns:
-
error
Create an error message.- Parameters:
text-- Returns:
-
error
Create an error message with static text.- Parameters:
text-- Returns:
-
error
Create an error message with a count.- Parameters:
text-count-- Returns:
-
error
Create an error message with static text and a count.- Parameters:
text-count-- Returns:
-
error
Create a error message to show a count of errors.- Parameters:
count-- Returns:
-
textProperty
Read only property containing the message text.- See Also:
-
getText
Text of the message.- Returns:
-
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
Type of the message.- Returns:
-