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
TypePropertyDescriptionRead only property containing any count associated with the text (may be null).Read only property containing the message text. -
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The 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 InfoMessage
Create an error message with static text.static InfoMessage
Create an error message with static text and a count.static InfoMessage
error
(ObservableNumberValue count) Create a error message to show a count of errors.static InfoMessage
error
(ObservableValue<String> text) Create an error message.static InfoMessage
error
(ObservableValue<String> text, ObservableNumberValue count) Create an error message with a count.int
getCount()
Counts associated with the message, or -1 if the count is null.Type of the message.getText()
Text of the message.static InfoMessage
Create an information message with static text.static InfoMessage
Create an information message with static text and a count.static InfoMessage
info
(ObservableNumberValue count) Create a information message to show a count of messages.static InfoMessage
info
(ObservableValue<String> text) Create an information message.static InfoMessage
info
(ObservableValue<String> text, ObservableNumberValue count) Create an information message with a count.Read only property containing the message text.static InfoMessage
Create a warning message with static text.static InfoMessage
Create a warning message with static text and a count.static InfoMessage
warning
(ObservableNumberValue count) Create a warning message to show a count of warnings.static InfoMessage
warning
(ObservableValue<String> text) Create a warning message.static InfoMessage
warning
(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.- Returns:
- See Also:
-
getText
Text of the message.- Returns:
-
countProperty
Read only property containing any count associated with the text (may be null).- Returns:
- 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:
-