| edu.hws.jcm.awt.ErrorReporter
All known Subclasses: edu.hws.jcm.draw.DisplayCanvas, edu.hws.jcm.awt.MessagePopup,
ErrorReporter | public interface ErrorReporter (Code) | | To allow different styles of reporting errors, a
Controller uses an ErrorReporter to report any
errors that are thrown during its checkInput/compute
cycle. The DisplayCanvas and MessagePopup classes
implement this interface.
author: David Eck |
clearErrorMessage | public void clearErrorMessage()(Code) | | Clear the error reprort, if there is one.
|
getErrorMessage | public String getErrorMessage()(Code) | | Get the error message that is currently being displayed, or
return null if there is no error message.
|
setErrorMessage | public void setErrorMessage(Controller source, String message)(Code) | | Report the specifed message as an error. If source is non-null,
then it is the Controller that called this routine. In that case,
if the error reporter is capable of clearing its own error
condition, it should call source.errorCleared() when it does so.
Parameters: source - Controller that called this method (if non-null). Parameters: message - error message to report. |
|
|