public class ValidationErrors
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ValidationErrors.Item |
Constructor and Description |
---|
ValidationErrors() |
Modifier and Type | Method and Description |
---|---|
void |
add(Component component,
java.lang.String description)
Add an error.
|
void |
add(java.lang.String description)
Add an error without reference to component causing it.
|
java.util.List<ValidationErrors.Item> |
getAll() |
boolean |
isEmpty() |
public void add(java.lang.String description)
description
- error descriptionpublic void add(@Nullable Component component, java.lang.String description)
component
- component causing the errordescription
- error descriptionpublic java.util.List<ValidationErrors.Item> getAll()
public boolean isEmpty()