Constructor and Description |
---|
DefaultErrorView(@Nullable java.awt.Component parent)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(@NotNull ErrorViewCategory categoryName,
int lineNo,
@NotNull java.lang.String message)
Adds an error message.
|
void |
addError(@NotNull ErrorViewCategory categoryName,
@NotNull java.lang.String message)
Adds an error message.
|
void |
addWarning(@NotNull ErrorViewCategory categoryName,
int lineNo,
@NotNull java.lang.String message)
Adds a warning message.
|
void |
addWarning(@NotNull ErrorViewCategory categoryName,
@NotNull 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 @Nullable java.awt.Component parent)
parent
- the parent component for showing the error dialog or null
public void addError(@NotNull @NotNull ErrorViewCategory categoryName, @NotNull @NotNull java.lang.String message)
ErrorView
public void addError(@NotNull @NotNull ErrorViewCategory categoryName, int lineNo, @NotNull @NotNull java.lang.String message)
ErrorView
public void addWarning(@NotNull @NotNull ErrorViewCategory categoryName, @NotNull @NotNull java.lang.String message)
ErrorView
addWarning
in interface ErrorView
categoryName
- the warning categorymessage
- the warning messagepublic void addWarning(@NotNull @NotNull ErrorViewCategory categoryName, int lineNo, @NotNull @NotNull java.lang.String message)
ErrorView
addWarning
in interface ErrorView
categoryName
- the warning categorylineNo
- the line number of the error messagemessage
- the warning messagepublic boolean hasErrors()
ErrorView
public void waitDialog() throws java.lang.InterruptedException
ErrorView
waitDialog
in interface ErrorView
java.lang.InterruptedException
- if the current thread has been interrupted
while waiting for the dialog to close@ActionMethod public void errorViewOk()