public class SimpleMessageHandler extends MessageHandler
GraphicalMessageHandler
Red (cxh) |
Red (cxh) |
Constructor and Description |
---|
SimpleMessageHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
_error(java.lang.String info)
Throw a RunetimException.
|
protected void |
_error(java.lang.String info,
java.lang.Throwable throwable)
Show the specified message and throwable information.
|
protected void |
_message(java.lang.String info)
Display the warning message.
|
protected void |
_warning(java.lang.String info)
Show the specified message.
|
protected void |
_warning(java.lang.String info,
java.lang.Throwable throwable)
Display the warning message and throwable information.
|
protected boolean |
_yesNoCancelQuestion(java.lang.String question,
java.lang.String trueOption,
java.lang.String falseOption,
java.lang.String exceptionOption)
Ask the user a question with three possible answers;
return true if the answer is the first one and false if
the answer is the second one; throw an exception if the
user selects the third one.
|
protected boolean |
_yesNoQuestion(java.lang.String question)
Ask the user a yes/no question, and return true if the answer
is yes.
|
error, error, getMessageHandler, isRunningNightlyBuild, message, setMessageHandler, shortDescription, warning, warning, yesNoCancelQuestion, yesNoCancelQuestion, yesNoQuestion
protected void _error(java.lang.String info)
_error
in class MessageHandler
info
- The message.protected void _error(java.lang.String info, java.lang.Throwable throwable)
_error
in class MessageHandler
info
- The message.throwable
- The throwable.CancelException
protected void _message(java.lang.String info)
_message
in class MessageHandler
info
- The message.protected void _warning(java.lang.String info) throws CancelException
Derived classes might show the specified message in a modal dialog. If the user clicks on the "Cancel" button, then throw an exception. This gives the user the option of not continuing the execution, something that is particularly useful if continuing execution will result in repeated warnings.
_warning
in class MessageHandler
info
- The message.CancelException
- If the user clicks on the "Cancel" button.protected void _warning(java.lang.String info, java.lang.Throwable throwable) throws CancelException
_warning
in class MessageHandler
info
- The message.throwable
- The Throwable.CancelException
- If the user clicks on the "Cancel" button.protected boolean _yesNoQuestion(java.lang.String question)
_yesNoQuestion
in class MessageHandler
question
- The yes/no question to be asked.protected boolean _yesNoCancelQuestion(java.lang.String question, java.lang.String trueOption, java.lang.String falseOption, java.lang.String exceptionOption) throws CancelException
_yesNoCancelQuestion
in class MessageHandler
question
- The question.trueOption
- The option for which to return true.falseOption
- The option for which to return false.exceptionOption
- The option for which to throw an exception.CancelException
- If the user selects the third option.