Constructor and Description |
---|
DefaultErrorView(java.awt.Component parent)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(ErrorViewCategory categoryName,
int lineNo,
java.lang.String message)
Adds an error message.
|
void |
addError(ErrorViewCategory categoryName,
java.lang.String message)
Adds an error message.
|
void |
addWarning(ErrorViewCategory categoryName,
int lineNo,
java.lang.String message)
Adds a warning message.
|
void |
addWarning(ErrorViewCategory categoryName,
java.lang.String message)
Adds a warning message.
|
void |
errorViewOk()
Action method for "ok" button of error dialog.
|
boolean |
hasErrors()
Whether at least one error message has been added.
|
void |
waitDialog()
Waits until the dialog has been dismissed.
|
public DefaultErrorView(@Nullable java.awt.Component parent)
parent
- the parent component for showing the error dialog or null
public void addError(@NotNull ErrorViewCategory categoryName, @NotNull java.lang.String message)
public void addError(@NotNull ErrorViewCategory categoryName, int lineNo, @NotNull java.lang.String message)
public void addWarning(@NotNull ErrorViewCategory categoryName, @NotNull java.lang.String message)
addWarning
in interface ErrorView
categoryName
- the warning categorymessage
- the warning messagepublic void addWarning(@NotNull ErrorViewCategory categoryName, int lineNo, @NotNull java.lang.String message)
addWarning
in interface ErrorView
categoryName
- the warning categorylineNo
- the line number of the error messagemessage
- the warning messagepublic boolean hasErrors()
public void waitDialog() throws java.lang.InterruptedException
waitDialog
in interface ErrorView
java.lang.InterruptedException
- if the current thread has been interrupted
while waiting for the dialog to closepublic void errorViewOk()