| 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 nullpublic void addError(@NotNull
@NotNull ErrorViewCategory categoryName,
@NotNull
@NotNull java.lang.String message)
ErrorViewpublic void addError(@NotNull
@NotNull ErrorViewCategory categoryName,
int lineNo,
@NotNull
@NotNull java.lang.String message)
ErrorViewpublic void addWarning(@NotNull
@NotNull ErrorViewCategory categoryName,
@NotNull
@NotNull java.lang.String message)
ErrorViewaddWarning in interface ErrorViewcategoryName - the warning categorymessage - the warning messagepublic void addWarning(@NotNull
@NotNull ErrorViewCategory categoryName,
int lineNo,
@NotNull
@NotNull java.lang.String message)
ErrorViewaddWarning in interface ErrorViewcategoryName - the warning categorylineNo - the line number of the error messagemessage - the warning messagepublic boolean hasErrors()
ErrorViewpublic void waitDialog()
throws java.lang.InterruptedException
ErrorViewwaitDialog in interface ErrorViewjava.lang.InterruptedException - if the current thread has been interrupted
while waiting for the dialog to close@ActionMethod public void errorViewOk()