pspdash
Class ErrorReporter

java.lang.Object
pspdash.ErrorReporter
- public class ErrorReporter
- extends java.lang.Object
This class provides a generally reusable feature for displaying a
collected list of error messages to the user. To use this class,
- Create an instance of ErrorReporter.
- Possibly log one or more error messages using the
logError
method.
- Call
done
.
If any error messages have been logged when you call the done() method,
they will be displayed to the user in a dialog box. If no errors were
reported, the done() method will do nothing and return.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
title
java.lang.String title
preMessage
java.lang.Object preMessage
postMessage
java.lang.Object postMessage
errors
java.util.Vector errors
ErrorReporter
public ErrorReporter(java.lang.String title,
java.lang.Object preMessage,
java.lang.Object postMessage)
- Create a new ErrorReporter.
The parameters control the apppearance of the error dialog that
this object will display if needed.
logError
public void logError(java.lang.String errorMessage)
- Add an error to this error reporter.
If the error message is a duplicate of one already logged for
this ErrorReporter, this method call will have no effect.
done
public void done()